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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ezconfig-1.9.2.tar.gz.
File metadata
- Download URL: ezconfig-1.9.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f3090869174975feb77e65536575e5d1d9fc8766f154863bb6b99c6c2127dd1
|
|
| MD5 |
58007715b889fe77338c024c4cd9a701
|
|
| BLAKE2b-256 |
6fef01ae6e64ccb8d51e9e2b8282d532d9a7b17dffa1c760d3b2f710f3e63ff9
|
File details
Details for the file ezconfig-1.9.2-py3-none-any.whl.
File metadata
- Download URL: ezconfig-1.9.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0940014651f6eaa6ef5fef344433a48a560d9d9f5579c3de51096cc420725f90
|
|
| MD5 |
74b15dbf6d8dd2a193478377fc7e5f74
|
|
| BLAKE2b-256 |
f6543fd2a116ecb9c26e0084cd4151fcdaed179093e6eb6419e1e66a4ca8238e
|