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

Uploaded CPython 3.9+Windows x86-64

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

Uploaded CPython 3.9+macOS 11.0+ ARM64

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

File metadata

  • Download URL: faker2-40.29.0.post8.tar.gz
  • Upload date:
  • Size: 96.9 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.post8.tar.gz
Algorithm Hash digest
SHA256 08a090326ed5f0025fdf5b1afb915732bcf5205febd763d66e6ef684108a1839
MD5 6cdc5db9bf786ab9e4c571dcdabcc42b
BLAKE2b-256 7f0a9c9185fd94d777ef73171d88536bf9c5c6815968afba7ab6b7fc0a5a53f8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post8-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 18ad3af6742f74a3fd2e10c93110dc5334dbe61cfb3e81d723c908c86d91d899
MD5 603ef2e7270f7ee92f601b49514e763c
BLAKE2b-256 75b188fa31f1e661401eb788f2e81cf053fa40f97745af9ae4b9b895cd4430ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post8-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 272f69129f8af9252c9a9505136dfb8da3784f8edfebf88a1949fb79582f6663
MD5 a2e77d2f8a3a2437da322c057b637343
BLAKE2b-256 9aa965c6ba4bf4803de6bb6cddeda94059f0ae25b511f6d4f9009ea94bd5fe4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post8-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 72ed2b301a4a4ae20778b05c2e70e2ef110b4f3519163264d1524b664cfbe1ec
MD5 597d7ef42c8d4416d1eed84d806c74e4
BLAKE2b-256 f0546f789d059c71a4cd5adcc8b5fd87f101d4b271b4d0a5deb73579e2678c6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post8-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 de64a6c6f02ce70800f4f88b499ce5e14eb7d35a42304005fab167d1893e0667
MD5 3caed5c63d2786bfcc44f2405624154e
BLAKE2b-256 1e38d6b41fd3f463e9f1e7f704d1281e15b03a0d5792f5b435cb98a63f769269

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post8-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 98033d85019a86e31ceb7fb56642d8e84194302818586e00904d443337df0a9c
MD5 2846136debdc26aec6e15aa088441691
BLAKE2b-256 a75df1ec2861e402e9a645f82d93971aa04fb135ddbc9cf65e72d2b92967541e

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