faker-crypto is a Faker provider for cryto addreses.
Project description
faker-crypto
faker-crypto is a Faker provider for Cryto Addreses.
Following crypto addresses are supported:
- Bitcoin
- Bitcoin Cash
- Litecoin
- Dogecoin
- Ethereum
- Polygon
- Binance Smart Chain
- Cronos
- Optimism
- Arbitrum
- Avalanche C-Chain
- Ripple
- Tron
- Polkadot
- Stellar
- Solana
- Zilliqa
- Cardano
- Hedera
Installation
Install with pip:
pip install faker-crypto
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.ripple_address()
# 'rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh'
fake.tron_address()
# 'TNPeeaaFB7K9cmo4uQpcU32zGK8G1NYqeL'
fake.stellar_address()
# 'GC7OHFPWPSWXL4HMN6TXAG54MTZSMJIASWHO6KVRQNHNCXEAHWDSGGC3'
fake.solana_address()
# '7EcDhSYGxXyscszYEp35KHN8vvw3svAuLKTzXwCFLtV'
fake.zilliqa_address()
# 'zil102n74869xnvdwq3yh8p0k9jjgtejruft268tg8'
fake.polygon_address()
# '0x32f065b1fe349fcaa29bfdfa5e6aae25a53203'
Development
This project uses uv for dependency management.
Setup Development Environment
# Install project in development mode with all dependencies
uv sync --frozen --dev
# Or use just command
just install
Testing
Run unit tests with code coverage with:
uv run pytest --cov -v
# Or use just command
just test
Formatting and Linting
# Format code
just format
# Run linters
just lint
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file faker_crypto-1.0.1.tar.gz.
File metadata
- Download URL: faker_crypto-1.0.1.tar.gz
- Upload date:
- Size: 40.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c22e105f2833ba76c66181c1fcd73a6dbabb0d9e332ef4b55784a4b077aefc79
|
|
| MD5 |
133825f7ca9c88f95dc92ee1ce66d5e5
|
|
| BLAKE2b-256 |
a3f7b9db524a89497ed496dc2f0487d4bc5244652dea8fe085a6e90f1d2c6867
|
Provenance
The following attestation bundles were made for faker_crypto-1.0.1.tar.gz:
Publisher:
publish.yml on karambir/faker-crypto
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
faker_crypto-1.0.1.tar.gz -
Subject digest:
c22e105f2833ba76c66181c1fcd73a6dbabb0d9e332ef4b55784a4b077aefc79 - Sigstore transparency entry: 633577174
- Sigstore integration time:
-
Permalink:
karambir/faker-crypto@24b17f1f9b731c1c3d44247c7f90d1f8e891c0e7 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/karambir
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@24b17f1f9b731c1c3d44247c7f90d1f8e891c0e7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file faker_crypto-1.0.1-py3-none-any.whl.
File metadata
- Download URL: faker_crypto-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96bd12a561c4c35070cdf8088a4099126d6752263fa4e4000051382197ed1058
|
|
| MD5 |
ad1d5688ebfc9c6e6282d5b287dac797
|
|
| BLAKE2b-256 |
e32a04f9b13a25f7705e7900f18918258361fb29abf50fb29e3cdf76164927db
|
Provenance
The following attestation bundles were made for faker_crypto-1.0.1-py3-none-any.whl:
Publisher:
publish.yml on karambir/faker-crypto
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
faker_crypto-1.0.1-py3-none-any.whl -
Subject digest:
96bd12a561c4c35070cdf8088a4099126d6752263fa4e4000051382197ed1058 - Sigstore transparency entry: 633577209
- Sigstore integration time:
-
Permalink:
karambir/faker-crypto@24b17f1f9b731c1c3d44247c7f90d1f8e891c0e7 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/karambir
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@24b17f1f9b731c1c3d44247c7f90d1f8e891c0e7 -
Trigger Event:
push
-
Statement type: