Skip to main content

A connector for HellDB.

Project description

HellPy

HellPy is a connector for HellDB - a key value store database.

Installation

Install it using pip.

$ pip install hellpy

Documentation

Initialize

from hellpy import Store

store = Store()

# To connect to different service.
remote = Store(port=5555, host='222.31.43.43')

PUT

Writes using a PUT call to the HellDB instance store connected to.

store.put('age', 18)
store.put('name', 'Manan')
store.put('posts', [1, 2, 'not found'])
store.put('bitmap', [
    [False, False, True],
    [False, True, False],
    [True, False, False],
])

GET

Reads using a GET call.

store.get('name')
# returns ["Manan"]
store.get('name', 'age')
# returns ["Manan", 18]
store.get('invalid_key')
# returns [None]

DEL

Deletes pair using a DEL call

store.delete('name', 'age')
# returns [{'bool': True}, {'bool': True}]
store.delete('invalid_key')
# returns [{'bool': False}]

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

hellpy-1.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distributions

hellpy-1.1.0-py3.7.egg (12.7 kB view details)

Uploaded Source

hellpy-1.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file hellpy-1.1.0.tar.gz.

File metadata

  • Download URL: hellpy-1.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.8

File hashes

Hashes for hellpy-1.1.0.tar.gz
Algorithm Hash digest
SHA256 55920368c33e3c0f27b069c5be28ed5bade503fe3364caa489f7f32506b42986
MD5 b0aa25242e42ac4e45f83a75db15f032
BLAKE2b-256 316df1767289bc531fdeb9b1c4df493428e45496b199f283a6abc3c9206b1ec1

See more details on using hashes here.

File details

Details for the file hellpy-1.1.0-py3.7.egg.

File metadata

  • Download URL: hellpy-1.1.0-py3.7.egg
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.8

File hashes

Hashes for hellpy-1.1.0-py3.7.egg
Algorithm Hash digest
SHA256 5a283c66ce1a65ce3392be8cf00a0836074be97071f95f94696572762148bcca
MD5 22991434fcdcd016a94e726f34bd9615
BLAKE2b-256 b60ed5a451a108ae26b2fac2a9277ffdf64b49c07f7ca203b1ca7a9c3928af80

See more details on using hashes here.

File details

Details for the file hellpy-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: hellpy-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.8

File hashes

Hashes for hellpy-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52093c28561a940968430db19bd46edfa6979f5883ab7ea5e37c2196fc0651c0
MD5 74ba3e85b13f4a838e8491387fde79b5
BLAKE2b-256 78e9caada082a2c84598c8ad9c51987f1658ce6438c9fe6dfa02739169cebd6b

See more details on using hashes here.

Supported by

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