Skip to main content

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

pyconfreader-0.2.tar.gz (8.2 kB view details)

Uploaded Source

File details

Details for the file pyconfreader-0.2.tar.gz.

File metadata

  • Download URL: pyconfreader-0.2.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyconfreader-0.2.tar.gz
Algorithm Hash digest
SHA256 607319639f5bb613bff67b86795b3c17c494d65171b88465b997611ec1dce416
MD5 d4600639ca78a7becbaa26485822d1a1
BLAKE2b-256 0b87f7a4f2a7cd77fb1957492b0b4e6063016a4d81d6142269fe18761cff57ba

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page