Skip to main content

PyConfs, unified handling of configuration files for Python

Project description

PyConfs

Unified handling of configuration files in Python

Latest version Python versions Code style: black Interrogate DocStrings unit_tests

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyconfs-0.5.5.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

pyconfs-0.5.5-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

Details for the file pyconfs-0.5.5.tar.gz.

File metadata

  • Download URL: pyconfs-0.5.5.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.26.0

File hashes

Hashes for pyconfs-0.5.5.tar.gz
Algorithm Hash digest
SHA256 88b8461971990ba330eca2e63d74fc6e81f03453ebd12beaafb6485c4dc4694d
MD5 599bdb5a357fc32f7f19dc87db3c3b43
BLAKE2b-256 68dc2fd98350a334d882c5073de01ebdd683e761e937cd1c6ea3f2469d04bf27

See more details on using hashes here.

File details

Details for the file pyconfs-0.5.5-py3-none-any.whl.

File metadata

  • Download URL: pyconfs-0.5.5-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.26.0

File hashes

Hashes for pyconfs-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a56780245198d90a7dd996186312a2f193ae4c4d1f2694fcddba9f584ba689ca
MD5 843d4c0f0e0b45eb6ea6ac19c5601d04
BLAKE2b-256 7a5f4ef54c4d61f3edfe6519ee53f0325fbe0a41f7fd962dd3f4d0a5d7e0db6a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page