Skip to main content

EZConfig

EZConfig is a package for parsing configuration files.

Author

nathan.addy@windfalltechnical.com.

Installation Instructions

Install with pip using pip install ezconfig

The latest development version is on github and you can install it using pip install git+https://github.com/maronnax/ezconfig.git

Package Features

EZConfig provides three major features.

  • A Configuration class that wraps the system ConfigParser class. It exposes the same get/has/sections interface but the get method is overloaded to provide many features.

    • automatic date parsing

    • time interval parsing (specify ints, floats, or a float/str specifier like 12.5m, 3h, 2.5d.

    • Filename parsing that returns the absolute path of the config param relative to the file in which it was specified.

    • typecasting to python types

    • specifying a list, so that a list of filenames or dates or any other type supported by the library to be returned as a list of the correct type.

    • Features enabling specifying a lambda function in a configuration file, allowing easy specification for user defined functionality.

  • A ConfigurationSet class that takes a set of filenames and exposes a Configuration API interface that allows for querying the list of Configuration files together using most*significant first rules.

  • A set of functions for searching for configuration files in standard and developerfriendly locations. EZConfig can easily be used to check for repo config files, user home directory config files, and system config files and either use the oneand*only best or as a ConfigurationSet that uses them all together, using values from more-significant configuration directories.

Documentation

Documentation is available at https://ezconfig.readthedocs.io/

This documentation is build out of the ./doc directory and requires sphinx to build. You can view it locally by cd'ing to doc and executing make html. Documentation will be in ./doc/_build/html/index.html.

Download files

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

Source Distribution

ezconfig-1.9.3.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

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

ezconfig-1.9.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file ezconfig-1.9.3.tar.gz.

File metadata

  • Download URL: ezconfig-1.9.3.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for ezconfig-1.9.3.tar.gz
Algorithm Hash digest
SHA256 4f0513ee06ab13ad43b0e3d194452d6ceb86688bb2df79314715aeb239378c9a
MD5 475dbf2272303aacc71bd2fb7fea8384
BLAKE2b-256 1ca174007c9ada39f989916d3f229e759292f5e762f0a29cfdc739ed51fff8d6

See more details on using hashes here.

File details

Details for the file ezconfig-1.9.3-py3-none-any.whl.

File metadata

  • Download URL: ezconfig-1.9.3-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for ezconfig-1.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 caad741a4adc04adc730e0448aa30c80d0c4b207a2e48435bd6a1c175737941a
MD5 c00a6bd3fbfb2fcc853ec52b00102f24
BLAKE2b-256 1cb6671d2b6313db9bf38a721601394161dbff2c07c26e3bbe04b932a36ef970

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.9.3 This release

2 files

1.9.2

2 files

1.9.1

2 files

1.9.0

2 files

1.8.0

2 files

1.7.4

2 files

1.7.0

2 files

1.6.4

2 files

1.6.3

2 files

1.6.2

2 files

1.6.1

2 files

1.6.0

2 files

1.5.0

2 files

1.4.0

2 files

1.3.1

1 file

1.3.0

1 file

1.2.2

1 file

1.2.1

1 file

1.2.0

1 file

1.1.1

1 file

1.0.0

1 file

0.1.0

1 file

Supported by

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