Skip to main content

Smart Settings

Project description

Smart Settings

PyPI version Downloads

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


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)

Uploaded Source

Built Distribution

smartsettings-0.1.0-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page