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.0.tar.gz
(1.8 kB
view hashes)
Built Distribution
Close
Hashes for settingsjson-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9565a2811195e7ce0eee610ca89fb221f98fb34aba0005358025d075a3c514eb |
|
MD5 | 6fc286530745eb7d612022aa96542c29 |
|
BLAKE2b-256 | 303be9ab1c0b6c7e554c8bdbf7f2bb4c7d17dd14eaf4584d3bb49c2b06182448 |