Skip to main content

Get genuine data for your testing requirements.

Project description

Genuine-Fake documentation

Definition

Genuine Fake means an imitation of a (usually) valuable object that is so good that it is, to all intents and purposes, identical. Literally genuine fake means something that is real but not real at the same time. Take it like this, it's more of a perfect replica of the original.

Why

As I was building a Django app that involved forms a lot, I got tired from filling the forms and having to think of the testing data at the same time. As curious as I am I wondered if there might be a package that can handle this for me, fortunately there was one, but I didn't like it, well not because it wasn't good, it was brilliant actually but it didn't have all the necessary and broad range of data I was looking for. Then I asked myself "What now?" The decision was to write my own. I did write it within 6 hours. I have changed it's name about 3 times now, hopefully this time it will stick.

Inspiration

Well, truthfully the inspiration came from me trying to challenge myself and be out there. I was so inspired to write the code for this to the point that I wrote half the code on paper as I was travelling from school to home on the train.

How It Works

Installation

$ pip install genuine-fake

Different Environments

Terminal
$ pip3 install genuine-fake
$ python3
>>>
Windows Command Prompt
C:\Users\Andile XeroxZen> pip install genuine-fake
C:\Users\Andile XeroxZen> python
>>>

Usage

>>> from genuine.fake import GenuineFake as data
>>> data.name()
'Mbonisi Ncube'
>>> data.first_name()
'Phumzile'
>>> data.last_name()
'Moyo'
>>> data.hospital()
'Queen of Peace Clinic'
>>> data.medical_aid()
'For All Medical Aid Society'
>>> data.medical_professions()
'Orthotist'
>>> data.national_id()
'08-906712V35'
>>> data.phone_number()
'+263 77 647 5160'
>>> data.email()
'ivynkala@outlook.com'
>>> data.address()
'32 Casper Road, Sunninghill'
>>> data.career()
'Physician'
>>> data.company()
'Standard Chartered Bank'
>>> data.career_position()
'Chauffeur'
>>> data.date()
'2020-04-13'
>>> data.random_date()
'1988-06-21'
>>> data.date_of_birth()
'1995-05-19'
>>> data.allergies()
'Fish'
>>> data.house_account_number()
'34746237'
>>> data.covid_symptom()
'fever'
>>> data.payment_method()
'EcoCash'
>>> data.covid_age_group()
'13 - 19'

Other functions include

>>> import genuine
>>> genuine.__author__
'Andile Jaden Mbele'
>>> genuine.__email__
'andilembele020@gmail.com'
>>> genuine.__package__
'genuine-fake'
>>> genuine.__github__
'https://github.com/xeroxzen/genuine-fake'
>>>

Project details


Download files

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

Source Distribution

Genuine-fake-1.2.19.tar.gz (17.2 kB view hashes)

Uploaded Source

Built Distribution

Genuine_fake-1.2.19-py3-none-any.whl (22.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page