Skip to main content

Handle 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 translate [ --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.3.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

four_letter_config-0.3.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file four_letter_config-0.3.0.tar.gz.

File metadata

  • Download URL: four_letter_config-0.3.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.9

File hashes

Hashes for four_letter_config-0.3.0.tar.gz
Algorithm Hash digest
SHA256 45bf5075ab1adfb9aeb027c71566c6e66944feb9ac67b7ba67a4b3084167a21c
MD5 efd38ff3d3a9780c0f035bfafb74a544
BLAKE2b-256 0902e68915c8f69a44b394ce7f101865c8b68a90c4845af1b1ca86ad3fbc2009

See more details on using hashes here.

File details

Details for the file four_letter_config-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: four_letter_config-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.9

File hashes

Hashes for four_letter_config-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b4fa5c71fa348783a1ce1fe8a73877b24ed506e97eb987b0d5592e0366f1f93
MD5 55575a7811b532500d0836e45561385f
BLAKE2b-256 211917d7da8a5632941640429b97f7cae9aa3e844763305630a1490e01c29989

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