A simple tool for creating fake polish personal data in JSON or CSV formats. If works generally by randomly mixing and matching all the possible names, surnames and addresses of Polish citizens available in GUS' databases (they are public domain).
To generate 500 records in JSON simply open console in the scripts folder and run:
python .\MockDataCreator.pyAvailable options include:
-h, --help show this help message and exit
-n NUMBER Number of records
-f FILENAME Output filename
--no-phone Exclude phone numbers
--no-email Exclude e-mail adresses
-pr Include parent data?
--yaml Output YAML format as well
--uuid Use UUID instead of a number for id?
Each record generated contains:
id: an incremental number, starting at 1name: a string denoting name of the personsurname: a string denoting surname of the persongender: a string denoting gender. Possible values are "M" and "F"address: a string denoting the address of the personparents: a nested object for the contact information of the parentsdad: a nested object for the dadname: name of the dadsurname: surname of the dadphone: a string containing a valid phone numberemail: a string containing a valid email address -mom: a nested object for the mum, has the same fields asdad
hash: a unique hash created usinguuid4()function
An example of the record is shown below:
[
{
"id": 0,
"name": "Janina",
"surname": "Król",
"gender": "F",
"address": "al. Jerozolimskie 212",
"city": "Warszawa",
"parents": {
"dad": {
"name": "Józef",
"surname": "Król"
},
"mom": {
"name": "Zofia",
"surname": "Król"
}
}
},
{
"id": 1,
"name": "Sławomir",
"surname": "Zawadzki",
"gender": "M",
"address": "ul. Fraszki 11",
"city": "Warszawa",
"parents": {
"dad": {
"name": "Jarosław",
"surname": "Zawadzki",
"phone": "974611580",
"email": "rogapal@wp.pl"
},
"mom": {
"name": "Anna",
"surname": "Zawadzka",
"phone": "761576065",
"email": "wnyi@o2.pl"
}
}
}
]