Skip to main content

Configuration parser like configparser but for updating config files

Project description

https://travis-ci.org/pyscaffold/configupdater.svg?branch=master https://coveralls.io/repos/pyscaffold/configupdater/badge.png

ConfigUpdater

WORK IN PROGRESS!

The sole purpose of ConfigUpdater is to easily update an INI config file with no changes to the original file except the intended ones. This means comments, the ordering of sections and key/value-pairs as wells as their case are kept as in the original file. Thus ConfigUpdater provides complementary functionality to Python’s ConfigParser which is primarily meant for reading config files and writing new ones.

Differences

The key differences to ConfigParser are:

  • inline comments are treated as part of a key’s value,

  • empty lines in values are not valid,

  • the original case of sections and keys are kept,

  • control over the position of a new section/key

Following features are deliberately not implemented:

  • interpolation of values,

  • propagation of parameters from the default section,

  • conversions of values,

  • passing key/value-pairs with default argument,

  • non-strict mode allowing duplicate sections and keys,

Note

ConfigUpdater is mainly developed for http://pyscaffold.org/.

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

configupdater-0.1a2.tar.gz (28.1 kB view hashes)

Uploaded Source

Built Distribution

configupdater-0.1a2-py2.py3-none-any.whl (17.8 kB view hashes)

Uploaded Python 2 Python 3

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