Skip to main content

a3faker

  • It's just a thin wrapper of Faker, because PyCharm cannot autocomplete Faker related code.

Install

pip install a3faker

Examples

1. Autocomplete

from faker import Faker
from a3faker import TypePersonFaker, TypeAllFakers

# But there is a warning here,the solution is below.
f: TypePersonFaker = Faker()
f.name()

f: TypeAllFakers = Faker()
f.past_date()

2. FakerProxy get LOCALE from environment variable

import os
from a3faker import FakerProxy, TypePersonFaker

os.environ['FAKER_LOCALE'] = 'zh_CN'
f: TypePersonFaker = FakerProxy.get_faker()
f.name()

Metadata

Release files for a3faker 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for a3faker 0.1.0
File Size Uploaded
a3faker-0.1.0.tar.gz 7.0 kB Details

Release files / a3faker-0.1.0.tar.gz

Download URL a3faker-0.1.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e73fe4bbc166bce9704a5718997064f73424889b6426f0ee2a0014456f19114e
BLAKE2b-256 checksum
How to use checksums
90e08c87d6d2a28f582d5ba4bc0841ccc24b8bab8815bb02f3e50f08e109f2e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page