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.post12.tar.gz (115.2 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.post12-cp39-abi3-win_amd64.whl (40.5 MB view details)

Uploaded CPython 3.9+Windows x86-64

faker2-40.29.0.post12-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.post12-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.post12-cp39-abi3-macosx_11_0_arm64.whl (40.7 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

faker2-40.29.0.post12-cp39-abi3-macosx_10_12_x86_64.whl (40.9 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: faker2-40.29.0.post12.tar.gz
  • Upload date:
  • Size: 115.2 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.post12.tar.gz
Algorithm Hash digest
SHA256 930e8ba6d6c065354cdd99d755e2469eea2b6d0eeab144338f2425f85c24885a
MD5 62322ce4921fa38ce9cf4bdce59360ac
BLAKE2b-256 4148f47a393a383ba54e3f1be9b140d6f12dac14fe8a9710e1e3c93331d5f6b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post12-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 317c5f4b1287bf4efe0c1093a21e1d38fde8816e0ff72a599f4b9448e0221c4e
MD5 6cab0d6c2ba5111b66cd260c8c02b0da
BLAKE2b-256 d6f895d53b41f724843502bc768aa2116d32344f2e363afec3c7b210db866a79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post12-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6cc2ecc5b972429b98d0177fbe1add543ce646231e661c3b9098e16d8ca966bf
MD5 c69b6d1ac56f06b49490a2e133d9f86c
BLAKE2b-256 ea2f70559709a115afe87ee4f9d8effefb2df45c73cb724abe0af6e9613856d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post12-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8b4f23b7de59b85818ae3bff0027b027d173571f5713945b384c15c0d41e3695
MD5 99c980fb41df855aae7f1d5cd90d9476
BLAKE2b-256 54b9b3290b66171134500b1f139844d7b5ecaf9016f496cb26759b51201b57fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post12-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 989d9f7aed302a796fe3c333dcce00f299415c8bce6fbb62785ee4940a4a6fd3
MD5 a026b62baf6591359afe409c036b0277
BLAKE2b-256 dc73b7bbc22cfacba52c6c2e6a5bb8527fa7e921f329a0d064241d98a57f1edd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post12-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 afaf265f4ad944054450dbf73c7b724b6006036cf6b3f0163f3ccb957387bb56
MD5 2a2e7af19cfbe2d249afa970a828ad1e
BLAKE2b-256 094eb3738718df6992532b12dc0c4ee2de52548b9a5b8edd3e3219b4152f81af

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