Metadata-Version: 2.4
Name: compendium
Version: 0.1.1.dev57
Summary: Simple layered configuraion tool
Author: Jesse P. Johnson
Author-email: jpj6652@gmail.com
Requires-Python: >=3.6,<4.0
License-File: LICENSE
Requires-Dist: anymod<0.2.0,>=0.1.1-alpha.4
Requires-Dist: dpath<3.0.0,>=2.0.1
Requires-Dist: jsonschema<4.0.0,>=3.2.0
Requires-Dist: ruamel.yaml<0.17.0,>=0.16.10
Requires-Dist: tomlkit<0.7.0,>=0.6.0
Requires-Dist: xmltodict<0.13.0,>=0.12.0
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Build Status](https://travis-ci.org/kuwv/python-compendium.svg?branch=master)](https://travis-ci.org/kuwv/python-compendium)
[![codecov](https://codecov.io/gh/kuwv/python-compendium/branch/master/graph/badge.svg)](https://codecov.io/gh/kuwv/python-compendium)

# Compendium

## Overview

Compendium is a simple configuration management tool. It has the capability to manage configuration files writen in JSON, TOML, XML and YAML. Settings from these configuration files can then be managed easily with the help of dpath.

## Install

`pip install compendium`

## Manage configuration

```
from compendium.settings import Settings

cfg = Settings(application='app', path='afile.toml')
cfg.load()
```

## Search settings

`query = cfg.search('/servers/**/ip')`


## Create settings

`cfg.create('/test', 'test')`

## Update settings

`cfg.update('/owner/name', 'Tom Waits')`

## Delete settings

`cfg.delete('/owner/name')`
