============
pyconfreader
============
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.
In addition, there is a simple function to convert dicts to
namedtuples.
Typical usage
=============
Low-level interface
-------------------
High-level interface
--------------------
to_namedtuple
-------------
Change log
==========
0.5 2016-11-03 Eric V. Smith
----------------------------
* No code changes.
* Mark wheel as universal (issue #3).
0.4 2016-11-02 Eric V. Smith
----------------------------
* No code changes.
w
* Always require setuptools (issue #2).
* Remove code to modify the RPM name for bdist_rpm (issue #1).
0.3 2016-08-22 Eric V. Smith
----------------------------
* Fixed fl_validator. Switched to a single namespace, instead of
using globals and locals (This is because at module level, they're
the same). Switch to a dict-based interface, instead of always
using namedtuples. Added to_namedtuple.
0.2 2016-08-21 Eric V. Smith
----------------------------
* Added fl_validator.
0.1 2016-08-20 Eric V. Smith
----------------------------
* Initial release.
pyconfreader
============
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.
In addition, there is a simple function to convert dicts to
namedtuples.
Typical usage
=============
Low-level interface
-------------------
High-level interface
--------------------
to_namedtuple
-------------
Change log
==========
0.5 2016-11-03 Eric V. Smith
----------------------------
* No code changes.
* Mark wheel as universal (issue #3).
0.4 2016-11-02 Eric V. Smith
----------------------------
* No code changes.
w
* Always require setuptools (issue #2).
* Remove code to modify the RPM name for bdist_rpm (issue #1).
0.3 2016-08-22 Eric V. Smith
----------------------------
* Fixed fl_validator. Switched to a single namespace, instead of
using globals and locals (This is because at module level, they're
the same). Switch to a dict-based interface, instead of always
using namedtuples. Added to_namedtuple.
0.2 2016-08-21 Eric V. Smith
----------------------------
* Added fl_validator.
0.1 2016-08-20 Eric V. Smith
----------------------------
* Initial release.
Metadata
Release files for pyconfreader 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyconfreader-0.5.tar.gz | 9.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyconfreader-0.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 14.5 kB
Release files / pyconfreader-0.5.tar.gz
| Download URL | pyconfreader-0.5.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
238e27d66f4119adaf4241843a9f0cad524b964aa3ac22bf03b058be7a7d7164
|
|
BLAKE2b-256 checksum How to use checksums |
6b74bd732462f7fd1b7c17fe6f34ea8977b8df32843912679c5961eb736bf58b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pyconfreader-0.5-py2.py3-none-any.whl
| Download URL | pyconfreader-0.5-py2.py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
10511b4ce6f819d01cf0071afce478214125b9f10f3fc088d53f720da0d2152b
|
|
BLAKE2b-256 checksum How to use checksums |
67150b92f0d4fb245f9bedc921ac9e77041aa88a1dd4defe1ac4baae782f599b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |