Skip to main content

CrankDB python database driver.

Project description

Cranky (CrankDB Python Driver)

Cranky is the database driver for CrankDB for python applications.

Pre requisites

Setup CrankDB and get it started.

Documentation

from cranky import Cranky

# setup a new connection

conn = Cranky(host="localhost", port="9876") # default values

# Cranky follows almost similar API methods as Crank CLI.

# You can set any type of JSON seriable value at any key.
conn.set(key, value)

# Get a key
conn.get(key)
# Returns a DataPacket object with `dataType` attribute and corresponding value field `jsonVal`, `stringVal`, etc.


# Find multiple JSON documents using Find
conn.find({key: value}) #Applies a search and returns every key having JSON obj with key=value.
# Returns a list of DataPackets with dataType and jsonVal attributes.

conn.find({}) # returns all JSON (dict) type key values.

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

cranky-0.1.0b2.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cranky-0.1.0b2-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file cranky-0.1.0b2.tar.gz.

File metadata

  • Download URL: cranky-0.1.0b2.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.2

File hashes

Hashes for cranky-0.1.0b2.tar.gz
Algorithm Hash digest
SHA256 392a23cbe48f13f1725d1c8c13a73e65e793004d8b1227bcbd2ead8fd339d2a7
MD5 5205e02a556e7c6fc42e5d83e44a979a
BLAKE2b-256 f1b421ced944e00ef86887fa6815dc5fd497700196d39bca12ef0ffe40a568e9

See more details on using hashes here.

File details

Details for the file cranky-0.1.0b2-py3-none-any.whl.

File metadata

  • Download URL: cranky-0.1.0b2-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.2

File hashes

Hashes for cranky-0.1.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 17f912278bea8c065cb1e31d8b02f77b1765a95e4e49a43cf83fd9a95bd084c5
MD5 383a5a86a9357d05f6e97814d6fdb14d
BLAKE2b-256 163537a0f192b1c3c21da32b759a2a4b5e3d0dcb8d33f9efd565ceb2c78a31fc

See more details on using hashes here.

Supported by

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