Socket
Book a DemoInstallSign in
Socket

faker-crypto

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

faker-crypto

faker-crypto is a Faker provider for cryto addreses.

0.2.2
pipPyPI
Maintainers
1

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

Keywords

cryptocurrency

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.