https://github.com/youhengzhou/jsoneng
Custom JSON database crud engine written using python used for community projects
https://github.com/youhengzhou/jsoneng
database database-management dictionary json python
Last synced: about 1 year ago
JSON representation
Custom JSON database crud engine written using python used for community projects
- Host: GitHub
- URL: https://github.com/youhengzhou/jsoneng
- Owner: youhengzhou
- License: mit
- Created: 2022-08-28T22:53:16.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-04T20:41:23.000Z (almost 3 years ago)
- Last Synced: 2025-04-04T07:51:06.556Z (about 1 year ago)
- Topics: database, database-management, dictionary, json, python
- Language: Python
- Homepage: https://pypi.org/project/jsoneng/
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JSON Engine
This is the lite version of the JSON Engine
please refer to https://pypi.org/project/jsoneng/ for the python package
and please refer to https://github.com/youhengzhou/jsoneng for the repo
# Download Package
`py -m pip install jsoneng -U`
## In Your Python Files
`import jsonengine`
# Commands
## Create command:
`eng.create(dictionary, path)`
This will create a JSON dictionary in the path
## Retrieve command:
`eng.retrieve(path)`
This will retrieve the JSON dictionary in the path
## Update command:
`eng.update(dictionary, path)`
This will update a JSON dictionary in the path
Update in this case means replacing the dictionary in its entirety with a new one
## Update (with key value) command:
`eng.update_kv(key, value, path)`
This will update a key value pair in the JSON dictionary in the path
Update in this case means replacing the dictionary with the key value pair
## Patch command:
`eng.patch(dictionary, path)`
This will patch a JSON dictionary in the path
Patch in this case means keeping the JSON dictionary in the path and appending to the dictionary
## Patch (with key value) command:
`eng.patch_kv(dictionary, path)`
This will patch a key value pair in the JSON dictionary in the path
Patch in this case means keeping the dictionary and appending the new key value pair
## Delete command:
`eng.delete(path)`
This will delete the JSON dictionary in the path