Smart Settings
Project description
Smart Settings
Easy to use, flexible and versitile settings.
It can be serialized to json format, and even encrypted.
The updatable
feature makes it suitable for value bindings.
Installation
pip install smartsettings
Usage
>>> import smartsettings as ss
>>> settings = ss.SmartSettings(name="Settings", value=100)
>>> settings
{'name': 'Settings', 'value': 100}
>>> settings_string = ss.to_string(settings)
>>> settings_string
'{"py/object": "smartsettings.smartsettings.SmartSettings", "name": "Settings", "value": 100}'
>>> loaded_settings = ss.from_string(settings_string)
>>> loaded_settings
{'name': 'Settings', 'value': 100}
>>> loaded_settings == settings
True
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
smartsettings-0.1.0.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for smartsettings-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c48f39ecc99d1e60764da6642d938f9bb8e06305862940449fb9a1d76d7ebbe |
|
MD5 | 0738ebc34c8e31bad25d53d16ea8ec34 |
|
BLAKE2b-256 | 8573f66e0980c50c0c2511fedf20e3440e85f06ba078c5f3af3f47798465b2ca |