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.post6.tar.gz (88.7 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.post6-cp39-abi3-win_amd64.whl (33.6 MB view details)

Uploaded CPython 3.9+Windows x86-64

faker2-40.29.0.post6-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (34.3 MB view details)

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

faker2-40.29.0.post6-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (34.1 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

faker2-40.29.0.post6-cp39-abi3-macosx_11_0_arm64.whl (33.8 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

faker2-40.29.0.post6-cp39-abi3-macosx_10_12_x86_64.whl (33.9 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: faker2-40.29.0.post6.tar.gz
  • Upload date:
  • Size: 88.7 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.post6.tar.gz
Algorithm Hash digest
SHA256 e3bd9bfb2bf3ce04151fd97725c3ec8cbed95aaf0b947e82195b3a9e02e074d4
MD5 04cc34cfc9bee1e6ab367e3f2c14bc0d
BLAKE2b-256 0fc647871d3e751a6e01173aabf462d7fd1e55199255ef4949bdb6023d4eb661

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post6-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ad36768cd91ea423c68556a0852e2497319f08dafc7b3db703cd548a89685892
MD5 65ad6d158c02146befd4efaac6706779
BLAKE2b-256 cd07926f4d8096af744a3fc1ecd98c5bd66bb9a66b6e886086467bd709a09c0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post6-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 83c09831e070b1ec78afdf9964fbf647ca2a34ca6140f8e5400b174862f9c5b5
MD5 79d896564184e7f7e2c8c2b3e492d021
BLAKE2b-256 426061f6c1dc9cf25197a6c5c09f23544c127e33121e259e6d80e994b52ec50f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post6-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1eb47dcad165edbe0b727fa798f482c69e9509c7503bb8f4479389eb7fce7161
MD5 ba879e1203103578db248d0b2bb642a7
BLAKE2b-256 0a3e35eac1c89edd19e26ac235ed9c6f6c2373f02ef3ac383a49a3d083822871

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post6-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5b1e684b460e817a93b81844da73e20a01a60a13ad1a88ebc3a7645d75e3a616
MD5 2e1f32f8331dfdcf7c945599048a366c
BLAKE2b-256 ef7ee217cbd10947613fd81bd0ae3a153cdf9a6e709e036bcfcc14a4f478cbad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post6-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 30d6fbc5f50ea2615a2bd04ae90d0cb0499dc24a8e1f2214014bee036eebf028
MD5 e1ffde891a353080963bbcb40e244879
BLAKE2b-256 027cc4bff5025f4c2be7819de1273d9565764c108837aba1154848dd8919375c

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