Skip to main content

Deterministic synthetic data generator for realistic, correlated, and noisy test records across 68 locales. Rust CLI + Python + Node.js + Go + PHP + Ruby + MCP.

Project description

seedfaker

Python binding for seedfaker. PyO3.

CLI · Node.js · Python · Browser/WASM · Go · PHP · Ruby · MCP

pip install seedfaker

Pre-1.0 notice: The API may change between minor versions until 1.0.0 is released. Pin your version and check CHANGELOG.md before upgrading.

Python API

from seedfaker import SeedFaker

f = SeedFaker(seed="ci", locale="en")

# Single values
f.field("name")
f.field("phone", e164=True)
f.field("credit-card", space=True)
f.field("email", omit=30)                    # "" for 30% of calls

# Weighted locales: 70% English, 20% German, 10% French
mixed = SeedFaker(seed="ci", locale="en=7,de=2,fr=1")

# Single correlated record
f.record(["name", "email", "phone"], ctx="strict")
# → {"name": "Zoe Kumar", "email": "zoe.kumar@...", "phone": "+1..."}

# Batch
f.records(["name", "email", "phone"], n=5, ctx="strict")

# Validate without generating
f.validate(["name", "email:e164"])  # raises ValueError if invalid

# Corruption
f.records(["name", "email", "ssn"], n=100, corrupt="high")

# Determinism — same seed = same output
a = SeedFaker(seed="test")
b = SeedFaker(seed="test")
assert a.field("name") == b.field("name")

# Fingerprint — detect algorithm changes after upgrade
SeedFaker.fingerprint()  # 'sf0-...'

# All field names
SeedFaker.fields()

Documentation


Disclaimer

This software generates synthetic data that may resemble real-world identifiers, credentials, or personal information. All output is artificial. See LICENSE for the full legal disclaimer.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

seedfaker-0.1.0a28-cp38-abi3-manylinux_2_34_x86_64.whl (1.0 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.34+ x86-64

seedfaker-0.1.0a28-cp38-abi3-manylinux_2_34_aarch64.whl (994.2 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.34+ ARM64

seedfaker-0.1.0a28-cp38-abi3-macosx_11_0_arm64.whl (770.2 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

seedfaker-0.1.0a28-cp38-abi3-macosx_10_12_x86_64.whl (773.2 kB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file seedfaker-0.1.0a28-cp38-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for seedfaker-0.1.0a28-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7d52401fa6b6e3086762a259d56d7b1d5d3746f68ca83632ce24aec972884159
MD5 e02f482191109e9ad208d21bb4606c57
BLAKE2b-256 10fcecbeb4db366f4c2e7d22c3bf85d2ff742f9d34fa4527d8ebf580f352a711

See more details on using hashes here.

Provenance

The following attestation bundles were made for seedfaker-0.1.0a28-cp38-abi3-manylinux_2_34_x86_64.whl:

Publisher: release.yml on opendsr-std/seedfaker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file seedfaker-0.1.0a28-cp38-abi3-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for seedfaker-0.1.0a28-cp38-abi3-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 b0ffb0b24ab4c54fb415ea35d6d5806a34d1ac9f0f757ed42845a03b66d0cf9f
MD5 2f8087b4fc49701d110c94701311f2fa
BLAKE2b-256 b681f605b0a4b9859365dffddfca4304526edbdfbdf8ca11a61ddf6461b327dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for seedfaker-0.1.0a28-cp38-abi3-manylinux_2_34_aarch64.whl:

Publisher: release.yml on opendsr-std/seedfaker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file seedfaker-0.1.0a28-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for seedfaker-0.1.0a28-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 509d8e4eb2e4f465498f52e296a1360b96fd1ea2ef53d9c813d85b7b313d16ec
MD5 87802df93469388402c7b7b18c3533d5
BLAKE2b-256 b0a0075e3e7c339ce2c77227a07ce89aa98e8829ea550d41a97e6a6cb6661dd1

See more details on using hashes here.

Provenance

The following attestation bundles were made for seedfaker-0.1.0a28-cp38-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on opendsr-std/seedfaker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file seedfaker-0.1.0a28-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for seedfaker-0.1.0a28-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9c446dbdc7a2abf8b4c939ad445c06c40252f8f740f16b5e1fd2639b8ba6a6c6
MD5 036c747ce4e195dd1ce3313d84c2a101
BLAKE2b-256 9187714d69193bb4a5dd5994d8edfbc0c9d642d9e2044f73a4193b599e401802

See more details on using hashes here.

Provenance

The following attestation bundles were made for seedfaker-0.1.0a28-cp38-abi3-macosx_10_12_x86_64.whl:

Publisher: release.yml on opendsr-std/seedfaker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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