a3faker
توضیحات
It's just a thin wrapper of Faker, because PyCharm cannot autocomplete Faker related code.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | a3faker-0.1.0 |
| نام | a3faker |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | three-kinds |
| ایمیل نویسنده | 3179158552@qq.com |
| آدرس صفحه اصلی | https://gitee.com/three-kinds/a3faker |
| آدرس اینترنتی | https://pypi.org/project/a3faker/ |
| مجوز | Apache 2.0 |
# a3faker
* It's just a thin wrapper of [Faker](https://pypi.org/project/Faker/), because PyCharm cannot autocomplete Faker related code.
## Install
```shell script
pip install a3faker
```
## Examples
### 1. Autocomplete
```python
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
```python
import os
from a3faker import FakerProxy, TypePersonFaker
os.environ['FAKER_LOCALE'] = 'zh_CN'
f: TypePersonFaker = FakerProxy.get_faker()
f.name()
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl a3faker-0.1.0:
pip install a3faker.whl
نصب پکیج tar.gz a3faker-0.1.0:
pip install a3faker.tar.gz