Skip to main content

pyhera is an optimized in-memory database

Project description

pyhera

Introduction

pyhera is a lightweight in-memory database management module written in python. An optimized NoSQL database which is fast. Data are stored in JSON format (key-value) thus created databases can be analyzed by other applications in different platforms.

Features

  • Ease of use. No complicated syntax
  • Fast because of multithreading implementation
  • It's secure. Database is not modifiable from outside
  • Reliable. pyhera automatically takes back-up
  • Capable of handling data in any scale (As long as the hardware allows)

Easy Installition

pip install pyhera

Code samples

A very basic instance:

import pyhera # Import pyhera module

h = pyhera.Pool('mydb') # Create database object

h.set('foo', 'bar')
result = h.get('foo')

print(result) # Print 'bar'

To compare X and pyhera:

#X (a key-value series database)

r = connection()

r.dset('foo', 'bar1', 1)
r.dset('foo', 'bar2', 2)
r.dset('foo', 'bar3', 3)
d1 = r.dget('foo', 'bar1')
d2 = r.dget('foo', 'bar2')
d3 = r.dget('foo', 'bar3')

print(d1 + d2 + d3) # 6

#pyhera (Above method is also possible in pyhera)

h = pyhera.Pool('mydb')

h.dmls('foo', {
  'bar1': 1,
  'bar2': 2,
  'bar3': 3
})

d, sum = h.dmlg('foo'), 0
for k, v in d.items():
  sum += v

print(sum) # 6

Documentation

Documentation of pyhera project will be released as soon as possible.

Developed by Ali Moghimi

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyhera, version 0.5.3
Filename, size File type Python version Upload date Hashes
Filename, size pyhera-0.5.3-py3-none-any.whl (6.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyhera-0.5.3.tar.gz (5.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page