Skip to main content

Handling of JSON and YAML configuraton files

Project description

Four letter config

“conf is just a four letter word”

Tiny package providing a module to handle four letter (JSON, YAML) files for configuration, and a CLI to convert between these two file formats.

Requirements

PyYAML

Installation

pip install four-letter-config

Installation in a virtual environment or with the --user oprtion is recommended.

Usage

Compare two files

python -m four_letter_config compare [ --diff ] <file_1> <file_2>

Each file may be a JSON or YAML file. The contents are sorted and compared.

Use the --diff option to get an output similar to that of the diff program.

Translate JSON to YAML or vice versa

python -m four_letter_config compare [ --overwrite ] <file_1> <file_2>

Writes the contents from file_1 to file_2.

Use the --overwrite option to overwrite an existing file.

Module Usage

Please refer to the reference documentation in this repository or on GitLab Pages.

Issues, feature requests

Please open an issue here if you found a bug or have a feature suggestion.

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

four_letter_config-0.2.0.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

four_letter_config-0.2.0-py3-none-any.whl (7.3 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