A python package for managing YAML configuration
Project description
pyconfman2
pyconfman2 is designed to handle schema configurations by loading properties from a dictionary or a YAML configuration file. It provides methods for adding, getting, and removing properties from the schema.
Installation
python -m pip install pyconfman2
Usage
Basic
In it's most basic form, a Schema can be created which will load a local "config.yaml" or "config.yml" file present.
from pyconfman2 import Schema
config=Schema()
Provide a default config
from pyconfman2 import Schema
config=Schema({"foo": "bar"})
Specify the default config file to load
from pyconfman2 import Schema
config=Schema(default_config="default_config.yaml")
Specify the config file to load
from pyconfman2 import Schema
config=Schema(filepath="another_config.yaml")
Schema Loading breakdown
init
- Load the hard-coded defaults
- Load (and override) using the "default config" file if present
- Load (and override) using the config file if present
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyconfman2-0.0.9.tar.gz.
File metadata
- Download URL: pyconfman2-0.0.9.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c700e926604f3119a46c6a1a2ec45ab0e67aa640197f607e6a898a64d396cd1b
|
|
| MD5 |
4ae100c36d61b2454fe48aaa1b7a527b
|
|
| BLAKE2b-256 |
7c56245b791f84b4624b10656d49ea1e8b98e98fa611c736e936efbedf97c3fe
|
File details
Details for the file pyconfman2-0.0.9-py3-none-any.whl.
File metadata
- Download URL: pyconfman2-0.0.9-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7a0ddfce73bbd4b8438c2d3963ae7b03901fa97f72cb95fa710c5796b2fe94c
|
|
| MD5 |
216944f029c0e21f79d811112a582a1d
|
|
| BLAKE2b-256 |
c4bc1e0ac058e512f7c9ea578e246e7906e8ccb4ff30f185036c8a545c6c9fdc
|