========================== Python JSON Config Manager
Usage
config.json
.. code-block:: json
{
"database": {
"password": "pass123",
"user": "root",
"name": "myDB",
"tables": {
"comments": "nan",
"likes": "fuck it",
"users": "empty"
}
"keys": [
"name",
"id",
"hash"
],
},
"server": {
"port": 4444,
"host": "127.0.0.1"
}
}
test.py
.. code-block:: python
from Jconfig.config import Jconfig
conf = Jconfig('./config.json', separator='.')
PORT = conf.get('server.port')
print(PORT) # 4444
conf.set('database.tables.likes', 'hi bitch')
conf.set('database.keys', ['md5', 'password', 'another'])
conf.set('database.keys.2', 'hoho')
Release files for Jconfig 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Jconfig-1.0.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Jconfig-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.6 kB
Release files / Jconfig-1.0.tar.gz
| Download URL | Jconfig-1.0.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
189d15dc36a74a65e14d8d6ed9f3ea2b3d4d0f62c76c00be04f62abe903fdb99
|
|
BLAKE2b-256 checksum How to use checksums |
3d14cdc52f319d83202748fcb8aafae95c9c56a188230c5e2f158c6bec009808
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Jconfig-1.0-py3-none-any.whl
| Download URL | Jconfig-1.0-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
311f3f2725ce95d307d423ba73ecb2cf4fae8d068b5b978eaf39fd1b3bd77d77
|
|
BLAKE2b-256 checksum How to use checksums |
aa9ef9df860401c3f11ddaa4ca2dabe56e02420e43929667f2d76731b0118190
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |