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
Release files for settingsjson 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| settingsjson-1.0.2.tar.gz | 2.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| settingsjson-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.7 kB
Release files / settingsjson-1.0.2.tar.gz
| Download URL | settingsjson-1.0.2.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6181a08f489a83e90efec5bfe00add98af3ff8dcdbd95be1dbfe8f659387c255
|
|
BLAKE2b-256 checksum How to use checksums |
399a2dc94c522878c6d541ac854e1671e83be5d12bcbd5cfb292317ec3a134fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / settingsjson-1.0.2-py3-none-any.whl
| Download URL | settingsjson-1.0.2-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
877c447c0cacfa2ca639b12ec47beccc5a93eb024c1eec3d87bf1ebae73faf6d
|
|
BLAKE2b-256 checksum How to use checksums |
8334ae83624eba0e99acce89099c0dd32a4699c985f1bcdbf9572093fe87a967
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |