Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

UNKNOWN

Project Description

If you have to use .ini files on your projects you probably realized that the lack of a decent hierarchy between settings files just sucks.

configparserplus allows you to use Jinja2 templating language on your .ini files so you don’t need to ctrl-C, ctrl-V your settings in your N config files. Seriously, never do it again. Just. Never.

Installation:

pip install configparserplus

Usage:

Just replace your boring:

from ConfigParser import ConfigParser  # Python 2
from configparser import ConfigParser  # Python 3

config = ConfigParser()
# ...

With a super cool:

from configparserplus import ConfigParserPlus  # Python 2 and Python 3 _o/

config = ConfigParserPlus()
# ...
  • Please note that configparserplus works nicely on both Python 2 and Python 3. Also, it works normally on non-jinja (boring, regular) .ini files - so you can just replace it and refactor bit by bit.
  • Ah! If you just want to generate (not read/parse) .ini files using Jinja2 engine I would recommend using jinja2-standalone-compiler

Contribute

Did you think in some interesting feature, or have you found a bug? Please let me know!

Of course you can also download the project and send me some pull requests.

You can send your suggestions by opening issues.

You can contact me directly as well. Take a look at my contact information at http://filwaitman.github.io/ (email is preferred rather than mobile phone).

Release History

Release History

This version
History Node

0.0.5

History Node

0.0.4

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
configparserplus-0.0.5.tar.gz (3.3 kB) Copy SHA256 Checksum SHA256 Source Sep 6, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting