title: How do I create an ethereum wallet in Python?
body: <p>I am building an application that would create a wallet for a user. One option is the <a href="https://web3py.readthedocs.io/en/latest/web3.personal.html#web3.personal.newAccount" rel="nofollow noreferrer">web3.personal API</a> in web3.py, which has a <code>newAccount('passphrase')</code> method. The method only returns the address of created account.</p>
  <p>What I'm looking for is a function similar to the <a href="https://web3js.readthedocs.io/en/1.0/web3-eth-accounts.html#create" rel="nofollow noreferrer">eth.accounts API</a> in web3.js, which has a <code>create([entropy])</code> method. It returns an account object with 'address', '<strong>privatekey</strong>' and other details.</p>