tidy_headers
tidy_headers stores metadata in beautifully readable plain text headers.
example
For some filepath,
import collections
import tidy_headers
meta = collections.OrderedDict()
meta['date'] = '2017-11-10'
meta['location'] = 'Madison, Wisconsin, USA'
meta['name'] = ['batch', 'apples', 'pineapple', 'oregano', 'tomatoes']
tidy_headers.write(filepath, meta)
To get the dictionary back, simply read:
meta = tidy_headers.read(filepath)
🎉
See the examples directory for more:
installation
using pip
pip install tidy_headers
using conda
conda config --add channels conda-forge
conda install tidy_headers
allowed values
tidy_headers strives to write plain text headers in an unambiguous way such that an identical metadata dictionary can be generated using read. This process is only reliable for the following subset of python types:
strintfloatlistcontaining any combination of the abovenumpy.ndarray(arbitrary size and dimensionality)
Metadata dictionaries containing only these types are guaranteed to read and write succesfully.
Metadata
Release files for tidy_headers 1.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 | Actions |
|---|---|---|---|---|
| tidy_headers-1.0.4.tar.gz | 8.0 kB | Without provenance | Details for tidy_headers-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tidy_headers-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for tidy_headers-1.0.4-py3-none-any.whl |
Total release size: 15.4 kB
Release files / tidy_headers-1.0.4.tar.gz
| Download URL | tidy_headers-1.0.4.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f65fe7d50717640be9a89900e5ef100020cb725dd49abf62545e176a4dca2991
|
|
BLAKE2b-256 checksum How to use checksums |
9de13d004bb9b4dfaa402c1539d4bf8a9e5b27b0dc89d66bb4668037c4c18e45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Release files / tidy_headers-1.0.4-py3-none-any.whl
| Download URL | tidy_headers-1.0.4-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94b5c6e53303498a781643aa6fcea4a82a5ebbcc015810cbffb9f98f8f570ffe
|
|
BLAKE2b-256 checksum How to use checksums |
1645dcbb4c036d0e2dccae498cb3f6277f04835adf9ae17fa01c766e173cfb44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Security for tidy_headers 1.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.