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()

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

a3faker-0.1.0.tar.gz (7.0 kB view details)

Uploaded Source

File details

Details for the file a3faker-0.1.0.tar.gz.

File metadata

  • Download URL: a3faker-0.1.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for a3faker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e73fe4bbc166bce9704a5718997064f73424889b6426f0ee2a0014456f19114e
MD5 26fe3a59403bcad860e1fe1357541404
BLAKE2b-256 90e08c87d6d2a28f582d5ba4bc0841ccc24b8bab8815bb02f3e50f08e109f2e8

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page