Metadata-Version: 2.0
Name: MapGitConfig
Version: 1
Summary: Git Config Wrapper
Home-page: https://github.com/zalando/python-gitconfig
Author: Zalando
Author-email: joao.santos@zalando.de
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.4
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Version Control

Git Config
==========

Overview
--------
``gitconfig`` is a small wrapper around the git cli to expose git configuration as a mapping.

Usage
-----

``gitconfig`` is pretty straight forward:

    >>> import gitconfig
    >>> config = gitconfig.GitConfig()
    >>> config['test.test'] = 'test value'
    >>> config['test.test']
    'test value'
    >>> del config['test.test']
    >>> config['test.test']
    Traceback (most recent call last):
        ...
    KeyError

By default values are set locally (keeping the behaviour of ``git config KEY VALUE``), you can also store the values
for the user or the system by providing the right space when initializing ``GitConfig``:

    >>> config = gitconfig.GitConfig('local')
    >>> config = gitconfig.GitConfig('global')
    >>> config = gitconfig.GitConfig('system')

Key are always read from every available configuration, and will respect the same rules as ``git config`` to get the
key values.

