Skip to main content

A hot-reload configuration dictionary

Project description

Author: Stalin License: MIT Platform: UNKNOWN Classifier: Programming Language :: Python :: 3 Classifier: License :: OSI Approved :: MIT License Classifier: Operating System :: OS Independent Requires-Python: >=3.6 License-File: LICENSE

:eye:blink


A hot-reload configuration dictionary

Introduction


blink allows you to create configuration dictionary to your python

program which autoupdates when your file changes. Usually when you load

a config file, the loaded dictionary is stored in memory and when the

actual config file changes, those changes are not reflected in memory.

blink can help you with that problem by updating your config

dictionary based on file changes safely.

You can access configuration exactly how you access your dictionary in

python.

How to use


Just import

from blink import Config



config = Config("config.json")

and use it like a normal dictionary!

val = config["key1"]["subkey1"]

print(config["number"])

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

blink-config-0.0.1.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

blink_config-0.0.1-py3-none-any.whl (4.7 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