A convenience pipeline for working with Human-Readable Formats ( HRFs ) such as YAML and JSON.
Project description
Copyright (c) 2023 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
Hashes for hrfparser-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aea70dd08aacbb4ea190552ec1c76aa7bc74215fe08848d023e9572aa2f7b786 |
|
MD5 | 75f959ab89126bbfb3fae6b1388976a1 |
|
BLAKE2b-256 | 9b9c1062067fd8758c1b07850c385532b2a488dea4c3aeef8f6bfd2d1354f651 |