Simple Attribute saving manager
Project description
Simple Config
Simple Attribute saving manager
Installation
pip install simconf
Documentation
Init
from SimConf import SimConf
config = SimConf(filename, default_atr, ensure_ascii, load_conf)
filename
filename = "filename"
(create filename.json)
filename = "folder/filename"
(create filename.json in folder)
default_atr
default_atr = {"arg0": 0, "arg1": 1 ...}
default_atr = ["arg0", "arg1" ...]
default_atr = {"a": {"b": [],},} etСЃ
ensure_ascii
Standard json attribute
ensure_ascii = bool()
load_conf
if true, loads values from file, if there is no file, uses default_atr, if false, uses default_atr
load_conf = bool()
Use
Get arg
arg = config["arg"]
Set arg and create new
config["arg"] = args
config["new"] = args
Set default value
config.set_default() #use default_atr
Print in console all saves
config.print_all()
Support
- Telegramm https://t.me/Rahazb
- Email bokon2014@yandex.ru
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
SimConf-0.1.2.tar.gz
(15.3 kB
view details)
File details
Details for the file SimConf-0.1.2.tar.gz.
File metadata
- Download URL: SimConf-0.1.2.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba5fb238e93959a08ff071e5d6f528978ed1f6513a7a792e5cd7337c9e5b1a20
|
|
| MD5 |
0aa370c7c7d6655025a57889a99444b6
|
|
| BLAKE2b-256 |
5e66efb68c64b108807e3bccfd48c08ba58e5566e725d7cce64603dd3a08e594
|