https://github.com/helldatabase/hellpy
HellPy is a python connector for HellDB.
https://github.com/helldatabase/hellpy
connector database helldb
Last synced: 5 months ago
JSON representation
HellPy is a python connector for HellDB.
- Host: GitHub
- URL: https://github.com/helldatabase/hellpy
- Owner: helldatabase
- License: mit
- Created: 2020-09-27T08:56:28.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-27T09:08:12.000Z (almost 6 years ago)
- Last Synced: 2025-09-01T22:45:02.438Z (10 months ago)
- Topics: connector, database, helldb
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HellPy
HellPy is a connector for HellDB - a key value store database.
## Installation
Install it using pip.
```shell script
$ pip install hellpy
```
## Documentation
### Initialize
```python
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.
```python
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.
```python
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
```python
store.delete('name', 'age')
# returns [{'bool': True}, {'bool': True}]
store.delete('invalid_key')
# returns [{'bool': False}]
```