A simple module allows you to quickly create and modify a configuration file. Based on 'configparser'.
Project description
A simple shell allows you to quickly save and then load settings or any other project data, based on the "configparser" module. Allows you to save variable types and also supports "datetime".
Examples
Import:
>>> import uniconf
Create an instance:
>>> config = uniconf.Config()
Review:
>>> config.struct()
[info]
name:{str}
number:{int}
Сreate and edit:
>>> a = 123
>>> config.set("info_2", "number", a)
>>> config.struct()
[info]
name:{str}
number:{int}
[info_2]
number:{int}
Get:
>>> config.get("info_2", "number")
123
>>> config("info_2", "number")
123
>>> type(config("info_2", "number"))
<class 'int'>
Delete:
>>> config.delete("info", "name")
>>> config.struct()
[info]
number:{int}
[info_2]
number:{int}
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
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 UniConf-0.1.2.tar.gz.
File metadata
- Download URL: UniConf-0.1.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
606ea9511d7845b9c3d15df716495f97cf4555e0a361121a56f681f600b09258
|
|
| MD5 |
9e4706acc3b1ae829eb03011f36d6426
|
|
| BLAKE2b-256 |
16ba3d49072237423853510e7d2b26125a6dffeb55c976d978c9dc9eae182b87
|
File details
Details for the file UniConf-0.1.2-py3-none-any.whl.
File metadata
- Download URL: UniConf-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26ba64035fabf8a710f9ba0ed6289186a4a9fe76a2b59cfc50ea835baaa66c15
|
|
| MD5 |
a55b9d23fb91f1557dad1b17afa6f5fc
|
|
| BLAKE2b-256 |
8e2ded220d66ca16fd5c1b283b73dd150bd0e169d68363035115bd27f838f02f
|