Skip to main content

PyConfs

Unified handling of configuration files in Python

Latest version Python versions Code style: black Interrogate DocStrings unit_tests

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)

Source distribution for pyconfs 0.5.7
File Size Uploaded
pyconfs-0.5.7.tar.gz 22.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyconfs 0.5.7
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.5.7 This release

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page