Super-Config
Config parsing on steroids.
Quickstart
Super-Config is available on PyPI and can be installed with pip.
$ pip install Super-Config
After installing Super-Config you can use it like any other Python module.
Here is a simple example:
import superconfig as sc
from superconfig.superconf import SuperConfig
def main():
SuperConfig.setup(
path_default="configs/default.ini", path_custom="configs/dev.yaml"
)
print(SuperConfig.get("LOCAL_PATHS.path"))
print(SuperConfig.get("CLOUD_PATHS.path"))
print(SuperConfig.get("ENVIRONMENT_NAME"))
val = SuperConfig.get("ENVIRONMENT_ID", dtype=sc.INT)
print(val, type(val))
Documentation
The API Reference provides API-level documentation
Examples
Refer the examples folder in this repository
Credits
Change Log
Version History
- 0.0.1
Project created.
Metadata
Release files for Super-Config 0.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 | Reset |
|---|---|---|---|---|
| Super_Config-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Release files / Super_Config-0.0.3-py3-none-any.whl
| Download URL | Super_Config-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
879282c189b6f3669c75059a54911a2aa0b108e3040e20c1c98891f750c8a5aa
|
|
BLAKE2b-256 checksum How to use checksums |
43a41097035b8e7a5511e47383a4ebcf9fcf0424b248d967f2739f87ab01c461
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|