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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file configupdater-0.1a2.tar.gz.

File metadata

File hashes

Hashes for configupdater-0.1a2.tar.gz
Algorithm Hash digest
SHA256 6a8704e2b66652b5fea1a58a98b5de509b4a7348e21bbcebb89467b3521e054d
MD5 dbb2960bb716b3a1a47ead8b57bafa9d
BLAKE2b-256 49abff216a16f4f9a3e488d1cfa155fc292510a6695f9455624d43422f291389

See more details on using hashes here.

File details

Details for the file configupdater-0.1a2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for configupdater-0.1a2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 325f09462b15af4e64f0454e377a5354cafae72e3a414abfbed67f69f9fc4390
MD5 56d44ce47c9d6e274d06048779d1c5e2
BLAKE2b-256 e51b2d6840416ffa647e0ac8d23782d7f4dc80f803f819f0e7f29bfe258c28b4

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