If you want to generate all these fragments locally in python, you can use pyethereum .
Customization
Shell: pip install ethereum
Generate Private Key
The private key is just a random series of 32 bytes. Create a large random byte string and take sha3.
from ethereum import utils import os private_key = utils.sha3(os.urandom(4096))
Note. Please check out the os.urandom security os.urandom , which depends on your version of Python and your operating system.
Account address
Convert the private key to a shared address.
raw_address = utils.privtoaddr(private_key) account_address = utils.checksum_encode(raw_address)
As an additional note, you can find additional support at ethereum.stackexchange.com
source share