Is there a way in web3.py to create a wallet of accounts similar to web3.js to sign the transactions locally without building a raw transaction?
web3.js code:
var provider = new Web3.providers.WebsocketProvider(conf.networkURL);
var web3 = new Web3(provider);
const user1 = web3.eth.accounts.privateKeyToAccount(conf.accounts.user1.privateKey);
web3.eth.accounts.wallet.add(user1);
const contract = new web3.eth.Contract(contractAbi, contractAddress, { gasPrice, gas });
var result = await contract.methods.myMethod().send({ from: user1.address, gas, value });
Is there a reason to not to be that functionality?