_/_/_/_/ _/_/ _/ _/ _/_/_/_/
_/ _/ _/ _/ _/ _/
_/_/_/ _/_/_/_/ _/_/ _/_/_/
_/ _/ _/ _/ _/ _/
_/ _/ _/ _/ _/ _/_/_/_/
Fake is a Python module that generates fake data, with the following features:
- Covers names, addresses, emails, time and dates, words, titles and paragraphs
- Produces the same datasets given the same seed
fake.seed(n)
.
Fake is also very easy to extend: simply drop a new data file in src/fake/data
,
register the JSON file in Data.DATASETS
and add a top-level function to
use it.
pip install --user fake-data
The name
and firstName
take (male=True|False,female=True|False)
so
that you can select whether you want a male (male=True)
or female (female=True)
name.
fake.name()
: Josh Bensonfake.firstName()
: Leticiafake.lastName()
: Pottsfake.user()
: dip_johnedward11fake.email()
: golfnduo@sohu.comfake.phone()
: +5 (645)-108103-18810fake.zip()
: 75193fake.address()
: 5832, Midcrest Wayfake.city()
: Qianpingfake.country()
: Nepalfake.company()
: Kinder Morgan, Inc.
fake.day()
: Saturdayfake.month()
: Decemberfake.seconds()
: 32fake.hour()
: 01:02fake.now()
: 2017-12-26 09:37:54.113547fake.number()
: 32fake.date()
: 2017-12-26 09:37:54.113609
fake.word()
: sincefake.text()
: Concubines aisle cheer cushioned transitorie befell at soon‥fake.title()
: Dalla morrow dalla alas not evermore lineage through‥fake.paragraph()
: Strength aye accio feather into amiss. Blazon alone uncouth disaster‥fake.topic()
: Bird