hashfields
Selectively hash, drop, or keep fields from a flat file (e.g. CSV).
Install with pip:
pip install hashfields
Or visit the Releases page for pre-built, self-contained executables.
Example
Given this input CSV:
column1,column2,column3,column4
r1c1,r1c2,r1c3,r1c4
r2c1,r2c2,r2c3,r2c4
r3c1,r3c2,r3c3,r3c4
r4c1,r4c2,r4c3,r4c4
And this configuration:
SHA256hash algorithm- drop
column1,column3 - skip
column2
E.g.
echo "column1,column2,column3,column4
r1c1,r1c2,r1c3,r1c4
r2c1,r2c2,r2c3,r2c4
r3c1,r3c2,r3c3,r3c4
r4c1,r4c2,r4c3,r4c4" | hashfields --alg sha256 --drop column1 column3 --skip column2
hashfields produces this CSV:
column2,column4
r1c2,fb66e41761a74ea0c042e1c226c04fa2ce1a1334d7063d86230d17f33f109b68
r2c2,6051c006caee661a6ccb390b8cf7a43230c5cd7b54861f7306a598b612f924b9
r3c2,7e32c53b7729f5dce7ac54232b7f2d93d6c78ed19fc8d096b0fde948f513e9dc
r4c2,f8d0624d128daf97c61ec28f4396e8f14be2ca2940d18fdf33e939cda9bd1824
See https://docs.calitp.org/hashfields for more details.
Metadata
Release files for hashfields 2023.9.1
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 | |
|---|---|---|---|---|
| hashfields-2023.9.1.tar.gz | 875.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hashfields-2023.9.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 887.9 kB
Release files / hashfields-2023.9.1.tar.gz
| Download URL | hashfields-2023.9.1.tar.gz |
|---|---|
| Size | 875.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
434eea7fc025df6125ff68611f57f7a426dbff1e938231945829bd49928614eb
|
|
BLAKE2b-256 checksum How to use checksums |
5400e10479c8b582af78b1e847bda7d9558fde76925341ab0ae0e90e0d7b9719
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.18
|
Release files / hashfields-2023.9.1-py3-none-any.whl
| Download URL | hashfields-2023.9.1-py3-none-any.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9dc80b6cf8fdd817b513e615a03ebb8fbb355df5fd77b8e58bab69f6ad76f226
|
|
BLAKE2b-256 checksum How to use checksums |
cf46829e79c93f2c3651df48fd846bb16701ef9866921ec349254616b1ca7895
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.18
|
Security for hashfields 2023.9.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.