configmelt
Introduction
The ConfigMeld package simplifies configuration handling by providing a class to manage JSON or YAML configurations. This class allows for easy loading, accessing, and manipulation of configuration attributes.
Installation
To install configmelt, simply use pip:
pip install configmelt
Features:
- Loading Configurations: Load configurations from JSON or YAML files.
- Accessing Configurations: Access configuration attributes as object properties.
- Flexible Representation: Manage configurations in an object-oriented manner.
- Environmental Integration: Easily convert configurations to environment variables.
- Schema Generation: Generate JSON schema based on existing configurations.
Usage
- Initializing ConfigMeld:
from configmeld import ConfigMeld
# Initialize ConfigMeld with attributes
config = ConfigMeld(foo='bar', nested={'key': 'value'})
# Access configuration attributes
print(config.foo) # Output: 'bar'
- Loading Configurations from Files:
# Load configurations from a JSON/YAML file
path_to_config = 'path/to/config.json'
loaded_config = ConfigMeld.load_config_from_file(path_to_config)
# Access loaded configurations
print(loaded_config.attribute_name)
- schema Generation:
# Generate JSON schema based on existing configurations
schema = loaded_config.generate_schema()
print(schema)
Documentation
The Sphinx-generated documentation for configmelt can be found here.
Contribution
Feel free to contribute by submitting issues here.
Metadata
Release files for configmelt 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| configmelt-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for configmelt-1.0.3-py3-none-any.whl |
Release files / configmelt-1.0.3-py3-none-any.whl
| Download URL | configmelt-1.0.3-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be71fb39d4d008db28f1e5c92bf025b6b2392892e762496dee754a83dce8c536
|
|
BLAKE2b-256 checksum How to use checksums |
9a609a50f55cafc8dd8e7cea9a7e56e367fc4cb886e86320cbdd9b103e9d7902
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Security for configmelt 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.