Skip to content
forked from patx/pickledb

gherkindb is basically pickledb, it just tastes different.

Notifications You must be signed in to change notification settings

bosley/gherkindb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gherkinDB

gherkinDB is lightweight, fast, and simple database based pickleDB

While pickleDB went the way of using simplejson for speed, and is an awesome baby database for storing data, it lacked the ability to store complex data. Thus, gherkinDB was born. Similar to pickleDB, but closer to its original roots; gherkinDB uses the dill package to load and save data to file, and a serializer was added into the base functionality.

import gherkindb

db = gherkindb.load('test1.db', True)

db.set('key', 'value')

# Outputs: value
print(db.get('key'))

# Added serialization functionality
def my_func():
    print("Much better!")

db.sset('func', my_func)

# Outputs: Much better!
db.sget('func')()

# Also :

# Outputs: Much better!
reborn = db.sget('func')

reborn()

About

gherkindb is basically pickledb, it just tastes different.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%