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

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

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.7.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyconfs-0.5.7-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyconfs-0.5.7.tar.gz
Algorithm Hash digest
SHA256 10becfdf0f2087db66cad6e1e9243cee25db92a08d8cc0eba0df8d773569963b
MD5 2d3c37290684f597046420d8ce85cad3
BLAKE2b-256 c3b3902399a6e6b8066ba7649fc0b666aca5b0405233d7a8edd4814b16380d8d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyconfs-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e13011ec1c99db838ba437730962a5ee9b79cad2b9b91bf84c3bf7b7d69af92c
MD5 061be49d2442d1e6396a558f8105c028
BLAKE2b-256 08fa0855f478d5e270fdb9a14c62ba018534ca1f9963ceaf5b3b095672572ce5

See more details on using hashes here.

Supported by

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