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.delete(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.4.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: jsonengine-1.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 a77e4436ebd8862a32f0fe456a57c2bd3a519baa91cd733c87fa057178ad21b1
MD5 17c06f2cf4a2b073968a63a10df370ea
BLAKE2b-256 f31f4bd806bca7d55afc3a14182a4753e4579e35fe2a132247668987025885ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jsonengine-1.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.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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a103a947143ac751900a1f0ce962def940f80d254cc0f3be74dcef8a20aad3ac
MD5 0b076b8da5ead75033ed79c6dabfa383
BLAKE2b-256 ede31ae25838e140222633e9ddc372f6edd6ed3387d508c76ac8ca5dc4f04353

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