Skip to main content

faker-crypto is a Faker provider for cryto addreses.

Project description

faker-crypto

CI PyPI Version Python Versions

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

faker_crypto-1.0.1.tar.gz (40.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

faker_crypto-1.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

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

Hashes for faker_crypto-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c22e105f2833ba76c66181c1fcd73a6dbabb0d9e332ef4b55784a4b077aefc79
MD5 133825f7ca9c88f95dc92ee1ce66d5e5
BLAKE2b-256 a3f7b9db524a89497ed496dc2f0487d4bc5244652dea8fe085a6e90f1d2c6867

See more details on using hashes here.

Provenance

The following attestation bundles were made for faker_crypto-1.0.1.tar.gz:

Publisher: publish.yml on karambir/faker-crypto

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for faker_crypto-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 96bd12a561c4c35070cdf8088a4099126d6752263fa4e4000051382197ed1058
MD5 ad1d5688ebfc9c6e6282d5b287dac797
BLAKE2b-256 e32a04f9b13a25f7705e7900f18918258361fb29abf50fb29e3cdf76164927db

See more details on using hashes here.

Provenance

The following attestation bundles were made for faker_crypto-1.0.1-py3-none-any.whl:

Publisher: publish.yml on karambir/faker-crypto

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page