configtony
A (tiny) configuration library.
Installing
# The easy way
pip install configtony
# Installing from source
git clone https://github.com/IAmMoltony/configtony.git
cd configtony
pip install .
Example
from configtony import Config
config = Config("config.jsonc")
# Adds an option called 'username' that is of string type, default 'John'
config.add_option("username", str, "John")
config.add_option("some_flag", bool, False)
config.parse()
print(config.get("username"))
Metadata
Release files for configtony 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| configtony-1.0.0.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| configtony-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 kB
Release files / configtony-1.0.0.tar.gz
| Download URL | configtony-1.0.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
954882149e0dfc828b9f841ffa7dcb0a599eda52dd465463e956b15f15bfa7ce
|
|
BLAKE2b-256 checksum How to use checksums |
d9eee1f1bc0f22ee38ca4355728e65f6b5040127ef15cc174bd08160217baacd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / configtony-1.0.0-py3-none-any.whl
| Download URL | configtony-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72b91464888b71a461422c32f601d29586a1a58912c7720df7762bf7c12a5f06
|
|
BLAKE2b-256 checksum How to use checksums |
9e5727ddd1f3ca36293e841834c625bee4c6fde1e2073bd2f0c0ad47b50cb4e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|