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 hashes)

Uploaded Source

Built Distributions

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

Uploaded Source

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

Uploaded Python 3

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