Skip to main content

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

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.1.0.tar.gz (3.7 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.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file faker_crypto-1.1.0.tar.gz.

File metadata

  • Download URL: faker_crypto-1.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for faker_crypto-1.1.0.tar.gz
Algorithm Hash digest
SHA256 78600bb4120f1d3026168a4f31086b112f69cc66d0e22332516a4ff25cd57770
MD5 5f6f86ef3d65a57422ba011354bf4f63
BLAKE2b-256 29882628480fcaa6a95b9fc4213d5ee33820d395f8fc6047d336b265de5e2108

See more details on using hashes here.

Provenance

The following attestation bundles were made for faker_crypto-1.1.0.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: faker_crypto-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for faker_crypto-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8232cee989844e213e70fdaa6fabb512ef41cfd9d783479aef8f62dfba58ddc
MD5 856ccfab9b588ce6c5c20bf5c3f0fe21
BLAKE2b-256 b257fcbd730f7a867431ba947b2b6d695f1194e9b4f3b997bbeb45afb8bb6e74

See more details on using hashes here.

Provenance

The following attestation bundles were made for faker_crypto-1.1.0-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 Sentry Error logging StatusPage Status page