Skip to main content

faker2 — pure-Rust fake-data generator with a thin Python binder (PyO3).

Project description

faker2 (pure Rust + Python binder)

The faker2 PyPI package as a pure-Rust engine with a thin Python binder (PyO3). import faker2 loads the compiled Rust core (faker2._native); no fake-data logic runs in Python.

from faker2 import Faker, homophones, detect_country, infer_gender_real

f = Faker(42)                              # seedable, deterministic
f.name(); f.email(); f.address()
f.first_name_like_real("Jacques", "FR")    # gender-preserving, weighted
f.first_name_real("JP", "f")               # frequency-weighted

infer_gender_real("Mohammed", "EG")        # "m"
detect_country("Yuki", 3)                  # [("JP", 0.58), ...]
homophones("Dominique", "FR", "balanced")  # [("Dominique", 0.95), ...]

Build

cd native
maturin build --release        # abi3 wheel (bundles the dataset)
pip install dist/*.whl

Scope

The Rust core (../rust) currently implements the engine + en_US providers + the 139-country name intelligence. More locales are ported into the Rust core over time; see the repo README.md and PARITY.md.

Project details


Download files

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

Source Distribution

faker2-40.29.0.post10.tar.gz (115.0 kB view details)

Uploaded Source

Built Distributions

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

faker2-40.29.0.post10-cp39-abi3-win_amd64.whl (40.5 MB view details)

Uploaded CPython 3.9+Windows x86-64

faker2-40.29.0.post10-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (41.2 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

faker2-40.29.0.post10-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (41.1 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

faker2-40.29.0.post10-cp39-abi3-macosx_11_0_arm64.whl (40.7 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

faker2-40.29.0.post10-cp39-abi3-macosx_10_12_x86_64.whl (40.8 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file faker2-40.29.0.post10.tar.gz.

File metadata

  • Download URL: faker2-40.29.0.post10.tar.gz
  • Upload date:
  • Size: 115.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for faker2-40.29.0.post10.tar.gz
Algorithm Hash digest
SHA256 4d26515b088d412fa3a1d5c46d91c369516880a8b5d670f3619a2c556d747be5
MD5 c4880633afbcadfda9ecb748ba968b23
BLAKE2b-256 e916da39fa69ab91aa93ecbe3ac9222139c1063cdad70438e307c89b37ff7aa2

See more details on using hashes here.

File details

Details for the file faker2-40.29.0.post10-cp39-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for faker2-40.29.0.post10-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f386c79f49fd5f2f0a834612572c0c40a6b6f8585896884219115868f3758326
MD5 c5cec29b8c7c529bdcd3b354e1a6b670
BLAKE2b-256 2244b82f32fd47745bc86df679e94629f83b40b14292604f41bef4a617af7fa2

See more details on using hashes here.

File details

Details for the file faker2-40.29.0.post10-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for faker2-40.29.0.post10-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0d6de8b3180b9113e23fc0f31c3463bfa9500413ef714a30db5b2766b86b676f
MD5 de6d14a1e7d44b6da6fe0d23ead337fd
BLAKE2b-256 3a5210f9ae18aef6f91632aa29750002f53cbb7e5b0905b8653a8281c6153373

See more details on using hashes here.

File details

Details for the file faker2-40.29.0.post10-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for faker2-40.29.0.post10-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 bf978ef0de1b46d28bbc0997f1e3d594529bab18cab47394f90720dac883b14f
MD5 187b48cd035204afcd21ad229ccf45ac
BLAKE2b-256 2f5914cb20e63ab77231205b6dc6704139364a65c802ccbb39e33deaac79be89

See more details on using hashes here.

File details

Details for the file faker2-40.29.0.post10-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for faker2-40.29.0.post10-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 34b34e1a7e593a9d285d39017c0873653b963108049e1fc99d3a25c206015303
MD5 3c331b465fbd9d98f91f1a2d03123f1f
BLAKE2b-256 5c2584dd0f66e85f34a7bf96f5b95ecba0622d8c8949660f670ec724fb072e64

See more details on using hashes here.

File details

Details for the file faker2-40.29.0.post10-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for faker2-40.29.0.post10-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f81b419c2fed0092f0ab74171e739ad2ba1cc47f59e57c3a41090e9c273025a5
MD5 52cd5fd4288260ae87bb3f84e314f9ee
BLAKE2b-256 637486ca9e1aba8fa19d46521b1a0996a7f8323f16358832523ce44fb69f3126

See more details on using hashes here.

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