A convenience library for working with Human-Readable Formats ( HRFs ) such as YAML and JSON.
Project description
Copyright (c) 2024 Sean Yeatts. All rights reserved.
A convenience pipeline for working with Human-Readable Formats ( HRFs ) such as YAML and JSON. It’s designed to easily read / write data between HRFs and Python dictionaries, both in raw and flattened ( single key-value pairs ) formats.
- Features:
Auto-conversion between different HRF formats based on file extensions.
‘Unpacking’ of nested data to flattened, single key-value pairs.
- Current supported HRFs:
YAML
JSON
- Methods:
read() : read raw HRF from file
write() : write raw HRF to destination
unpack() : read and flatten HRF data from file
pack() : fold HRF data and write to destination
flatten() : deconstruct nested data as single key-value pairs
fold() : rebuild data as nested key-value pairs
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hrfparser-1.1.0.tar.gz
.
File metadata
- Download URL: hrfparser-1.1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a141e9a8ee52404cc0a6fc4a116ccec41d8e69877773cdb3331e175758a15194 |
|
MD5 | fccab9e490f4e9d74258bb11d8eb1ef5 |
|
BLAKE2b-256 | e3d68899d0c7d4336c3ca8c205d5d489c652569b5afb822640b1f4ead098a002 |
File details
Details for the file hrfparser-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: hrfparser-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e6142b624dcaaa289343b25dd4d7a4d5e1cf00a396afc40f5a2e68807629784 |
|
MD5 | d2897b09539bd335cf73cfdd8ce951f8 |
|
BLAKE2b-256 | 86fe8e9813eb0c41f3c64e634ad94f3554b3d62bf0e31a2f4d96eb728f48ce46 |