Skip to main content

faker-crypto is a Faker provider for cryto addreses.

Project description

faker-crypto

Version: 0.2.2

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.2.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

faker_crypto-0.2.2-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: faker_crypto-0.2.2.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/6.4.7-arch1-2

File hashes

Hashes for faker_crypto-0.2.2.tar.gz
Algorithm Hash digest
SHA256 f20a9d4895c6bcb01e6b1a676e4f6f15f93762399139febd80d220b778bcd797
MD5 525e405ad4fb54a6fbfd51e2867ddf0b
BLAKE2b-256 1703789a700802eff423e1ee7d820c40b08b136b358e3fd0c625e68ffc642462

See more details on using hashes here.

File details

Details for the file faker_crypto-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: faker_crypto-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/6.4.7-arch1-2

File hashes

Hashes for faker_crypto-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0769c06aece2c9da9b43196d3d8efe0ac9f74e1937bbebd76f47269c9416e0f1
MD5 20a8b3ef8a3d49524e7d7c4a4b58c105
BLAKE2b-256 01236cd9f9ce02d6627f499e6b778bf62e3d025f9bd41e7d708a28abcbcfa953

See more details on using hashes here.

Supported by

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