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.2

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.2
File Size Uploaded Provenance Actions
pganonymizer-0.0.2.tar.gz 3.8 kB Without provenance Details for pganonymizer-0.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 9.5 kB

Release files / pganonymizer-0.0.2.tar.gz

Download URL pganonymizer-0.0.2.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f7616439fd5ad1d0e0865dc0d0587a9975b5a0446d75ec520bd8920b384df86e
BLAKE2b-256 checksum
How to use checksums
a28a648d356a9527a04f404fd4242a4df3429776d9f437b051dfa3a002b723d4
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.2-py3-none-any.whl

Download URL pganonymizer-0.0.2-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d30348ab44497308f8b886aeafe7466c13f84042adccef42f9a7ca3d432c88ed
BLAKE2b-256 checksum
How to use checksums
a1981afb9b42c036b05ca2655a9423f24c67b4f5673d77c64b1714e2df72796a
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.2

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