faker-crypto is a Faker provider for cryto addreses.
Project description
faker-crypto
Version: 0.2.1
faker-crypto is a Faker provider for Cryto Addreses.
Following crypto addresses are supported:
- Bitcoin
- Bitcoin Cash
- Litecoin
- Dogecoin
- Ethereum
- Binance Smart Chain
- Polygon
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'
fake.binance_smart_chain_address()
# '0xceeea432e1eb0fdcbd7ffbe2e7fefa6ccb78dd'
fake.polygon_address()
# '0x32f065b1fe349fcaa29bfdfa5e6aae25a53203'
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.2.1.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for faker_crypto-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a048477decbf28e805772f1ba4bc659f4cc27d048a039864ad205e653befeace |
|
MD5 | 8c7d05ace71c96731858960d73a07cae |
|
BLAKE2b-256 | e04b09e6208e2b2737c3fb385db057697df249f998e9054ab093f12bc6f310d3 |