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 Provides-Extra: ini Provides-Extra: toml Provides-Extra: xml Provides-Extra: yaml License-File: LICENSE
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
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
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 blink-config-0.0.4.tar.gz.
File metadata
- Download URL: blink-config-0.0.4.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9e53ae30de3f839988a917c2b6032ffc984127f28a1d27333b500c99afae543
|
|
| MD5 |
7f7b797f8aa56c9521f424b3f0a01525
|
|
| BLAKE2b-256 |
44e821750bb16f3567d2c4c9f07b807656852bf671225d024db1b4ba78432ef4
|
File details
Details for the file blink_config-0.0.4-py3-none-any.whl.
File metadata
- Download URL: blink_config-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29f902e2cd5626fcffffd70019ee9125baaf4f29f7402c797db4401b111e8cf5
|
|
| MD5 |
1bf467094454632474947ed9c943ec3c
|
|
| BLAKE2b-256 |
7c0a2f17b08a89544a6135cb4f6eca1c508abc205f423c3537a922a6bec51d95
|