rkt-config-lib 2.0.0__py3-none-any.whl → 2.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rkt_config_lib-2.0.3.dist-info/METADATA +36 -0
- rkt_config_lib-2.0.3.dist-info/RECORD +6 -0
- rkt_config_lib-2.0.0.dist-info/METADATA +0 -12
- rkt_config_lib-2.0.0.dist-info/RECORD +0 -6
- {rkt_config_lib-2.0.0.dist-info → rkt_config_lib-2.0.3.dist-info}/WHEEL +0 -0
- {rkt_config_lib-2.0.0.dist-info → rkt_config_lib-2.0.3.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rkt_config_lib
|
|
3
|
+
Version: 2.0.3
|
|
4
|
+
Summary: RootKit custom PyYaml Lib
|
|
5
|
+
Author-email: RootKit <rootkit@rootkit-lab.org>
|
|
6
|
+
License: MIT
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Operating System :: OS Independent
|
|
9
|
+
Requires-Python: >=3.7
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
Requires-Dist: PyYaml>=6.0.1
|
|
12
|
+
Requires-Dist: rkt_tool_lib
|
|
13
|
+
Requires-Dist: rkt_logger_lib
|
|
14
|
+
|
|
15
|
+
# rkt_config_lib
|
|
16
|
+
|
|
17
|
+
Centralized Configuration Management wrapper around PyYaml.
|
|
18
|
+
|
|
19
|
+
## Features
|
|
20
|
+
- **Singleton Pattern**: Ensures a single configuration state across your application.
|
|
21
|
+
- **Auto-Loading**: Automatically scans and loads all YAML files in a `config/` directory.
|
|
22
|
+
- **Safe Loading**: Uses `yaml.safe_load` by default to prevent arbitrary code execution vulnerabilities.
|
|
23
|
+
- **Integrated Logging**: Logs loading operations via `rkt_logger_lib`.
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
```python
|
|
28
|
+
from config import Config
|
|
29
|
+
|
|
30
|
+
conf = Config()
|
|
31
|
+
# Loads all .yml/.yaml files from ./config/ directory
|
|
32
|
+
conf.get_data()
|
|
33
|
+
|
|
34
|
+
# Access data (filename becomes the key)
|
|
35
|
+
my_settings = conf.data.get("settings")
|
|
36
|
+
```
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
config/__init__.py,sha256=Iu75-w9_nlPmnB_qKA7nYaaaHf7xtTrDmK8N4v2WV34,27
|
|
2
|
+
config/config.py,sha256=Xnza7siGOMmhBR3yAqmq042vASKzsElW97y29FOIGcI,2572
|
|
3
|
+
rkt_config_lib-2.0.3.dist-info/METADATA,sha256=KBwIzrLEMFRQStSFndtbFraQgob0pZrX7o3Bpr3EnoE,1067
|
|
4
|
+
rkt_config_lib-2.0.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
5
|
+
rkt_config_lib-2.0.3.dist-info/top_level.txt,sha256=9hK4m828QBN59kTX5IVy40cPd9zUw5QWQF2AlSrXCJ4,7
|
|
6
|
+
rkt_config_lib-2.0.3.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: rkt_config_lib
|
|
3
|
-
Version: 2.0.0
|
|
4
|
-
Summary: RootKit custom PyYaml Lib
|
|
5
|
-
Author-email: RootKit <rootkit@rootkit-lab.org>
|
|
6
|
-
Classifier: Programming Language :: Python :: 3
|
|
7
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
8
|
-
Classifier: Operating System :: OS Independent
|
|
9
|
-
Requires-Python: >=3.7
|
|
10
|
-
Requires-Dist: PyYaml>=6.0.1
|
|
11
|
-
Requires-Dist: rkt_tool_lib
|
|
12
|
-
Requires-Dist: rkt_logger_lib
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
config/__init__.py,sha256=Iu75-w9_nlPmnB_qKA7nYaaaHf7xtTrDmK8N4v2WV34,27
|
|
2
|
-
config/config.py,sha256=Xnza7siGOMmhBR3yAqmq042vASKzsElW97y29FOIGcI,2572
|
|
3
|
-
rkt_config_lib-2.0.0.dist-info/METADATA,sha256=6np3Ub0O0Wa3KZnFG0VJ2DkuKRmkhB87aZtNb5m4Xv0,397
|
|
4
|
-
rkt_config_lib-2.0.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
5
|
-
rkt_config_lib-2.0.0.dist-info/top_level.txt,sha256=9hK4m828QBN59kTX5IVy40cPd9zUw5QWQF2AlSrXCJ4,7
|
|
6
|
-
rkt_config_lib-2.0.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|