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

Uploaded CPython 3.9+Windows x86-64

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

Uploaded CPython 3.9+macOS 11.0+ ARM64

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

File metadata

  • Download URL: faker2-40.29.0.post7.tar.gz
  • Upload date:
  • Size: 89.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.post7.tar.gz
Algorithm Hash digest
SHA256 80d86881648b22247a0a234b6cd2e5757cb54a2676f09a420e53dae1bfa9739d
MD5 9f1a25881c6f7f25f5cdcc4578801d94
BLAKE2b-256 732d2d66c4e5efffdfdf9e1d227ec322af0422951a55ce2e456a904235b9069b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post7-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 651478117924ea618fb242e09cfbcd7ed091655aa527642bf2443279e57de338
MD5 3a6e7d68f1ab8a973892fa331d0fc75d
BLAKE2b-256 0fe710e908b15acd0f167d32ded5146d5f79edfcbe1eb2c5fce1e8d5de483a63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post7-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bfd2d2767ca6624e53d72ead059f152738c68705fc777122b81c9e74e4f4d8a6
MD5 82b9567d97a1b99ecd9b51475667bd7c
BLAKE2b-256 77e8a69ad51463aec35a4d3aad8897be4de851c86a8759b86edb65d0959918d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post7-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 792a0de5919edf394fcc315bf38fb0194f2b94ab7ea8b0803eac7baf9685e6ee
MD5 2825a3b5c4d5abbc39ca8cfc94aafa00
BLAKE2b-256 cb8e25a4eecf6254796db9faf570abff72007ef163feb9a86b7b6e5b1a3b2707

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post7-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a32297d9b860b41be1651184c889c9128c4c696ff6dd56931537868351d8335
MD5 70252aaa37c5ed792345ef4c925733cd
BLAKE2b-256 25e74ffdb7f211fb6ab21d63e5c516897f57aa46aa045c17cbb88643e019dc40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for faker2-40.29.0.post7-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b0cd9880e82006b7312b19b18093527faac37b35c51e13adbce8fd55ad6dd2c2
MD5 95f7a1b99287b112ad9e8653ff944ec8
BLAKE2b-256 7a06ac3e16dc640a4789ef6930fb25f746b80d2299f3ae38683b7af7364fc60d

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