RootKit custom PyYaml Lib
Project description
rkt_config_lib
Centralized Configuration Management wrapper around PyYaml.
Features
- Singleton Pattern: Ensures a single configuration state across your application.
- Auto-Loading: Automatically scans and loads all YAML files in a
config/directory. - Safe Loading: Uses
yaml.safe_loadby default to prevent arbitrary code execution vulnerabilities. - Integrated Logging: Logs loading operations via
rkt_logger_lib.
Usage
from config import Config
conf = Config()
# Loads all .yml/.yaml files from ./config/ directory
conf.get_data()
# Access data (filename becomes the key)
my_settings = conf.data.get("settings")
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
rkt_config_lib-2.0.3.tar.gz
(3.3 kB
view details)
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 rkt_config_lib-2.0.3.tar.gz.
File metadata
- Download URL: rkt_config_lib-2.0.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cd728dac1030cd0fe8a46a88d6b204c2ea27d25377d8f9c498d22c09a373663
|
|
| MD5 |
a4135dd66fa6576a05f9e61f004aa6be
|
|
| BLAKE2b-256 |
32d7063e79e858dc9ffa1540ef3327f86b91646cb5369412b8634ee762fede58
|
File details
Details for the file rkt_config_lib-2.0.3-py3-none-any.whl.
File metadata
- Download URL: rkt_config_lib-2.0.3-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66cfea3d575f76e6c7c550fe3ca3d27cea7c08505b6c79fb078b4c242c762509
|
|
| MD5 |
37a962cf1b150830fdd07423bf61c288
|
|
| BLAKE2b-256 |
9e90102dbcb9891bca154ce2cb65db9ccb0e6d6325c5aa03a4b9020c3f9ae99e
|