# faker_crypto
__Version:__ 0.2.0
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:
```bash
pip install faker-cypto
```
## Usage
Add `CryptoAddress` provider to Faker instance:
```python
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
```
Raw data
{
"_id": null,
"home_page": "https://github.com/karambir/faker-crypto/",
"name": "faker-crypto",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8.1,<4.0.0",
"maintainer_email": "",
"keywords": "faker,test,mock,generator,cryptocurrency",
"author": "Karambir Singh Nain",
"author_email": "hello@karambir.in",
"download_url": "https://files.pythonhosted.org/packages/29/60/5b74019ec69b482e37e917a82d8611bcfe41baf1d246cba7d4ad1e27d570/faker_crypto-0.2.0.tar.gz",
"platform": null,
"description": "# faker_crypto\n\n__Version:__ 0.2.0\n\nfaker_crypto is a Faker provider for Cryto Addreses.\n\nFollowing crypto addresses are supported:\n\n- Bitcoin\n- Bitcoin Cash\n- Litecoin\n- Dogecoin\n- Ethereum\n- Binance Smart Chain\n- Polygon\n\n## Installation\n\nInstall with pip:\n\n```bash\npip install faker-cypto\n```\n\n## Usage\n\nAdd `CryptoAddress` provider to Faker instance:\n\n```python\nfrom faker import Faker\nfrom faker_crypto import CryptoAddress\n\nfake = Faker()\nfake.add_provider(CryptoAddress)\n\nfake.bitcoin_address()\n# '13XTsE8TKEHW5zAmCWmBvNk5KvEcEjVQu'\nfake.litecoin_address()\n# 'LM3HgLcPemiBb5MJ3vqRRPrPqBdtf7pL'\nfake.ethereum_address()\n# '0x7ea8abae70ce7e9ce09155ee9169d5f18fc96b'\nfake.binance_smart_chain_address()\n# '0xceeea432e1eb0fdcbd7ffbe2e7fefa6ccb78dd'\nfake.polygon_address()\n# '0x32f065b1fe349fcaa29bfdfa5e6aae25a53203'\n```\n\n\n## Testing\n\nRun unit tests with code coverage with:\n\n```\npytest --cov -v \n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "faker-crypto is a Faker provider for cryto addreses.",
"version": "0.2.0",
"split_keywords": [
"faker",
"test",
"mock",
"generator",
"cryptocurrency"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "cca1b9a8af89ec198800062955e358634e049bae5085ba87508281d18238cc12",
"md5": "abb6e3fb3c91ea211ab3727092eff46f",
"sha256": "bffbe09fb014f8089b9fcdc0f95149d7dce5b148cfb2bb01cc087c8b5f08fb6d"
},
"downloads": -1,
"filename": "faker_crypto-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "abb6e3fb3c91ea211ab3727092eff46f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8.1,<4.0.0",
"size": 2307,
"upload_time": "2023-01-26T19:01:02",
"upload_time_iso_8601": "2023-01-26T19:01:02.124314Z",
"url": "https://files.pythonhosted.org/packages/cc/a1/b9a8af89ec198800062955e358634e049bae5085ba87508281d18238cc12/faker_crypto-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "29605b74019ec69b482e37e917a82d8611bcfe41baf1d246cba7d4ad1e27d570",
"md5": "0e1d3fa9e73c69184bd3784c6638d598",
"sha256": "40be870f74c50cc84711f8a331c8895b989ab1f5c82546e4c67477f0abd81e05"
},
"downloads": -1,
"filename": "faker_crypto-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "0e1d3fa9e73c69184bd3784c6638d598",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8.1,<4.0.0",
"size": 2526,
"upload_time": "2023-01-26T19:01:03",
"upload_time_iso_8601": "2023-01-26T19:01:03.819255Z",
"url": "https://files.pythonhosted.org/packages/29/60/5b74019ec69b482e37e917a82d8611bcfe41baf1d246cba7d4ad1e27d570/faker_crypto-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-26 19:01:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "karambir",
"github_project": "faker-crypto",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "faker-crypto"
}