vendetta
Anonymize CSV file(s) by replacing sensitive values with fakes.
Installation
pip install vendetta
Example
Suppose you have orders.csv dataset with real customer names and order IDs.
CustomerName,CustomerLastName,OrderID
Darth,Wader,1254
Darth,Wader,1255
,Yoda,1256
Luke,Skywalker,1257
Leia,Skywalker,1258
,Yoda,1259
This list contains 4 unique customers. Let's create a configuration file, say, orders.yaml:
columns:
CustomerName: first_name
CustomerLastName: last_name
and run:
vendetta anonymize orders.yaml < orders.csv > anon.csv
which gives something like this in anon.csv:
CustomerName,CustomerLastName,OrderID
Elizabeth,Oliver,1254
Elizabeth,Oliver,1255
Karen,Rodriguez,1256
Jonathan,Joseph,1257
Katelyn,Joseph,1258
Karen,Rodriguez,1259
- OrderID column was not mentioned in the config, and was left as is
- Using faker, program replaced the first and last names with random first and last names, making the data believable
- If in the source file two cells for the same column had the same value (Vader), the output file will also have identical values in these cells.
Enjoy!
License
Credits
This project was generated with wemake-python-package. Current template version is: b80221aaae4ac702bea7e66b77b9389d527c1e3c. See what is updated since then.
Metadata
Release files for vendetta 0.0.2
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 | Actions |
|---|---|---|---|---|
| vendetta-0.0.2.tar.gz | 5.0 kB | Without provenance | Details for vendetta-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vendetta-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for vendetta-0.0.2-py3-none-any.whl |
Total release size: 10.7 kB
Release files / vendetta-0.0.2.tar.gz
| Download URL | vendetta-0.0.2.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
322032ba9aeea2c037426e479a897cc58414a67464da5bbc428ec847fb124805
|
|
BLAKE2b-256 checksum How to use checksums |
dd0aaa206d8aebc6f5fa28e0a65791d7b0d25ed6223b3a3e40331eecfa1c199a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.8.6 Linux/5.4.0-72-generic
|
Release files / vendetta-0.0.2-py3-none-any.whl
| Download URL | vendetta-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f62aaf1558eb602e49e91266ad92671c14df085f8d72db5f4365731ba041075
|
|
BLAKE2b-256 checksum How to use checksums |
f2d87d5ba927dfed1dc4a7b2899fe8549e38135b36d6edf97bbcab120e8d9038
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.8.6 Linux/5.4.0-72-generic
|
Security for vendetta 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.