Metadata-Version: 2.1
Name: pii-data-generator
Version: 1.0.3
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: bleach (==4.1.0)
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: 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: pkginfo (==1.8.1)
Requires-Dist: protobuf (==3.19.1)
Requires-Dist: psycopg2-binary (==2.9.2)
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: 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: 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: 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/OmkarPathak/pyresparser/blob/master/LICENSE) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/Django.svg) 
[![Build Status](https://travis-ci.com/OmkarPathak/pyresparser.svg?branch=master)](https://travis-ci.com/OmkarPathak/pyresparser)


# 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:
```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 

