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

Import

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-0.0.4.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: jsonengine-0.0.4.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 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-0.0.4.tar.gz
Algorithm Hash digest
SHA256 60a81f4d15034ef0dbf5e36ff14a0cf7abd8839415bec5af28d0c30e33c865e9
MD5 4e543ed395e14f7a38ae8b4db5b5215a
BLAKE2b-256 0183ccd4a3b8a73df3549b01ac84f4aa9bdb887564ff0004d5e8339e6ac13e28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jsonengine-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 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-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d2f2cfdfaf3997b2f825da82bb767b0ec7c7a8055201dc4473625ecb50061b37
MD5 e863e8fe7962184e15eff9c17a79f37d
BLAKE2b-256 ce6879e4de8b6656dcc7ac4cd36560ec19212a7a746e44c379b4d9d3c0aa0730

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