Skip to content

zhaozhongyu/PalDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PalDB

==========

PalDB is an embeddable write-once key-value store written in Python.

PalDB's scripts is only 20k and has not dependency.

Code samples

How to write a store

from Paldb.api import PalDB

c=PalDB.createWriter("D:\\paldb.db")
c.put("aaa", "aaaaaaa")
c.put("bbb", "bbbbbbb")
c.put(123, [1,2,3,4,5,])
c.close()

How to read a store

r = PalDB.createReader("D:\\paldb.db")
print(r.get("aaa"))
print(r.get(123))
r.close()

About

一个key-value数据库

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages