Fake address and IBAN generator for 200+ countries — async-first Python library
Project description
SmartFaker
Fake address & IBAN generator for 200+ countries — async-first Python library
SmartFaker generates realistic fake postal addresses and IBAN numbers for over 200 countries. It is async-first with synchronous wrappers, requires no external API, and ships bundled country data.
Installation
pip install smartfaker
Quick Start
from smartfaker import Faker
faker = Faker()
# Sync usage
addr = faker.address_sync("us")
iban = faker.iban_sync("DE")
print(addr["city"], addr["zip"])
print(iban["iban"])
# Async usage
import asyncio
from smartfaker import Faker
faker = Faker()
async def main():
addr = await faker.address("gb")
iban = await faker.iban("FR")
print(addr, iban["iban"])
asyncio.run(main())
Features
- 200+ countries — bundled JSON address data for every country and territory
- IBAN generation — 57 countries with country-specific algorithms and MOD-97 validation
- Async-first — all generation methods are
async; sync wrappers included - Field filtering — request only the fields you need
- Batch generation — generate addresses for multiple countries in one call
- Zero external dependencies beyond
pycountry
API
Address generation
# Single address
addr = faker.address_sync("us")
# Multiple addresses
addrs = faker.address_sync("fr", amount=5)
# Specific fields only
addr = faker.address_sync("de", fields=["city", "zip", "street"])
# Batch — multiple countries
import asyncio
results = asyncio.run(faker.batch_addresses(["us", "gb", "de"]))
IBAN generation
# Single IBAN
iban = faker.iban_sync("DE")
print(iban["iban"]) # DE...
print(iban["details"]) # {"bank_code": ..., "account_number": ...}
# Multiple IBANs
ibans = faker.iban_sync("GB", amount=3)
# List supported countries
for c in faker.iban_countries():
print(c["country_code"], c["country_name"])
License
LGPL-3.0-or-later © ISmartCoder | t.me/TheSmartDev
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file smartfaker-3.25.3.tar.gz.
File metadata
- Download URL: smartfaker-3.25.3.tar.gz
- Upload date:
- Size: 189.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28646ccf88a275d0c8a0dd1c19a9a2d4d1dd5737828aa2df1537e46242e11ea5
|
|
| MD5 |
d6ecd78d9dee2088a3209cb8adfe20ec
|
|
| BLAKE2b-256 |
a8ce852a4a00662ee9768e0246ee73e41c2c5d9ebcf9deaf4b1e3baf876ae529
|
File details
Details for the file smartfaker-3.25.3-py3-none-any.whl.
File metadata
- Download URL: smartfaker-3.25.3-py3-none-any.whl
- Upload date:
- Size: 246.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4b9185b0165ab7bbf6b7a8eeca1448e99eb93a4e447a4586555fed2c4da5e8e
|
|
| MD5 |
a349bf8445d7cb8e4792e4238d07f12b
|
|
| BLAKE2b-256 |
0b046e217d6881429064c8b436364850971ffae2813bf52f3b686b09dc28afff
|