jsonfig
=======
Simple autoreloading configuration files in JSON. Will use the very fast UltraJSON library for parsing if available.
Installation
============
$ pip install jsonfig
Usage
=====
Create a JSON file whose root is a dictionary:
{
"always_load_user_data": true,
"use_new_feature_123": false,
"feature_456_chance": 0.20
}
Now it can be loaded as a dictionary:
>>> config = jsonfig.from_path("example.json")
>>> config["feature_456_chance"]
0.20
By default, when the file is changed, it will be automatically reloaded within one second:
{
"always_load_user_data": true,
"use_new_feature_123": false,
"feature_456_chance": 1.0
}
Now the new value will show up in the config structure:
>>> config["feature_456_chance"]
1.0
Metadata
Release files for jsonfig 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jsonfig-0.1.1.tar.gz | 3.3 kB | Without provenance | Details for jsonfig-0.1.1.tar.gz |
Release files / jsonfig-0.1.1.tar.gz
| Download URL | jsonfig-0.1.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f7b6dcd8fb4f42010bef79b26bc9e023e7aa4f8db0d9d2f2dbc7c2c6bb7c60e
|
|
BLAKE2b-256 checksum How to use checksums |
a279cfc64cdc1f2a1487eb48037530ae35c4a6a0f6953749472712e9b94dbbe8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for jsonfig 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.