Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vokimon/python-configdb

A simple package to hold apart db configuration data
https://github.com/vokimon/python-configdb

Last synced: 1 day ago
JSON representation

A simple package to hold apart db configuration data

Awesome Lists containing this project

README

        

# python-configdb

[![Build Status](https://travis-ci.org/vokimon/python-configdb.png?branch=master)](https://travis-ci.org/vokimon/configdb)

Quick way to store db connection details out of sources.

```python
import configdb
import ooop
ooop.OOOP( configdb.configdb(required="user pwd dbname") )
...
```

By default, attributes are taken from a YAML file at system
defined user configuration location. From the key (profile) 'default'.
If the file is not there, it is created with a yaml file
with null values. You have to fill them.

To change the profile you can use the 'profile' keyword or
`CONFIGDB_PROFILE` environ.

https://github.com/vokimon/python-configdb