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.

Metadata

Release files for ezconfig 1.9.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ezconfig 1.9.3
File Size Uploaded
ezconfig-1.9.3.tar.gz 13.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ezconfig 1.9.3
File Interpreter ABI Platform
ezconfig-1.9.3-py3-none-any.whl Python 3 none any Details

Total release size: 19.1 kB

Release files / ezconfig-1.9.3.tar.gz

Download URL ezconfig-1.9.3.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4f0513ee06ab13ad43b0e3d194452d6ceb86688bb2df79314715aeb239378c9a
BLAKE2b-256 checksum
How to use checksums
1ca174007c9ada39f989916d3f229e759292f5e762f0a29cfdc739ed51fff8d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release files / ezconfig-1.9.3-py3-none-any.whl

Download URL ezconfig-1.9.3-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
caad741a4adc04adc730e0448aa30c80d0c4b207a2e48435bd6a1c175737941a
BLAKE2b-256 checksum
How to use checksums
1cb6671d2b6313db9bf38a721601394161dbff2c07c26e3bbe04b932a36ef970
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release history Release notifications | RSS feed

This release

1.9.3 This release

2 release files

1.9.2

2 release files

1.9.1

2 release files

1.9.0

2 release files

1.8.0

2 release files

1.7.4

2 release files

1.7.0

2 release files

1.6.4

2 release files

1.6.3

2 release files

1.6.2

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.1

1 release file

1.3.0

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.1

1 release file

1.0.0

1 release file

0.1.0

1 release file

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