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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file settingsjson-1.0.2.tar.gz.
File metadata
- Download URL: settingsjson-1.0.2.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6181a08f489a83e90efec5bfe00add98af3ff8dcdbd95be1dbfe8f659387c255
|
|
| MD5 |
e9607659628512b81c4442d5c613a359
|
|
| BLAKE2b-256 |
399a2dc94c522878c6d541ac854e1671e83be5d12bcbd5cfb292317ec3a134fd
|
File details
Details for the file settingsjson-1.0.2-py3-none-any.whl.
File metadata
- Download URL: settingsjson-1.0.2-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
877c447c0cacfa2ca639b12ec47beccc5a93eb024c1eec3d87bf1ebae73faf6d
|
|
| MD5 |
8cbf6faa4f1753b6339650712a1ee18a
|
|
| BLAKE2b-256 |
8334ae83624eba0e99acce89099c0dd32a4699c985f1bcdbf9572093fe87a967
|