Package: pii-data-generator
pii-data-generatorA simple "Personally identifiable information" (PII) Data Generator for both programmers and non programmers...Built with ❤︎ and :coffee: in one night byDeepak RajpurohitFeaturesGenerate Data of PII like :Generate Cradit-Card (Visa/Master-card)Generate emailGenerate mobile numbersGenerate First NameGenerate Last NameGenerate AddressGenerate CountryGenerate Weight/HeightGenerate CVV numberGenerate Card - Expiry DateInstallationYou can install this package usingpipinstallpii-data-generatorafter installing packageUsageFor Non-Programmers usage / CLI:write pii command that will generate for 10 persons and store them in json filefor more data generation usepii --n 400this will generate 400 PII person data with "visa" credit cardif you want to generate master cardspii --n 400  --c master cardthis will generate  400 PII data with master cardif you want both cards types than usepii --n 400  --a yesif you want to insert this data in mongodbpii --n 400  --a yes --conn <mongo-db connection string># PIIpii--n100--ayes# insert data in mongodbpii--n400--ayes--conn<mongo-dbconnectionstring>For Programmers usage:AZUREFor the all the cosmos databases or in mongo databasefrompii_generator.pii_data_generatorimportPIIGeneratorpii_gen=PIIGenerator(how_many=100,both_credit_type=True)database_conn_string=""pii_gen.insert_data_in_mongo(database_conn_string)For the config files example you can go here...For insert data in azure mysqlfrompii_generator.pii_data_generatorimportPIIGeneratorpii_gen=PIIGenerator(how_many=100,both_credit_type=True)mysql_config_json_file_path="/Users/deepak9636/Downloads/pii-data-generator-master/config_example/azure_mysql.json"pii_gen.insert_pii_data_in_azure_mysql_db(mysql_config_json_file_path)For insert data in azure postgresfrompii_generator.pii_data_generatorimportPIIGeneratorpii_gen=PIIGenerator(how_many=100,both_credit_type=True)psql_config_json_file_path="/Users/deepak9636/Downloads/pii-data-generator-master/config_example/azure_psql.json"pii_gen.insert_pii_data_in_azure_mysql_db(psql_config_json_file_path)For insert data in azure mariafrompii_generator.pii_data_generatorimportPIIGeneratorpii_gen=PIIGenerator(how_many=100,both_credit_type=True)maria_config_json_file_path="/Users/deepak9636/Downloads/pii-data-generator-master/config_example/maria.json"pii_gen.insert_pii_data_in_azure_maria_db(maria_config_json_file_path)for insert data in azure sqlfrompii_generator.pii_data_generatorimportPIIGeneratorpii_gen=PIIGenerator(how_many=100,both_credit_type=True)sql_config_json_file_path="/Users/deepak9636/Downloads/pii-data-generator-master/config_example/azure_sql.json"print(pii_gen.insert_pii_data_in_azure_sql(sql_config_json_file_path))GCPFor the all the cosmos databases or in mysql databasefrompii_generator.pii_data_generatorimportPIIGeneratorpii_gen=PIIGenerator(how_many=100,both_credit_type=True)mysql_config_json_file_path="/Users/deepak9636/Downloads/pii-data-generator-master/config_example/gcp_mysql.json"pii_gen.insert_pii_data_in_gcp_mysql_db(mysql_config_json_file_path)For the all the cosmos databases or in postgres databasefrompii_generator.pii_data_generatorimportPIIGeneratorpii_gen=PIIGenerator(how_many=100,both_credit_type=True)psql_config_json_file_path="/Users/deepak9636/Downloads/pii-data-generator-master/config_example/gcp_psql.json"pii_gen.insert_pii_data_in_gcp_psql_db(psql_config_json_file_path)For the all the cosmos databases or in Sql databasefrompii_generator.pii_data_generatorimportPIIGeneratorpii_gen=PIIGenerator(how_many=100,both_credit_type=True)sql_config_json_file_path="/Users/deepak9636/Downloads/pii-data-generator-master/config_example/gcp_psql.json"pii_gen.insert_pii_data_in_gcp_sql_db(sql_config_json_file_path)frompprintimportpprint
frompii_generator.pii_data_generatorimportPIIGeneratorpii_gen=PIIGenerator(100,'visa',True)# this will give you data in dictionary formatpprint(pii_gen.get_data_in_dict())# this will give you data in json formatpii_gen.get_data_in_json()# this will give you data in json file on desktoppii_gen.get_data_in_json_file()# this will give you data in pandas data framepii_gen.get_data_in_df()# this will Insert pii data in data in mongodbpii_gen.insert_data_in_mongo(connection_string)Thank you