Skip to main content

PGAnonymizer

PGAnonymizer is a tool for anonymizing database for testing purposes.

Installation

PGAnonymizer required Python 3.5 and above to run. PGAnonymizer can be installed using pip.

$ pip install git+https://git.proteus-tech.com/Boon/pganonymizer.git

Background

PGAnonymizer will hash columns in table depending on the rules inside CSJ file.

CSJ file format:

"table", "column", "rule"
"table_to_be_hased", "columned_to_be_hased", "rule_for_hashing"
"table_to_be_hased", "columned_to_be_hased", "rule_for_hashing"
"table_to_be_hased", "columned_to_be_hased", "rule_for_hashing"

Example for rules for hashing

Hash is for text type field such as name or address. The return value will be atmost 16 bytes Example input:

Customer1

Example output:

20b7d291d71b2b1f

Date is for date type field. The return value will keep the original year but hash the month and date field. Example input:

2000-12-15

Example output:

2000-01-10

Phone is for phone number. The return value will be of same length as the original number. Example input:

+66932019385

Example output:

+66254818000

Instruction

To use PGAnonymizer, you can call:

$ pganonymizer --schema path_to_schema_file.csj

For more information on the usage, please use the following command:

$ pganonymizer --help

Metadata

Release files for pganonymizer 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pganonymizer 0.0.1
File Size Uploaded Provenance Actions
pganonymizer-0.0.1.tar.gz 3.7 kB Without provenance Details for pganonymizer-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pganonymizer 0.0.1
File Interpreter ABI Platform Actions
pganonymizer-0.0.1-py3-none-any.whl Python 3 none any Details for pganonymizer-0.0.1-py3-none-any.whl

Total release size: 9.4 kB

Release files / pganonymizer-0.0.1.tar.gz

Download URL pganonymizer-0.0.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
69c44c3d5ec4a8004ab44bfc3ce707940b299b02ee05cb9b737dfe67a3b7d19c
BLAKE2b-256 checksum
How to use checksums
5062c3ddc77d91c559ef746cbffbf93a3260044b183154871404f2619e1531a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

Release files / pganonymizer-0.0.1-py3-none-any.whl

Download URL pganonymizer-0.0.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60b7c428e56d70bde4ce3cdc07624275e68e98c7181484d04057b76a140ca6d3
BLAKE2b-256 checksum
How to use checksums
5ded8cd551e7fc0f9aa70ae41f30667f24ecef59a57d63e06541a1232182e728
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

Security for pganonymizer 0.0.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page