semvec/pypi-packages huggingface dataset:
bq-fake-pii-table-creator 0.0.4
Library for creating BQ tables with fake sensible data

# bq_fake_pii_table_creator

Library for creating BQ tables with fake pii data.

The drive and use case to create this library, was when you need a lot of data to validate if your org complies with regulations like
CCPA, HIPAA, GDPR.

[![PyPi][4]][5] [![License][6]][6] [![Issues][7]][8]

## 1. Environment setup

### 1.1. Get the code

````bash
git clone https://.../bq_fake_pii_table_creator.git
cd bq_fake_pii_table_creator
````

### 1.2. Auth credentials

##### 1.2.1. Create a service account and grant it below roles

The Service Account authenticated must have administrator privileges for Cloud Storage and BigQuery.

##### 1.2.2. Download a JSON key and save it as
- `<YOUR-CREDENTIALS_FILES_FOLDER>/bq_fake_pii_table_creator-credentials.json`

> Please notice this folder and file will be required in next steps.

### 1.3. Virtualenv

Using *virtualenv* is optional, but strongly recommended unless you use Docker or a PEX file.

##### 1.3.1. Install Python 3.6+

##### 1.3.2. Create and activate a *virtualenv*

```bash
pip install --upgrade virtualenv
python3 -m virtualenv --python python3 env
source ./env/bin/activate
```

##### 1.3.3. Install the dependencies

```bash
pip install --editable .
```

##### 1.3.4. Set environment variables

Replace below values according to your environment:

```bash
export GOOGLE_APPLICATION_CREDENTIALS=credentials_file_path

```

### 1.4. Docker

See instructions below.

## 2. Sample application entry point

### 2.1. Run main.py

- Virtualenv

Only the project-id argument is required.

```bash
python main.py --project-id your_project --bq-dataset-name your_dataset --bq-table-name your_table --num-rows 5000 --num-cols 10 --obfuscate-col-names true
```


### 2.2. Or using Docker

```bash
docker build -t bq_fake_pii_table_creator .
docker run --rm --tty -v CREDENTIALS_FILES_FOLDER:/data \
bq_fake_pii_table_creator \
 --project-id your_project
```

[4]: https://img.shields.io/pypi/v/bq-fake-pii-table-creator.svg
[5]: https://pypi.org/project/bq-fake-pii-table-creator/
[6]: https://img.shields.io/github/license/mesmacosta/bq-fake-pii-table-creator.svg
[7]: https://img.shields.io/github/issues/mesmacosta/bq-fake-pii-table-creator.svg
[8]: https://github.com/mesmacosta/bq-fake-pii-table-creator/issues


## History


0.0.1 (2020-04-30)
------------------

* First release on PyPI.
brainsprite 0.14.2
Python API for the brainsprite MRI brain viewer
Requires Python: >=3.5

# Brainsprite
Brainsprite is a library to incorporate interactive brain viewers in html web documents. Brainsprite is composed of two components: a javascript rendering engine, and a python API used to populate an html template with all necessary data and meta data. The documentation of the project can be found on https://brainsprite.github.io

[![CircleCI](https://circleci.com/gh/brainsprite/brainsprite.svg?style=svg)](https://circleci.com/gh/brainsprite/brainsprite) [![codecov](https://codecov.io/gh/brainsprite/brainsprite/branch/master/graph/badge.svg)](https://codecov.io/gh/brainsprite/brainsprite) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/8ad58f155f3544209fa01fb4ed87eadc)](https://www.codacy.com/gh/brainsprite/brainsprite?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=brainsprite/brainsprite&amp;utm_campaign=Badge_Grade) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![collaborate brainhack](https://img.shields.io/badge/collaborate-brainhack-FF69A4.svg)](https://mattermost.brainhack.org/brainhack/channels/brainsprite)