Skip to content

Latest commit

 

History

History
40 lines (37 loc) · 698 Bytes

README.md

File metadata and controls

40 lines (37 loc) · 698 Bytes

JSONreg

json reg is a python module to quickly create json keys to store data

Examples

Simple json key

main.py

import jsonreg
jsonreg.create("test.json","Test","This is test data")

test.json

{
    "name": "Test",
    "id": 408557195864,
    "data": "This is test data"
}

Json key in an external folder

main.py

import jsonreg
jsonreg.create("reg/test.json","Test","This is test data")

Note: The reg folder must exist and should look like this

.
├── main.py
└── reg

reg/test.json

{
    "name": "Test",
    "id": 408557195864,
    "data": "This is test data"
}