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

Uploaded CPython 3.9+Windows x86-64

faker2-40.29.0.post9-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (34.4 MB view details)

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

faker2-40.29.0.post9-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (34.2 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.9+macOS 11.0+ ARM64

faker2-40.29.0.post9-cp39-abi3-macosx_10_12_x86_64.whl (34.0 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: faker2-40.29.0.post9.tar.gz
  • Upload date:
  • Size: 115.1 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.post9.tar.gz
Algorithm Hash digest
SHA256 1f6d2f5c81b327384e7d89a95b74f5fca600ba75a55fba034e97f8b4f9eec9c5
MD5 fdd96dab486617d00df7adaf30e8c104
BLAKE2b-256 edabcbd858d1f7c549a5bc645a62f0d97231ee2f40408729f9d04cfd9f9bb65e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post9-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 65e0b5c3dc5c0eefab260d4df6316b5ba117b6868fbe638be4b5e44d018dccb8
MD5 0f66f8ff4ee7e3ec94975ff78bff7dc2
BLAKE2b-256 f15f5408523fd32dab3bcfaf6f32e73b2815dbe8b47b0d627549b9f1c4ef0bfd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post9-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b87f5ee6949f44513661cbf9dec11fb2f1fff64b0a628adbf785d295db754c53
MD5 85713e8f1140a7e56f1069d135f50035
BLAKE2b-256 120b94d9931da780b8431e89f2a188b3c626d60fe03e4319848ddc05f6e46cc2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post9-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 97155671a57e04f03a1844ac931b9725b530bce4b44fef1c3755a932a892f584
MD5 4f4d0351cfc305c73341021df533a521
BLAKE2b-256 89f64de8787496cbdc61dd331cec320fd0c5daacab302df2f0b62ecc4383d938

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post9-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48302d7d4540168afd5cc771a864bf11e110b148b970f42992f8a7ea1c475f45
MD5 90236028028b6ce557679db70d3823e1
BLAKE2b-256 21ae840b912e330da9b295012fa752952c3fce5b55e036591a26a59e553f61fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post9-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 64f72f046c6153058570c5154fa445b25294ed674ca1d9c1e2889a6d4b92f704
MD5 3d26440d46ff9be08b301009c80504d0
BLAKE2b-256 4abace131a3cb9efb83a1755128fa421254e4abcb628eee610c3919aab45ac47

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