Skip to main content

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

PyPI version Python License

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

Documentation

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smartfaker-3.25.5.tar.gz (189.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smartfaker-3.25.5-py3-none-any.whl (246.7 kB view details)

Uploaded Python 3

File details

Details for the file smartfaker-3.25.5.tar.gz.

File metadata

  • Download URL: smartfaker-3.25.5.tar.gz
  • Upload date:
  • Size: 189.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for smartfaker-3.25.5.tar.gz
Algorithm Hash digest
SHA256 f23d5489a0ec75d9350063ffd5b20aac7edaa3243d175d208555ed36f48726fc
MD5 8760cde3759c4b4d4243a5248eb1ba17
BLAKE2b-256 4eef4b32be09be53b83f9d96ad0170339fe7235ba387f43343a9ca5a8c6cce69

See more details on using hashes here.

File details

Details for the file smartfaker-3.25.5-py3-none-any.whl.

File metadata

  • Download URL: smartfaker-3.25.5-py3-none-any.whl
  • Upload date:
  • Size: 246.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for smartfaker-3.25.5-py3-none-any.whl
Algorithm Hash digest
SHA256 483409ed841fa83fc83cd1bf3ddd3f1259d40484f43d399285ba7aab56d4a604
MD5 92802471f683817c5325cffd207633a0
BLAKE2b-256 bd69303ef445c9e4f92326ab5b97b8a464ee2dec4d97c0ac70bea93e02a6c5cd

See more details on using hashes here.

Supported by

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