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)
- Host: GitHub
- URL: https://github.com/74th/settingsjson-py
- Owner: 74th
- License: mit
- Created: 2018-07-06T03:39:14.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-23T00:02:05.000Z (almost 8 years ago)
- Last Synced: 2025-10-10T11:54:20.735Z (8 months ago)
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# settingsjson.py
[](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
```