getter simple setting json
Project description
settingsjson.py
simple setting json getter
how to use
pip install settingsjson
- write settings to
.settings.json
{
"DB_PATH": "postgresql://user:secret@host:port/dbname"
}
- read settings from your apps
from sqlalchemy import create_engine
import settingsjson
settings = settingsjson.get()
db = create_engine(settings["DB_PATH"])
echo ".settings.json" >> .gitignore
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
settingsjson-1.0.2.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for settingsjson-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 877c447c0cacfa2ca639b12ec47beccc5a93eb024c1eec3d87bf1ebae73faf6d |
|
MD5 | 8cbf6faa4f1753b6339650712a1ee18a |
|
BLAKE2b-256 | 8334ae83624eba0e99acce89099c0dd32a4699c985f1bcdbf9572093fe87a967 |