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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyhera-0.5.3.tar.gz.
File metadata
- Download URL: pyhera-0.5.3.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5188c67952ceeb0eef6b890126c22725591257a9fca9da3e1f8ea6330c33bfd8
|
|
| MD5 |
5d3c9cefe6e58b8dd9735e02fb460f02
|
|
| BLAKE2b-256 |
419938cdf66eaf4b12128fc97171d6fc144c3a47a89de9ac9755b80467b3ee46
|
File details
Details for the file pyhera-0.5.3-py3-none-any.whl.
File metadata
- Download URL: pyhera-0.5.3-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14ba03898ba849aa006bafa2ae4342063a40238435adc0204981a6eb676f64fe
|
|
| MD5 |
5c4d255a2be146db805a32905eaff7c8
|
|
| BLAKE2b-256 |
969ff8ad69991d1c15475c3695ecf5c4e1b673ea03cd0874ee84c44fda3fa207
|