I've used metamask with web3.js multiple times before, with no issue. It's simple to integrate it, like discussed here: https://github.com/ethereum/web3.py/blob/master/docs/providers.rst
How does one do this for web3.py?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communityI've used metamask with web3.js multiple times before, with no issue. It's simple to integrate it, like discussed here: https://github.com/ethereum/web3.py/blob/master/docs/providers.rst
How does one do this for web3.py?
MetaMask is a browser extension, so it's only available from code running in the browser. So to use it from web3.py, you'd first have to find a way to run Python code in the browser. This is perhaps technically possible but definitely not worth the trouble.
If you're writing code in the browser, stick with JavaScript (and therefore web3.js).