The JohnDoe
class generates synthetic personal information (PII) for testing environments. It creates mock details of a person, including name, age, address, phone number, email, and more.
This class allows you to generate random personal information and related documents.
- Clone the repo into the desired location
$ git clone https://github.com/IanUmney/JohnDoe.git
- Change into that directory
$ cd JohnDoe/
- Install via pip
$ pip install .
Import into python project
from johndoe import JohnDoe
# Create a JohnDoe instance
jd = JohnDoe()
jd.create()
or from the command line
$ python3 -m johndoe --document
{
"gender": "m",
"name": "Lucas Richards",
"age": 35,
"nino": "BD 59 71 22 Y",
"email": "Lucas.Richards@yahoo.com",
"address": {
"house_number": 128,
"street": "South Street",
"area": "North Ayrshire",
"postcode": "KA27 8BE"
},
"birthday": "18/01/1988",
"banking": {
"bank": "LLOYDS BANK PLC",
"sort_code": "11-06-35",
"account_number": 69450610,
"card_number": "5573 5742 3918 7035",
"provider": "Mastercard",
"expiry_date": "12/22",
"cvv": "260"
},
"ip_address": "188.125.93.31",
"mobile_number": {
"number": "07392985340",
"provider": "Vodafone"
},
"driving_license": "RICHA8618899NJ 60"
}