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:seacret@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.1.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for settingsjson-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ae14f28c8dff80e7bb6ba3ddff2be74a169ea81790541e654be1d794d20f121 |
|
MD5 | bbb372817f76a75b3583c75f7fb0bfc4 |
|
BLAKE2b-256 | d3445b8404ed82ea4f68c9d41f98f2dbc88d9d35321df64d8d5ba33a18ab011c |