Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

pyhera is an optimized in-memory database

License

NotificationsYou must be signed in to change notification settings

alimghmi/pyhera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

banner

licenseissues

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 ofmultithreading implementation
  • It's secure.Database is not modifiable from outside
  • Reliable.pyhera automatically takes back-up

Easy Installition

pip install pyhera

Quick start

A very basic instance:

importpyhera# Import pyhera moduleh=pyhera.Pool('mydb')# Create database objecth.set('foo','bar')result=h.get('foo')print(result)# Print 'bar'

To use it in temp mode:

importpyherat=pyhera.Pool('mydb',temp=True)# Create temp database objecth.lmls('foo', [1,2,3])# Won't be saved in database fileresult=h.lret('foo')# Only stored in memoryprint(result)# Print '[1, 2, 3]'

Code samples

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'),0fork,vind.items():sum+=vprint(sum)# 6

Documentation

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


[8]ページ先頭

©2009-2025 Movatter.jp