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.post11.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.post11-cp39-abi3-win_amd64.whl (40.5 MB view details)

Uploaded CPython 3.9+Windows x86-64

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

Uploaded CPython 3.9+macOS 11.0+ ARM64

faker2-40.29.0.post11-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.post11.tar.gz.

File metadata

  • Download URL: faker2-40.29.0.post11.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.post11.tar.gz
Algorithm Hash digest
SHA256 d189b3892217d032b76cb85f12840ee9fb192b63d6ea20aed2bd580c6b316714
MD5 6aa1a6a954875a57020a4c5e610c4358
BLAKE2b-256 999088d4fb4378b5be96210438860da820682e88acd089a07d9ac4a6e1d6a9cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post11-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 142ddd0806fb8bec07ef82cb4a46a7310450618921a57b5b474a3559eb5931b9
MD5 489e8381a15dd721c574ce3de5ba2a25
BLAKE2b-256 e97cfe6853f30637b682a820831a8738e7d3713bc29c40503300e107583e06d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post11-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9182777de54acf74b6aadc49f7e3179cfb64f6bd8891abbba578e82e56c8a125
MD5 35231891f4b61bb939b4bd12e27558cf
BLAKE2b-256 d976d6810fc27b8b257a6eb6b166be7856d002d2a40ae4250ab88fa81f1c0c7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post11-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ef85c708ecc38578abba9cd952503a94eb16c068c54f55d395dc674f9ebe26a4
MD5 fa0e76d5da2818bf9923b3b023319387
BLAKE2b-256 3d96ff7ba49cd526e9b6bfab2579f08d44cd85a3ed4b6a1f866f58d1bfecc954

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post11-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9708739767272d02ddb3cf89a0ecaf63e04e33df26e9984f4852ae4ad895f31f
MD5 8b57532270ab6451a773c9c1b8270f98
BLAKE2b-256 3395d64b2e0875c61a4777ae168ec2a29504c418778b21c1b1e19c7e3bda89fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post11-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e97b72c2a46c0dfcbc2df9e8d1d67d90ff13601584a019609c239573cd232ecb
MD5 d2659ed0b2ff4e6cc38af1110d3fef69
BLAKE2b-256 342e2ebdae91abb8745dd3fb24e5f9f1e5de8dc448d4028c1f1b8e72ae990c4e

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