Skip to main content

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

hrfparser-1.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

hrfparser-1.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for hrfparser-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a141e9a8ee52404cc0a6fc4a116ccec41d8e69877773cdb3331e175758a15194
MD5 fccab9e490f4e9d74258bb11d8eb1ef5
BLAKE2b-256 e3d68899d0c7d4336c3ca8c205d5d489c652569b5afb822640b1f4ead098a002

See more details on using hashes here.

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

Hashes for hrfparser-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e6142b624dcaaa289343b25dd4d7a4d5e1cf00a396afc40f5a2e68807629784
MD5 d2897b09539bd335cf73cfdd8ce951f8
BLAKE2b-256 86fe8e9813eb0c41f3c64e634ad94f3554b3d62bf0e31a2f4d96eb728f48ce46

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page