Skip to main content

larzfaker

Deterministic fake data for tests, demos, and seeds. Pure Python, zero deps.

Names, emails, addresses, money, dates, lorem text, and whole records — generated from a seed, so the same seed always produces the same data. Reproducible fixtures, stable demo databases, and failing tests you can reproduce exactly.

from larzfaker import Faker

f = Faker(seed=42)
f.name()        # 'Grace Hopper'
f.email()       # 'grace.hopper@example.com'
f.money()       # '$4,215.60'
f.records(5, {"name": f.name, "email": f.email, "balance": f.money})

Why

  • Deterministic by design. Seed it and the sequence is fixed — the whole point for test fixtures and demos, and unlike reaching for bare random.
  • Money- and date-aware. money()/money_decimal() and ranged date()/datetime() — realistic seed data that pairs with larztable and larzledger.
  • Records in one call. records(n, {field: callable}) builds lists of dicts — drop straight into a database or a table.
  • Zero dependencies. No faker, no locale data packs.

Install

pip install larzfaker

Providers

name first_name last_name username email phone company job · address street city zipcode · word words sentence paragraph text slug · integer decimal boolean choice pick color uuid4 url · money money_decimal date datetime · record records.

Tests

python -m unittest discover -s tests -v   # 26 tests incl. determinism

The Larz stack

One of 30+ pure-Python, zero-dependency libraries at github.com/larz-scripter.

License

MIT © larz-scripter

Download files

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

Source Distribution

larzfaker-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

larzfaker-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file larzfaker-0.1.0.tar.gz.

File metadata

  • Download URL: larzfaker-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for larzfaker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7318d91c23a6049eff645f4352d56fc10407dbf0d0727cf5a6dd5f7a36b7c0e1
MD5 5de56ee54d9eb688993eb96b9ba93f8d
BLAKE2b-256 45523bcbd45a102495dcea6f7747d1340efcce67969b8687667b69e07eb742d5

See more details on using hashes here.

File details

Details for the file larzfaker-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: larzfaker-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for larzfaker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8278ff881256aef85266a5b2f00734f4d817bf97a65264f9fc995c61b3a1b32
MD5 32837f40ba898db3499d82a0488e376f
BLAKE2b-256 c7b86458d27c9c9579f54425ef60168cccdcdf405fe596b2e29a9ec847f09638

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page