Generates random information of a person
Project description
get_random_people ·
A python package that generates huge dataset of fake, but real looking data of a person, that can be used to practice data science tools such as pandas. Useful to create graphs, tables etc.
Installation
pip install get_random_people
Examples
To get single person, get_person()
from get_random_people import getPerson
user = get_person()
In the above example get_person()
will return a dictionary that has all the information of a person.
To get multiple person, get_peoples([n])
from get_random_people import get_peoples
users = get_peoples()
hundered_users = get_peoples(100)
In the above example get_peoples()
will return a list of 10 person by default, but if you pass any numbers in the parenthesis it will return the list of that numbers of people, eg get_peoples(100)
will return list of hundered people
To get the property of a person
user = get_person()
print(user["firstname"]) #eg: Harry
print(user["lastname"]) #eg: Potter
print(user["age"]) #eg: 33
print(user["nationality"]) #eg: England
All the properties of a person
id,
firstname,
lastname,
dob,
email,
phoneNumber,
address,
gender,
religion,
age,
skinColor,
eyeColor,
hairStyle,
hairColor,
isMarried,
highestEducation,
occupation,
sideBussiness,
annaulIncomeUSD,
nationality,
heightInFeet,
weightInKg
Functions
from get_random_people import *
get_highest_education() # returns a qualification
get_phone_number([n]) # returns a phone number with n number of digits, if nothing is passed 10 digit number will be returned
get_DOB() # returns a date of birth
get_nationality() # returns a country name
© 2022 InternetWebSoftwares | Ata Shaikh | Nicholes Viktor
This repository is licensed under the MIT license See License for details.
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
Built Distribution
Hashes for get_random_people-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2cf20103f31421c536e8187498e0bfbaf4cb5c885526b68ff9739433bd9ac2e |
|
MD5 | 609c953b4a749398fca778dd70030b86 |
|
BLAKE2b-256 | 3f2aec48bceaf257111dc5940c58cd17f956b63c34c724a30cf64a65bf1999b5 |