Skip to content

abirxdhack/TheSmartFaker

Repository files navigation

SmartFaker

Fake address & IBAN generator for 200+ countries — sync & async Python library

PyPI version Python License

SmartFaker generates realistic fake postal addresses and IBAN numbers for over 200 countries. Bundled data, zero network calls, and a true sync and async API.

Installation

pip install smartfaker

Quick start — sync

from smartfaker import Faker

faker = Faker()
addr = faker.address("us")
iban = faker.iban("DE")
print(addr["city"], iban["iban"])

Quick start — async

import asyncio
from smartfaker import Faker

faker = Faker()

async def main():
    addr = await faker.aaddress("gb")
    iban = await faker.aiban("FR")
    print(addr["city"], iban["iban"])

asyncio.run(main())

Features

  • 200+ countries of bundled address data
  • 57 country IBAN generators with MOD-97 validation
  • Sync and async, both first-classaddress / aaddress, batch_addresses / abatch_addresses, iban / aiban
  • Field filtering and locale-prefixed names
  • Batch generation across many countries in one call
  • Tiny dependency surface — only pycountry

Documentation

License

LGPL-3.0-or-later © ISmartCoder | t.me/TheSmartDev

About

A powerful Asyncrhonous Python library for generating fake addresses, supporting bots, MTProto API frameworks, and Python scripts

Topics

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.lesser
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

 
 
 

Contributors