A library to read config files written in Python.
Project description
Overview
A library for reading config files written in Python. Since Python config files are not sandboxed, you should only read config files that you trust.
By controlling the globals, locals, and builtins that are passed in to tthe config file, you can ‘pre-populate’ the config file with values, and you can control (to a very limited extent) what Python features are available to the config file.
Two interfaces are provided:
A low-level interface for that takes strings.
A high-level interfaces that supports nested configuration files.
Typical usage
Low-level interface
High-level interface
Change log
0.1 2016-08-20 Eric V. Smith
Initial release.
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
File details
Details for the file pyconfreader-0.1.tar.gz
.
File metadata
- Download URL: pyconfreader-0.1.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d6159cb295eaf6554357d76ae7ea5c741f0cb7de7e61b4059535b0502a50d15 |
|
MD5 | 4bd1aa659718053f19bdd341e64efc71 |
|
BLAKE2b-256 | 581f94c17d848ac12900b54af572ab9ef69efedcc58647760810462305b52b33 |