A simple way to manage your project settings
Project description
Python Simple Settings
======================
[![Code Issues](http://www.quantifiedcode.com/api/v1/project/1b5307f0f1584c3b9c736f976b57e973/badge.svg)](http://www.quantifiedcode.com/app/project/1b5307f0f1584c3b9c736f976b57e973)
[![Build Status](https://travis-ci.org/drgarcia1986/simple-settings.svg)](https://travis-ci.org/drgarcia1986/simple-settings)
[![Coverage Status](https://coveralls.io/repos/drgarcia1986/simple-settings/badge.svg)](https://coveralls.io/r/drgarcia1986/simple-settings)
A simple way to manage your project settings.
With `simple_settings` you just need specify your settings module in `--settings` arg (of command line or enviroment) and all will be available in `simple_settings.settings`.
### Instalation
Use `pip` (simple like this project :smile:).
```bash
$ pip install simple-settings
```
### Usage
#### _project_settings.py_
```python
# -*- coding: utf-8 -*-
SIMPLE_CONF = 'simple'
```
#### _app.py_
```python
# -*- coding: utf-8 -*-
from simple_settings import settings
print settings.SIMPLE_CONF
```
#### _Run_
```bash
$ python app.py --settings=project_settings
simple
```
Check [examples](https://github.com/drgarcia1986/simple-settings/tree/master/examples) for more usage samples.
======================
[![Code Issues](http://www.quantifiedcode.com/api/v1/project/1b5307f0f1584c3b9c736f976b57e973/badge.svg)](http://www.quantifiedcode.com/app/project/1b5307f0f1584c3b9c736f976b57e973)
[![Build Status](https://travis-ci.org/drgarcia1986/simple-settings.svg)](https://travis-ci.org/drgarcia1986/simple-settings)
[![Coverage Status](https://coveralls.io/repos/drgarcia1986/simple-settings/badge.svg)](https://coveralls.io/r/drgarcia1986/simple-settings)
A simple way to manage your project settings.
With `simple_settings` you just need specify your settings module in `--settings` arg (of command line or enviroment) and all will be available in `simple_settings.settings`.
### Instalation
Use `pip` (simple like this project :smile:).
```bash
$ pip install simple-settings
```
### Usage
#### _project_settings.py_
```python
# -*- coding: utf-8 -*-
SIMPLE_CONF = 'simple'
```
#### _app.py_
```python
# -*- coding: utf-8 -*-
from simple_settings import settings
print settings.SIMPLE_CONF
```
#### _Run_
```bash
$ python app.py --settings=project_settings
simple
```
Check [examples](https://github.com/drgarcia1986/simple-settings/tree/master/examples) for more usage samples.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
simple-settings-0.1.0.zip
(4.4 kB
view details)
File details
Details for the file simple-settings-0.1.0.zip
.
File metadata
- Download URL: simple-settings-0.1.0.zip
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2db3a02486820ac2a85b0a0a36009643f24b3d8849a164255ef2eb25d174e14c |
|
MD5 | 425a0110b8546cb7c2df7e7d42648494 |
|
BLAKE2b-256 | a31bad886d4bbf7285960801cd979a808a546f7d006c07c1b24c8a0cd9875a81 |