Skip to main content

A package for a python JSON database CRUD engine

Project description

JSON Engine

please refer to https://pypi.org/project/jsonengine/ for the python package

and please refer to https://github.com/youhengzhou/json-crud-engine for the repo

Download Package

py -m pip install jsonengine -U

In Your Python Files

import jsonengine.main as eng

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.create(path)

This will delete the JSON dictionary in the path

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jsonengine-1.0.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

jsonengine-1.0.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file jsonengine-1.0.2.tar.gz.

File metadata

  • Download URL: jsonengine-1.0.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.5.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for jsonengine-1.0.2.tar.gz
Algorithm Hash digest
SHA256 a13c9c5c1a9a38c32f06d62d8016afa5bfe4def3eb8689bc5b046115ebf33460
MD5 8381cf765bce6b26520c25900cf82d77
BLAKE2b-256 bed42a7a6c7a42a394169789e83aecf724b67bfead5245a22cf37a5310500653

See more details on using hashes here.

File details

Details for the file jsonengine-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: jsonengine-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.5.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for jsonengine-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9f692093eb3094002df1a79cce66765945e1b6422a65ceadb68750991dac78cb
MD5 4b3a9c0f7a2ffbea6d8f3efc861c7151
BLAKE2b-256 ae530539a658227b24656957c22b750cb11aec61cedbbd07c69db371004aad75

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page