It's just a thin wrapper of Faker, because PyCharm cannot autocomplete Faker related code.
Project description
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()
Project details
Release history Release notifications | RSS feed
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 hashes)