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.0a33-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.0a33-cp38-abi3-manylinux_2_34_aarch64.whl (994.2 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.34+ ARM64

seedfaker-0.1.0a33-cp38-abi3-macosx_11_0_arm64.whl (770.3 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

seedfaker-0.1.0a33-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.0a33-cp38-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for seedfaker-0.1.0a33-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 9061ab6fd7ea205cab0aff1cab4a0cce2e5eb3f20635f714aa7d2c1854537087
MD5 797aeafb3e35fc835f5b5fa9b1473aca
BLAKE2b-256 875e4b51275474d2e37e2e3e8cb008e59ee8c7a14d72c3be772361ddac7c592f

See more details on using hashes here.

Provenance

The following attestation bundles were made for seedfaker-0.1.0a33-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.0a33-cp38-abi3-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for seedfaker-0.1.0a33-cp38-abi3-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 3a8f2cc0fda5f7cb48708aa7e0e253f8fc576b7bbb463e5d10c18cd43d63ac7e
MD5 98ce8027bf4a4525fa05273e0020291b
BLAKE2b-256 be9bae13ef52c3f2bb26b4ae64587b49576b1cc73c4a5c11f1f7837164092972

See more details on using hashes here.

Provenance

The following attestation bundles were made for seedfaker-0.1.0a33-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.0a33-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for seedfaker-0.1.0a33-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0704c9c2f10a9463728535593a2c8ff2c568167d9248d4aacadab0060773722d
MD5 218209d0cfe37cf02449d82aa9e774e7
BLAKE2b-256 4131b4a9f1528a417306ca3c811d2f744d8d95727a36fcbb59f992849c8df60c

See more details on using hashes here.

Provenance

The following attestation bundles were made for seedfaker-0.1.0a33-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.0a33-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for seedfaker-0.1.0a33-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 82aa913a38607be9fa40f55bf6c1f9eb2ec7f0cc8a49de2cece5fb5257bfb526
MD5 60e0d4a4ebb5fcf258f67ff796b02262
BLAKE2b-256 fb6f06b537042d60eaa954b13e9c941d7f9536964c61155126e5f195fe4c18a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for seedfaker-0.1.0a33-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