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

Metadata

Release files for larzfaker 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for larzfaker 0.1.0
File Size Uploaded Provenance
larzfaker-0.1.0.tar.gz 6.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for larzfaker 0.1.0
File Interpreter ABI Platform
larzfaker-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / larzfaker-0.1.0.tar.gz

Download URL larzfaker-0.1.0.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7318d91c23a6049eff645f4352d56fc10407dbf0d0727cf5a6dd5f7a36b7c0e1
BLAKE2b-256 checksum
How to use checksums
45523bcbd45a102495dcea6f7747d1340efcce67969b8687667b69e07eb742d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / larzfaker-0.1.0-py3-none-any.whl

Download URL larzfaker-0.1.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8278ff881256aef85266a5b2f00734f4d817bf97a65264f9fc995c61b3a1b32
BLAKE2b-256 checksum
How to use checksums
c7b86458d27c9c9579f54425ef60168cccdcdf405fe596b2e29a9ec847f09638
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for larzfaker 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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