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

https://github.com/74th/settingsjson-py

simple setting json getter (for python)
https://github.com/74th/settingsjson-py

Last synced: 5 months ago
JSON representation

simple setting json getter (for python)

Awesome Lists containing this project

README

          

# settingsjson.py

[![PyPI](https://img.shields.io/pypi/v/settingsjson.svg)](https://pypi.org/project/settingsjson/)

simple setting json getter

## how to use

```sh
pip install settingsjson
```

* write settings to `.settings.json`

```JSON
{
"DB_PATH": "postgresql://user:secret@host:port/dbname"
}
```

* read settings from your apps

```py
from sqlalchemy import create_engine
import settingsjson

settings = settingsjson.get()
db = create_engine(settings["DB_PATH"])
```

```
echo ".settings.json" >> .gitignore
```