Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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).

Project details


Release history Release notifications

This version
History Node

0.0.5

History Node

0.0.4

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
configparserplus-0.0.5.tar.gz (3.3 kB) Copy SHA256 hash SHA256 Source None Sep 6, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page