PyConfs
Unified handling of configuration files in Python
Note: For new projects, use Configaroo instead.
Installing PyConfs
PyConfs is available at PyPI. You can install it using Pip:
$ python -m pip install pyconfs
Using PyConfs
A PyConfs Configuration is a dictionary-like object that unifies several different configuration file formats, including INI, JSON, TOML, and YAML.
Read a configuration from file:
from pyconfs import Configuration
cfg = Configuration.from_file("sample.json")
Access entries in a configuration:
package_name = cfg.name
first_name = cfg.author.firstname
Installing From Source
You can always download the latest version of PyConfs from GitHub. PyConfs uses Flit as a setup tool.
To install PyConfs from the downloaded source, run Flit:
$ python -m flit install --deps production
If you want to change and play with the PyConfs source code, you should install it in editable mode:
$ python -m flit install --symlink
Metadata
Release files for pyconfs 0.5.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyconfs-0.5.7.tar.gz | 22.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyconfs-0.5.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.8 kB
Release files / pyconfs-0.5.7.tar.gz
| Download URL | pyconfs-0.5.7.tar.gz |
|---|---|
| Size | 22.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10becfdf0f2087db66cad6e1e9243cee25db92a08d8cc0eba0df8d773569963b
|
|
BLAKE2b-256 checksum How to use checksums |
c3b3902399a6e6b8066ba7649fc0b666aca5b0405233d7a8edd4814b16380d8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.5
|
Release files / pyconfs-0.5.7-py3-none-any.whl
| Download URL | pyconfs-0.5.7-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e13011ec1c99db838ba437730962a5ee9b79cad2b9b91bf84c3bf7b7d69af92c
|
|
BLAKE2b-256 checksum How to use checksums |
08fa0855f478d5e270fdb9a14c62ba018534ca1f9963ceaf5b3b095672572ce5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.5
|