fakeish-0.3.0
توضیحات
Faker but fast and dumb instead of slow and smart
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fakeish-0.3.0 |
| نام | fakeish |
| نسخه کتابخانه | 0.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | bengetch |
| ایمیل نویسنده | bengetch@gmail.com |
| آدرس صفحه اصلی | https://github.com/bengetch/fakeish |
| آدرس اینترنتی | https://pypi.org/project/fakeish/ |
| مجوز | MIT |
# fakeish
[faker](https://github.com/joke2k/faker) but fast and dumb instead of slow and smart
### Usage
To generate random but possibly overlapping data:
```python
from fakeish import Fakeish
f = Fakeish()
rand_ssn = f.ssn()
```
In order to generate data that is both random and non-overlapping, however, some light configuration is needed. The
following code will
```python
f = Fakeish()
f.configure_unique_samples_list("ssn", 50)
non_overlapping_ssns = [f.unique.ssn() for i in range(50)]
```
Configuration sample type can also be any of the following: emails, first_names, first_names_male, first_names_female,
last_names, names, names_male, names_female.
In order to generate the same random data each time, the `Fakeish` object can be seeded:
```python
f = Fakeish()
f.seed(<int>)
# configure / generate data here
```
نیازمندی
| مقدار | نام |
|---|---|
| - | pyyaml |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl fakeish-0.3.0:
pip install fakeish-0.3.0.whl
نصب پکیج tar.gz fakeish-0.3.0:
pip install fakeish-0.3.0.tar.gz