Metadata-Version: 2.1
Name: pii-data-generator
Version: 1.1.2
Summary: It generats the dummy 'Personally identifiable information' data
Home-page: https://github.com/AvinashRajPurohit/pii-data-generator
Author: Deepak Rajpurohit
Author-email: deepakrajpurohit945@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: asn1crypto (==1.4.0)
Requires-Dist: bleach (==4.1.0)
Requires-Dist: cachetools (==4.2.4)
Requires-Dist: certifi (==2021.10.8)
Requires-Dist: charset-normalizer (==2.0.8)
Requires-Dist: colorama (==0.4.4)
Requires-Dist: docutils (==0.18.1)
Requires-Dist: Faker (==9.8.3)
Requires-Dist: google-api-core (==2.2.2)
Requires-Dist: google-api-python-client (==2.32.0)
Requires-Dist: google-auth (==2.3.3)
Requires-Dist: google-auth-httplib2 (==0.1.0)
Requires-Dist: google-cloud (==0.34.0)
Requires-Dist: google-cloud-bigquery (==2.31.0)
Requires-Dist: google-cloud-core (==2.2.1)
Requires-Dist: google-crc32c (==1.3.0)
Requires-Dist: google-resumable-media (==2.1.0)
Requires-Dist: googleapis-common-protos (==1.53.0)
Requires-Dist: grpcio (==1.42.0)
Requires-Dist: grpcio-status (==1.42.0)
Requires-Dist: httplib2 (==0.20.2)
Requires-Dist: idna (==3.3)
Requires-Dist: importlib-metadata (==4.8.2)
Requires-Dist: keyring (==23.4.0)
Requires-Dist: mongoengine (==0.23.1)
Requires-Dist: mysql-connector (==2.2.9)
Requires-Dist: mysql-connector-python (==8.0.27)
Requires-Dist: numpy (==1.21.4)
Requires-Dist: packaging (==21.3)
Requires-Dist: pandas (==1.3.4)
Requires-Dist: pg8000 (==1.23.0)
Requires-Dist: pkginfo (==1.8.1)
Requires-Dist: proto-plus (==1.19.8)
Requires-Dist: protobuf (==3.19.1)
Requires-Dist: psycopg2-binary (==2.9.2)
Requires-Dist: pyarrow (==6.0.1)
Requires-Dist: pyasn1 (==0.4.8)
Requires-Dist: pyasn1-modules (==0.2.8)
Requires-Dist: pydantic (==1.8.2)
Requires-Dist: Pygments (==2.10.0)
Requires-Dist: pymongo (==3.12.1)
Requires-Dist: pyparsing (==3.0.6)
Requires-Dist: python-dateutil (==2.8.2)
Requires-Dist: python-tds (==1.11.0)
Requires-Dist: pytz (==2021.3)
Requires-Dist: readme-renderer (==30.0)
Requires-Dist: requests (==2.26.0)
Requires-Dist: requests-toolbelt (==0.9.1)
Requires-Dist: rfc3986 (==1.5.0)
Requires-Dist: rsa (==4.8)
Requires-Dist: scramp (==1.4.1)
Requires-Dist: six (==1.16.0)
Requires-Dist: text-unidecode (==1.3)
Requires-Dist: tqdm (==4.62.3)
Requires-Dist: twine (==3.6.0)
Requires-Dist: typing-extensions (==4.0.1)
Requires-Dist: uritemplate (==4.1.1)
Requires-Dist: urllib3 (==1.26.7)
Requires-Dist: webencodings (==0.5.1)
Requires-Dist: zipp (==3.6.0)

# pii-data-generator

```
A simple "Personally identifiable information" (PII) Data Generator for both programmers and non programmers...
```

Built with ❤︎ and :coffee: in one night by  [Deepak Rajpurohit](https://github.com/AvinashRajPurohit)

---

[![GitHub](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/AvinashRajPurohit/pii-data-generator/blob/master/LICENSE) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/Django.svg) 


# Features
#### Generate Data of PII like :
- Generate Cradit-Card (Visa/Master-card)
- Generate email
- Generate mobile numbers
- Generate First Name
- Generate Last Name
- Generate Address
- Generate Country
- Generate Weight/Height
- Generate CVV number
- Generate Card - Expiry Date


# Installation

- You can install this package using

```bash
pip install pii-data-generator
```
- after installing package 

# Usage

#### For Non-Programmers usage / CLI:
* write pii command that will generate for 10 persons and store them in json file 
* for more data generation use ```pii --n 400``` this will generate 400 PII person data with "visa" credit card
* if you want to generate master cards ```pii --n 400  --c master card``` this will generate  400 PII data with master card
* if you want both cards types than use ```pii --n 400  --a yes```

* if you want to insert this data in mongodb ```pii --n 400  --a yes --conn <mongo-db connection string>```

```bash
# PII
pii --n 100 --a yes

# insert data in mongodb
pii --n 400  --a yes --conn <mongo-db connection string>
```

#### For Programmers usage:
# AZURE
## For the all the cosmos databases or in mongo database
```bash
from pii_generator.pii_data_generator import PIIGenerator
pii_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... ![Config Files Example](https://github.com/AvinashRajPurohit/pii-data-generator/tree/master/config_example)

## For insert data in azure mysql
```bash
from pii_generator.pii_data_generator import PIIGenerator
pii_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 postgres
```bash
from pii_generator.pii_data_generator import PIIGenerator
pii_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 maria

```bash
from pii_generator.pii_data_generator import PIIGenerator
pii_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 sql

```bash
from pii_generator.pii_data_generator import PIIGenerator
pii_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))
```


# GCP

#### For the all the cosmos databases or in mysql database

```bash
from pii_generator.pii_data_generator import PIIGenerator
pii_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 database

```bash
from pii_generator.pii_data_generator import PIIGenerator
pii_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 database
```bash
from pii_generator.pii_data_generator import PIIGenerator
pii_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)

```


```bash
from pprint import pprint
from pii_generator.pii_data_generator import PIIGenerator

pii_gen = PIIGenerator(100, 'visa', True)

# this will give you data in dictionary format
pprint(pii_gen.get_data_in_dict())

# this will give you data in json format
pii_gen.get_data_in_json()

# this will give you data in json file on desktop
pii_gen.get_data_in_json_file()


# this will give you data in pandas data frame
pii_gen.get_data_in_df()


# this will Insert pii data in data in mongodb
pii_gen.insert_data_in_mongo(connection_string)


```
#### Thank you 

