Skip to main content

A convenience library 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

hrfparser-1.0.1.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

hrfparser-1.0.1-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

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