confight


Nameconfight JSON
Version 2.0 PyPI version JSON
download
home_pagehttps://github.com/avature/confight
SummaryCommon config loading for Python and the command line
upload_time2023-12-13 17:49:42
maintainer
docs_urlNone
authorAvature
requires_python
licenseMIT
keywords config configuration droplets toml json ini yaml
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            confight
========

[![PyPI](https://img.shields.io/pypi/v/confight.svg)](https://pypi.org/project/confight/)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/confight.svg)
[![Build Status](https://travis-ci.org/Avature/confight.svg?branch=master)](https://travis-ci.org/Avature/confight)

One simple way of parsing configs

- Extensible "*Unix-like*" `conf.d` directory
- Allow for [multiple formats](#formats) (*toml*, *json*, *yaml*, *ini*)
- Full unicode support
- User settings `~/.config` support
- Nice out-of-the-box defaults
- See [examples](#examples)

**confight** focuses on making application configuration easy to load, change,
extend, generate and audit. It does so by allowing to use separated files for
different topics, simplifying changes and new additions, without messing with
already existing defaults or deleting or moving protected files.

This is achieved by using at least one config file (`/etc/app/config.toml`)
and an extra directory (`/etc/app/conf.d`) for extra files.

Those extra files are called *droplets* which consist in is a small config
file that is *"dropped"* into a `conf.d` directory where they will be parsed
and merged nicely into a single final configuration.

This approach is very common in Unix and used in several applications such as:

- cron (`/etc/cron.d`)
- bash profiles (`/etc/profile.d`)
- apt (`/etc/apt/sources.list.d`)
- systemd
- and many others.

The idea is to "*map reduce*" configurations, by parsing all files *in order*,
giving more relevance to the latest appearance and then merge them into a
*single config* that holds all the data:

```
 C₀ -- parse -----|
    C₁ -- parse --|
    C₂ -- parse --|-- merge --> C
       ⋮          |
    Cₙ -- parse --|
```

The name of those files will determine the order in which they're parsed and
the priority their values will have when merging. The last one wins.

1. /etc/app/config.toml
2. /etc/app/conf.d/*
3. ~/.config/app/config.toml
4. ~/.config/app/conf.d/*

Is specially good for externally managed configs or *debian-packaged*
applications, avoiding clashes between installed files and generated configs,
for changes that would stay forever unless manually merged.

## Usage

```python
>>> import confight
>>> confight.load_app('myapp')
{
    "section": {
        "key": "value"
    }
}
```

The previous fragment got all the config files at `/etc/myapp/config.toml` and
within the `/etc/myapp/conf.d` directory and merged them into a single config.

```
# /etc/myapp/config.toml    /etc/myapp/conf.d/00_first.json    /etc/myapp/conf.d/99_second.ini
[section]                   {                                  [section]
key = "base config"           "section": {                     key = value
                                 "key": "not this"
                              }
                            }
```

Default file locations for an application named `myapp` would be at:

- `/etc/myapp/config.toml`
- `/etc/myapp/conf.d/*`

User custom configurations would be read (if any) from:

- `~/.config/myapp/config.toml`
- `~/.config/myapp/conf.d/*`

See the [examples](#examples) section for more information on how to use these
functions.

## Loading

The `load` family of functions take a list of names, files or directories to
easily parse and merge a related set of configurations:

```python
confight.load_app('myapp')
confight.load_user_app('myapp')
confight.load_paths(['/path/to/config', '/path/to/dir'])
confight.load(['/path/to/config.toml', '/path/to/dir/droplet.toml'])
```

Each function offers different parameters to improve the ease of use.

The extension of the configuration file can be given with the `extension`
parameter. For instance, `load_app('myapp', extension='json')` would look for
the `/etc/myapp/config.json` file.

All files in the `conf.d` directory are read by default regardless the
extension. To enforce that only `.extension` files are read, add the
`force_extension` flag.

## Formats

Some formats are _builtin_ in the default installation and some others are
_optional_ and must be declared when installing _confight_.

The list of _builtin_ file formats:

- [toml](https://pypi.org/project/toml/) (_default_)
- json
- ini

The list of _optional_ file formats:

- [yaml](https://pypi.org/project/ruamel.yaml/)
- [hcl](https://github.com/hashicorp/hcl)

In order to install confight with _optional_ formats see
[installation](#installation) with [optional features][].

## Parsing

Given a path to an existing configuration file, it will be loaded in memory
using basic types (`string`, `int`, `float`, `list`, `dict`).

The given file can be in one of the allowed formats. For a complete list see
the `confight.FORMATS` list.

```
confight.parse('/path/to/config', format='toml')
```

When no format is given, it tries to guess by looking at file extensions:

```
confight.parse('/path/to/config.json')  # will gess json format
```

You can see the list of all available extensions at `confight.FORMAT_EXTENSIONS`.

A custom parsing can be provided by passing a `parser` function to the `load`
family of functions, matching the signature:

```python
def parser(path, format=None)
```

The function takes a filesystem `path` and a `format` and  the result should
be a single dictionary with all the loaded data.  When `format` is *None* the
parser is expected to guess it.

## Merging

Given a list of parsed configs in order, merge them into a single one.
For values that appears several times, the last one wins.

Sections and subsections are recursively merged, keeping all keys along the
way and overriding the ones in more than one file with the latest appearance.

A custom merging can be provided by passing a `merger` function to the `load`
family of functions, matching the signature:

```python
def merger(configs)
```

The function takes a list of dictionaries containing the parsed configuration
in ascending order of priority. It should return a single dictionary with all
the configuration.

## Finding configs

The default behaviour is that all files at the `conf.d` directory will be
opened, in lexicographical order, and parsed.

A custom config locator can be provided by passing a `finder` function to the
`load` family of functions, matching the signature:

```python
def finder(path)
```

The function takes a filesystem path (a `conf.d` directory supposedly) and
returns a list of paths to config files in the desired order of parsing and
merging, this is from less to more priority for their values.

## Examples

Load application config from the default locations by using the `load_app`
function which will look by default at the `/etc/myapp/config.toml` and
configuration directory at `/etc/myapp/conf.d`:

```
# /etc/myapp/config.toml    # /etc/myapp/conf.d/production.toml
user = myapp                password = aX80@klj
password = guest
```

```python
>>> confight.load_app('myapp')
{
  "user": "myapp",
  "password": "aX80@klj"
}
```

Allow the user to override the default value when wanting to use a different
configuration. When *None* is given, the default is used:

```python
import argparse
import confight

parser = argparse.ArgumentParser()
parser.add_argument('--config', default=None)
parser.add_argument('--config-dir', default=None)
args = parser.parse_args()

config = confight.load_app('myapp',
                           file_path=args.config,
                           dir_path=args.config_dir)
```

If the application supports user configuration the function `load_user_app`
might come handy as it will first load the regular app config and then the one
defined in the user directory `~/.config/myapp/config.toml` and
`~/.config/myapp/conf.d/*`:

```
# /etc/myapp/config.toml      # ~/.config/myapp/conf.d/mysettings.toml
url = http://teg.avature.net  password = Avature123!
```

```python
>>> confight.load_user_app('myapp')
{
  "url": "http://teg.avature.net",
  "password": "Avature123!"
}
```

To ignore config file extensions, set a *format* and all files will be parsed
using such:

```
# /etc/myapp/config.toml      # /etc/myapp/config.d/extra
name = test                   name = erebus
```

```python
>>> confight.load_app('myapp', format='toml')
{
    "name": "erebus"
}
```

To load configs from a *dev* or *debug* location use the `prefix` option.
This will change the base to calculate default paths.

```python
# Loads from ./configs/config.toml and ./configs/config.d/*
>>> confight.load_app('myapp', prefix='./configs')
```

The `user_prefix` option can be used altogether for user config files:

```python
# Loads from regular places and ./user/config.toml and ./user/config.d/*
>>> confight.load_user_app('myapp', user_prefix='./user')
```

Added in version 1.0

## Command line

*confight* allows to inspect configuration from the command line.

By using the *confight* command it would load the *myapp* configuration from
it's default places and display the output in toml format:

    confight show myapp

This allows to preview the resulting config for an application after all
merges have been resolved. It can come handy when figuring out what the
application has loaded or to debug complex config scenarios.

By passing the `--verbose INFO` interesting data such as all visited files is
listed.

Added in version 0.3

### Command line options

    usage: confight [-h] [--version] [-v {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
                    {show} ...

    One simple way of parsing configs

    positional arguments:
    {show}

    optional arguments:
    -h, --help            show this help message and exit
    --version             show program's version number and exit
    -v {DEBUG,INFO,WARNING,ERROR,CRITICAL}, --verbose {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                            Logging level default: ERROR ['DEBUG', 'INFO',
                            'WARNING', 'ERROR', 'CRITICAL']

## Installation

Install it via pip using:

    pip install confight

Also with *yaml* support using [optional features][]:

    pip install confight[yaml]

Similarly, for *hcl* support:

    pip install confight[hcl]

[optional features]: https://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-extras-optional-features-with-their-own-dependencies

## Development

Run application tests

    tox

Install the application and run tests in development:

    pip install -e .
    python -m pytest

Changelog
=========

* 2.0 (2023-12-13)

  * [dd040ae2] feat(confight): Only support Python v3.8+
  * [266de3d4] chore(confight): Drop support for Python v2

* 1.4.0 (2023-12-12)

  [ Federico Fapitalle ]
  * [3e618f3b] feat: adds support for HCL languaje

  [ Frank Lenormand ]
  * [a9b3b9a2] fix(confight): Stick to older `ruamel.yaml` API
  * [4de6a3ff] fix(setup): Do not freeze `pyhcl` package version

* 1.3.2 (2023-10-25)

  * [241dca89] Update ownership to Platform Operability
  * [96a1def0] fix(setup): Freeze version of `ruamel.yaml`

* 1.3.1 (2020-04-28)

  * [f6183081] Adds tests for ignore load file behaviour
  * [9686602f] Import pkg_resources only when needed
  * [7e7cbe5c] Update README with optional dependencies
  * [a766b09f] Pin hamcrest version to be python3.5 compatible

* 1.3 (2019-09-19)

  * [995d00f6] Adds a default config parameter for the load_app family of functions
  * [a99f3604] Deprecate support for Python 3.4
  * [f73a8931] Add setuptools to dependencies

* 1.2.3 (2019-02-25)

  * [c1f5c919] Show missing file warnings as debug info

* 1.2.2 (2019-02-19)

  * [7344c929] Fixes man generation in debian rules

* 1.2.1 (2019-02-19)

  * [491f8b05] Fixes find path expansion

* 1.2 (2019-02-14)

  * [3c266c8d] Force all loaded files to have the same extension

* 1.1.1 (2019-01-31)

  [ javier.lasheras ]
  * [a1646871] OrderedDict for yaml too

* 1.1 (2019-01-29)

  * [4a5920af] Adds pypi version badge to README
  * [59c47a5e] Drops support for Python 3.3 and Python 3.4
  * [dfa9c436] Adds support for Python 3.7
  * [6979074d] Fix manpage generation
  * [8f6b58f5] Create a parser with ExtendedInterpolation
  * [7d74246d] Avoid DeprecationWarnings
  * [633b1571] Ordered dicts everywhere

* 1.0 (2018-06-26)

  * [736a6493] Adds prefix and user_prefix options
  * [023158e5] Adds --prefix and --user-prefix cli options
  * [f395fc44] Adapt tests to run in python 3.3 and 3.4
  * [a144dab1] Update package metadata

* 0.3 (2018-06-14)

  * [a7b46ef1] Adds travis config file
  * [5f625da9] Add tox-travis integration
  * [1b678173] Adds confight command line tool
  * [691e042a] Adds cli unit tests

* 0.2.2 (2018-04-13)

  * [3322a7a4] Allow custom file extensions when format is defined

* 0.2.1 (2018-04-09)

  * [93cd8a1c] Update README

* 0.2 (2018-04-04)

  * [63d55fa8] Add Yaml support

* 0.1.1 (2018-04-03)

  * [80087037] Allows to pass extra paths in load functions

* 0.1.0 (2018-03-27)

  * [23927421] Reorganize pretty functions and find behaviour
  * [fade6dd0] Adds debian packaging
  * [c818857a] Update README

* 0.0.1 (2018-03-27)

  * Initial release.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/avature/confight",
    "name": "confight",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "config configuration droplets toml json ini yaml",
    "author": "Avature",
    "author_email": "platform@avature.net",
    "download_url": "https://files.pythonhosted.org/packages/18/8b/a5f15fb2f21bb6bb399b0585eb94a6db4d9e50695a5717610fb4406d4db7/confight-2.0.tar.gz",
    "platform": null,
    "description": "confight\n========\n\n[![PyPI](https://img.shields.io/pypi/v/confight.svg)](https://pypi.org/project/confight/)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/confight.svg)\n[![Build Status](https://travis-ci.org/Avature/confight.svg?branch=master)](https://travis-ci.org/Avature/confight)\n\nOne simple way of parsing configs\n\n- Extensible \"*Unix-like*\" `conf.d` directory\n- Allow for [multiple formats](#formats) (*toml*, *json*, *yaml*, *ini*)\n- Full unicode support\n- User settings `~/.config` support\n- Nice out-of-the-box defaults\n- See [examples](#examples)\n\n**confight** focuses on making application configuration easy to load, change,\nextend, generate and audit. It does so by allowing to use separated files for\ndifferent topics, simplifying changes and new additions, without messing with\nalready existing defaults or deleting or moving protected files.\n\nThis is achieved by using at least one config file (`/etc/app/config.toml`)\nand an extra directory (`/etc/app/conf.d`) for extra files.\n\nThose extra files are called *droplets* which consist in is a small config\nfile that is *\"dropped\"* into a `conf.d` directory where they will be parsed\nand merged nicely into a single final configuration.\n\nThis approach is very common in Unix and used in several applications such as:\n\n- cron (`/etc/cron.d`)\n- bash profiles (`/etc/profile.d`)\n- apt (`/etc/apt/sources.list.d`)\n- systemd\n- and many others.\n\nThe idea is to \"*map reduce*\" configurations, by parsing all files *in order*,\ngiving more relevance to the latest appearance and then merge them into a\n*single config* that holds all the data:\n\n```\n C\u2080 -- parse -----|\n    C\u2081 -- parse --|\n    C\u2082 -- parse --|-- merge --> C\n       \u22ee          |\n    C\u2099 -- parse --|\n```\n\nThe name of those files will determine the order in which they're parsed and\nthe priority their values will have when merging. The last one wins.\n\n1. /etc/app/config.toml\n2. /etc/app/conf.d/*\n3. ~/.config/app/config.toml\n4. ~/.config/app/conf.d/*\n\nIs specially good for externally managed configs or *debian-packaged*\napplications, avoiding clashes between installed files and generated configs,\nfor changes that would stay forever unless manually merged.\n\n## Usage\n\n```python\n>>> import confight\n>>> confight.load_app('myapp')\n{\n    \"section\": {\n        \"key\": \"value\"\n    }\n}\n```\n\nThe previous fragment got all the config files at `/etc/myapp/config.toml` and\nwithin the `/etc/myapp/conf.d` directory and merged them into a single config.\n\n```\n# /etc/myapp/config.toml    /etc/myapp/conf.d/00_first.json    /etc/myapp/conf.d/99_second.ini\n[section]                   {                                  [section]\nkey = \"base config\"           \"section\": {                     key = value\n                                 \"key\": \"not this\"\n                              }\n                            }\n```\n\nDefault file locations for an application named `myapp` would be at:\n\n- `/etc/myapp/config.toml`\n- `/etc/myapp/conf.d/*`\n\nUser custom configurations would be read (if any) from:\n\n- `~/.config/myapp/config.toml`\n- `~/.config/myapp/conf.d/*`\n\nSee the [examples](#examples) section for more information on how to use these\nfunctions.\n\n## Loading\n\nThe `load` family of functions take a list of names, files or directories to\neasily parse and merge a related set of configurations:\n\n```python\nconfight.load_app('myapp')\nconfight.load_user_app('myapp')\nconfight.load_paths(['/path/to/config', '/path/to/dir'])\nconfight.load(['/path/to/config.toml', '/path/to/dir/droplet.toml'])\n```\n\nEach function offers different parameters to improve the ease of use.\n\nThe extension of the configuration file can be given with the `extension`\nparameter. For instance, `load_app('myapp', extension='json')` would look for\nthe `/etc/myapp/config.json` file.\n\nAll files in the `conf.d` directory are read by default regardless the\nextension. To enforce that only `.extension` files are read, add the\n`force_extension` flag.\n\n## Formats\n\nSome formats are _builtin_ in the default installation and some others are\n_optional_ and must be declared when installing _confight_.\n\nThe list of _builtin_ file formats:\n\n- [toml](https://pypi.org/project/toml/) (_default_)\n- json\n- ini\n\nThe list of _optional_ file formats:\n\n- [yaml](https://pypi.org/project/ruamel.yaml/)\n- [hcl](https://github.com/hashicorp/hcl)\n\nIn order to install confight with _optional_ formats see\n[installation](#installation) with [optional features][].\n\n## Parsing\n\nGiven a path to an existing configuration file, it will be loaded in memory\nusing basic types (`string`, `int`, `float`, `list`, `dict`).\n\nThe given file can be in one of the allowed formats. For a complete list see\nthe `confight.FORMATS` list.\n\n```\nconfight.parse('/path/to/config', format='toml')\n```\n\nWhen no format is given, it tries to guess by looking at file extensions:\n\n```\nconfight.parse('/path/to/config.json')  # will gess json format\n```\n\nYou can see the list of all available extensions at `confight.FORMAT_EXTENSIONS`.\n\nA custom parsing can be provided by passing a `parser` function to the `load`\nfamily of functions, matching the signature:\n\n```python\ndef parser(path, format=None)\n```\n\nThe function takes a filesystem `path` and a `format` and  the result should\nbe a single dictionary with all the loaded data.  When `format` is *None* the\nparser is expected to guess it.\n\n## Merging\n\nGiven a list of parsed configs in order, merge them into a single one.\nFor values that appears several times, the last one wins.\n\nSections and subsections are recursively merged, keeping all keys along the\nway and overriding the ones in more than one file with the latest appearance.\n\nA custom merging can be provided by passing a `merger` function to the `load`\nfamily of functions, matching the signature:\n\n```python\ndef merger(configs)\n```\n\nThe function takes a list of dictionaries containing the parsed configuration\nin ascending order of priority. It should return a single dictionary with all\nthe configuration.\n\n## Finding configs\n\nThe default behaviour is that all files at the `conf.d` directory will be\nopened, in lexicographical order, and parsed.\n\nA custom config locator can be provided by passing a `finder` function to the\n`load` family of functions, matching the signature:\n\n```python\ndef finder(path)\n```\n\nThe function takes a filesystem path (a `conf.d` directory supposedly) and\nreturns a list of paths to config files in the desired order of parsing and\nmerging, this is from less to more priority for their values.\n\n## Examples\n\nLoad application config from the default locations by using the `load_app`\nfunction which will look by default at the `/etc/myapp/config.toml` and\nconfiguration directory at `/etc/myapp/conf.d`:\n\n```\n# /etc/myapp/config.toml    # /etc/myapp/conf.d/production.toml\nuser = myapp                password = aX80@klj\npassword = guest\n```\n\n```python\n>>> confight.load_app('myapp')\n{\n  \"user\": \"myapp\",\n  \"password\": \"aX80@klj\"\n}\n```\n\nAllow the user to override the default value when wanting to use a different\nconfiguration. When *None* is given, the default is used:\n\n```python\nimport argparse\nimport confight\n\nparser = argparse.ArgumentParser()\nparser.add_argument('--config', default=None)\nparser.add_argument('--config-dir', default=None)\nargs = parser.parse_args()\n\nconfig = confight.load_app('myapp',\n                           file_path=args.config,\n                           dir_path=args.config_dir)\n```\n\nIf the application supports user configuration the function `load_user_app`\nmight come handy as it will first load the regular app config and then the one\ndefined in the user directory `~/.config/myapp/config.toml` and\n`~/.config/myapp/conf.d/*`:\n\n```\n# /etc/myapp/config.toml      # ~/.config/myapp/conf.d/mysettings.toml\nurl = http://teg.avature.net  password = Avature123!\n```\n\n```python\n>>> confight.load_user_app('myapp')\n{\n  \"url\": \"http://teg.avature.net\",\n  \"password\": \"Avature123!\"\n}\n```\n\nTo ignore config file extensions, set a *format* and all files will be parsed\nusing such:\n\n```\n# /etc/myapp/config.toml      # /etc/myapp/config.d/extra\nname = test                   name = erebus\n```\n\n```python\n>>> confight.load_app('myapp', format='toml')\n{\n    \"name\": \"erebus\"\n}\n```\n\nTo load configs from a *dev* or *debug* location use the `prefix` option.\nThis will change the base to calculate default paths.\n\n```python\n# Loads from ./configs/config.toml and ./configs/config.d/*\n>>> confight.load_app('myapp', prefix='./configs')\n```\n\nThe `user_prefix` option can be used altogether for user config files:\n\n```python\n# Loads from regular places and ./user/config.toml and ./user/config.d/*\n>>> confight.load_user_app('myapp', user_prefix='./user')\n```\n\nAdded in version 1.0\n\n## Command line\n\n*confight* allows to inspect configuration from the command line.\n\nBy using the *confight* command it would load the *myapp* configuration from\nit's default places and display the output in toml format:\n\n    confight show myapp\n\nThis allows to preview the resulting config for an application after all\nmerges have been resolved. It can come handy when figuring out what the\napplication has loaded or to debug complex config scenarios.\n\nBy passing the `--verbose INFO` interesting data such as all visited files is\nlisted.\n\nAdded in version 0.3\n\n### Command line options\n\n    usage: confight [-h] [--version] [-v {DEBUG,INFO,WARNING,ERROR,CRITICAL}]\n                    {show} ...\n\n    One simple way of parsing configs\n\n    positional arguments:\n    {show}\n\n    optional arguments:\n    -h, --help            show this help message and exit\n    --version             show program's version number and exit\n    -v {DEBUG,INFO,WARNING,ERROR,CRITICAL}, --verbose {DEBUG,INFO,WARNING,ERROR,CRITICAL}\n                            Logging level default: ERROR ['DEBUG', 'INFO',\n                            'WARNING', 'ERROR', 'CRITICAL']\n\n## Installation\n\nInstall it via pip using:\n\n    pip install confight\n\nAlso with *yaml* support using [optional features][]:\n\n    pip install confight[yaml]\n\nSimilarly, for *hcl* support:\n\n    pip install confight[hcl]\n\n[optional features]: https://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-extras-optional-features-with-their-own-dependencies\n\n## Development\n\nRun application tests\n\n    tox\n\nInstall the application and run tests in development:\n\n    pip install -e .\n    python -m pytest\n\nChangelog\n=========\n\n* 2.0 (2023-12-13)\n\n  * [dd040ae2] feat(confight): Only support Python v3.8+\n  * [266de3d4] chore(confight): Drop support for Python v2\n\n* 1.4.0 (2023-12-12)\n\n  [ Federico Fapitalle ]\n  * [3e618f3b] feat: adds support for HCL languaje\n\n  [ Frank Lenormand ]\n  * [a9b3b9a2] fix(confight): Stick to older `ruamel.yaml` API\n  * [4de6a3ff] fix(setup): Do not freeze `pyhcl` package version\n\n* 1.3.2 (2023-10-25)\n\n  * [241dca89] Update ownership to Platform Operability\n  * [96a1def0] fix(setup): Freeze version of `ruamel.yaml`\n\n* 1.3.1 (2020-04-28)\n\n  * [f6183081] Adds tests for ignore load file behaviour\n  * [9686602f] Import pkg_resources only when needed\n  * [7e7cbe5c] Update README with optional dependencies\n  * [a766b09f] Pin hamcrest version to be python3.5 compatible\n\n* 1.3 (2019-09-19)\n\n  * [995d00f6] Adds a default config parameter for the load_app family of functions\n  * [a99f3604] Deprecate support for Python 3.4\n  * [f73a8931] Add setuptools to dependencies\n\n* 1.2.3 (2019-02-25)\n\n  * [c1f5c919] Show missing file warnings as debug info\n\n* 1.2.2 (2019-02-19)\n\n  * [7344c929] Fixes man generation in debian rules\n\n* 1.2.1 (2019-02-19)\n\n  * [491f8b05] Fixes find path expansion\n\n* 1.2 (2019-02-14)\n\n  * [3c266c8d] Force all loaded files to have the same extension\n\n* 1.1.1 (2019-01-31)\n\n  [ javier.lasheras ]\n  * [a1646871] OrderedDict for yaml too\n\n* 1.1 (2019-01-29)\n\n  * [4a5920af] Adds pypi version badge to README\n  * [59c47a5e] Drops support for Python 3.3 and Python 3.4\n  * [dfa9c436] Adds support for Python 3.7\n  * [6979074d] Fix manpage generation\n  * [8f6b58f5] Create a parser with ExtendedInterpolation\n  * [7d74246d] Avoid DeprecationWarnings\n  * [633b1571] Ordered dicts everywhere\n\n* 1.0 (2018-06-26)\n\n  * [736a6493] Adds prefix and user_prefix options\n  * [023158e5] Adds --prefix and --user-prefix cli options\n  * [f395fc44] Adapt tests to run in python 3.3 and 3.4\n  * [a144dab1] Update package metadata\n\n* 0.3 (2018-06-14)\n\n  * [a7b46ef1] Adds travis config file\n  * [5f625da9] Add tox-travis integration\n  * [1b678173] Adds confight command line tool\n  * [691e042a] Adds cli unit tests\n\n* 0.2.2 (2018-04-13)\n\n  * [3322a7a4] Allow custom file extensions when format is defined\n\n* 0.2.1 (2018-04-09)\n\n  * [93cd8a1c] Update README\n\n* 0.2 (2018-04-04)\n\n  * [63d55fa8] Add Yaml support\n\n* 0.1.1 (2018-04-03)\n\n  * [80087037] Allows to pass extra paths in load functions\n\n* 0.1.0 (2018-03-27)\n\n  * [23927421] Reorganize pretty functions and find behaviour\n  * [fade6dd0] Adds debian packaging\n  * [c818857a] Update README\n\n* 0.0.1 (2018-03-27)\n\n  * Initial release.\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Common config loading for Python and the command line",
    "version": "2.0",
    "project_urls": {
        "Homepage": "https://github.com/avature/confight"
    },
    "split_keywords": [
        "config",
        "configuration",
        "droplets",
        "toml",
        "json",
        "ini",
        "yaml"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e4b2c2e0037bf8040a97216ad05695712f275aeb635f34c2df1123e87cac66b8",
                "md5": "f9c03519a7449ba5833e82e0b13d0823",
                "sha256": "709c5857826747266e5ab93a7129b70e4af4deeacfc0fffe4878ecb23cd9015c"
            },
            "downloads": -1,
            "filename": "confight-2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f9c03519a7449ba5833e82e0b13d0823",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 10507,
            "upload_time": "2023-12-13T17:49:40",
            "upload_time_iso_8601": "2023-12-13T17:49:40.175631Z",
            "url": "https://files.pythonhosted.org/packages/e4/b2/c2e0037bf8040a97216ad05695712f275aeb635f34c2df1123e87cac66b8/confight-2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "188ba5f15fb2f21bb6bb399b0585eb94a6db4d9e50695a5717610fb4406d4db7",
                "md5": "3711e38a067880a045e08aec1d85c3db",
                "sha256": "8a87687b19e1f6d1b87609230d7094cd64450e14652771d181a361c46da5c0f6"
            },
            "downloads": -1,
            "filename": "confight-2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "3711e38a067880a045e08aec1d85c3db",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 10698,
            "upload_time": "2023-12-13T17:49:42",
            "upload_time_iso_8601": "2023-12-13T17:49:42.188987Z",
            "url": "https://files.pythonhosted.org/packages/18/8b/a5f15fb2f21bb6bb399b0585eb94a6db4d9e50695a5717610fb4406d4db7/confight-2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-13 17:49:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "avature",
    "github_project": "confight",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "tox": true,
    "lcname": "confight"
}
        
Elapsed time: 0.15677s