rkt-config-lib 2.0.0__tar.gz → 2.0.3__tar.gz

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.
@@ -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
+ ```
@@ -4,14 +4,15 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rkt_config_lib"
7
- version = "2.0.0"
7
+ version = "2.0.3"
8
8
  description = "RootKit custom PyYaml Lib"
9
+ readme = "README.md"
9
10
  authors = [
10
11
  { name="RootKit", email="rootkit@rootkit-lab.org" },
11
12
  ]
13
+ license = { text = "MIT" }
12
14
  classifiers = [
13
15
  "Programming Language :: Python :: 3",
14
- "License :: OSI Approved :: MIT License",
15
16
  "Operating System :: OS Independent",
16
17
  ]
17
18
  requires-python = ">=3.7"
@@ -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
+ ```
@@ -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,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
File without changes
File without changes