npconf is a flexible configuration system whose configuration files are plain python modules. The identifiers (left-hand side) are declared by the administrator/developer and are hierarchical. A typical configuration file might be:
myapp.subcomponent.value = 1
myapp.enabled = True
The user needn’t define “myapp”. It’s automatically included in globals().
The administrator/developer can disallow user-defined attributes. This is mostly intended to prevent typos in the configuration files. In other words, if myapp.foo is not defined before reading the configuration files, no file will be allowed to set myapp.foo.
The configuration attributes are normally declared by a program before it reads any configuration files. They can be declared at init time:
import npconf
root = npconf.ConfigValue(name='myapp', data={'enabled': 'false'})
# and/or updated after init:
root.update(data={'thing': None})
# to add another level to the hierarchy:
subcomponent = npconf.ConfigValue(
name='subcomponent',
data={
'foo': 'banana',
})
root.update({'subcomponent': subcomponent})
Metadata
Release files for npconf 0.0.3
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 |
|---|---|---|---|---|
| npconf-0.0.3.zip | 7.6 kB | Without provenance | Details for npconf-0.0.3.zip |
Release files / npconf-0.0.3.zip
| Download URL | npconf-0.0.3.zip |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d2c98e6bf61113854e9f461b39cfaf1a8a2f7e226d4301f67919e395ad9083e4
|
|
BLAKE2b-256 checksum How to use checksums |
fe1070b5f64c3610914bde4e480b09caf820df5f3e14f499249bb665af32e214
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for npconf 0.0.3
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.