faker_crypto is a Faker provider for crytoaddreses.
Project description
faker_crypto
Version: 0.1.2
faker_crypto is a Faker provider for crytoaddreses.
Following crypto addresses are supported:
- Bitcoin
- Litecoin
- Ethereum
Installation
Install with pip:
pip install faker-cypto
Usage
Add CryptoAddress
provider to Faker instance:
from faker import Faker
from faker_crypto import CryptoAddress
fake = Faker()
fake.add_provider(CryptoAddress)
fake.bitcoin_address()
# '13XTsE8TKEHW5zAmCWmBvNk5KvEcEjVQu'
fake.litecoin_address()
# 'LM3HgLcPemiBb5MJ3vqRRPrPqBdtf7pL'
fake.ethereum_address()
# '0x7ea8abae70ce7e9ce09155ee9169d5f18fc96b'
Testing
Run unit tests with code coverage with:
pytest --cov -v
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
faker-crypto-0.1.2.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for faker_crypto-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07b05e2cccc69bceb2ed7d0bd9afe6c3622f3131545b1dd02fea7aab69aca932 |
|
MD5 | df8a80f586d66073a948006ecd788b36 |
|
BLAKE2b-256 | bed1bc947fdfea0075ae0406b501ab2a897d589a9a3a3dc9004dbdafa01d59e1 |