Skip to main content

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.

Metadata

Release files for four-letter-config 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for four-letter-config 0.3.0
File Size Uploaded
four_letter_config-0.3.0.tar.gz 5.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for four-letter-config 0.3.0
File Interpreter ABI Platform
four_letter_config-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.8 kB

Release files / four_letter_config-0.3.0.tar.gz

Download URL four_letter_config-0.3.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
45bf5075ab1adfb9aeb027c71566c6e66944feb9ac67b7ba67a4b3084167a21c
BLAKE2b-256 checksum
How to use checksums
0902e68915c8f69a44b394ce7f101865c8b68a90c4845af1b1ca86ad3fbc2009
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / four_letter_config-0.3.0-py3-none-any.whl

Download URL four_letter_config-0.3.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b4fa5c71fa348783a1ce1fe8a73877b24ed506e97eb987b0d5592e0366f1f93
BLAKE2b-256 checksum
How to use checksums
211917d7da8a5632941640429b97f7cae9aa3e844763305630a1490e01c29989
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page