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.
1. Environment setup
1.1. Get the code
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
pip install --upgrade virtualenv
python3 -m virtualenv --python python3 env
source ./env/bin/activate
1.3.3. Install the dependencies
pip install --editable .
1.3.4. Set environment variables
Replace below values according to your environment:
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.
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
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
History
0.0.1 (2020-04-30)
- First release on PyPI.
Metadata
Release files for bq-fake-pii-table-creator 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| bq-fake-pii-table-creator-0.0.4.tar.gz | 7.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bq_fake_pii_table_creator-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.8 kB
Release files / bq-fake-pii-table-creator-0.0.4.tar.gz
| Download URL | bq-fake-pii-table-creator-0.0.4.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9174523fd375db7bc57b62fc9c3bb8c714111741f147e0217ed846a460f3f60b
|
|
BLAKE2b-256 checksum How to use checksums |
57504fe99cad1259874208451885c00c1ffce57968b970d08380bb249a727f99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6
|
Release files / bq_fake_pii_table_creator-0.0.4-py3-none-any.whl
| Download URL | bq_fake_pii_table_creator-0.0.4-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea4033b38eb44050e6fae166c1dffa93e5859ef69bfc50414a2de1e75153c113
|
|
BLAKE2b-256 checksum How to use checksums |
d656d4b484c5538d4248af3a4bf7e78b18d64c787236ec60c834488fabbbbbec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6
|
Security for bq-fake-pii-table-creator 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.