skip to navigation
skip to content

Not Logged In

keywrapper 0.1.0

Extremely simple key-value storage wrapper


I usually use Redis for small projects with a dynamic storage component. Most of the times I just need a very simple key-value storage and Redis does a terrific job with that. However not all the applications need a high performance storage but just being very easy to start using them.

The idea of this wrapper is to start using JSON based storage at the beginning and in the future, if necessary, move the storate of an application to Redis or any other supported driver without changing a single line of code.

Basic usage

JSON store:

import keywrapper

store = keywrapper.new_store(‘json’)

store.set_value(‘foo’, ‘bar’, ‘42’)

store.get_value(‘foo’, ‘bar’)

Redis store:

import keywrapper

store = keywrapper.new_store(‘redis’)

store.set_value(‘foo’, ‘bar’, ‘42’)

store.get_value(‘foo’, ‘bar’)

Migrate from JSON store to Redis store:

import keywrapper

json_store = keywrapper.new_store(‘json’)

redis_store = keywrapper.new_store(‘redis’)


Current status

These are the current implemented features:

  • JSON and Redis drivers
  • Hash style data type (key, attribute, value)
  • set_value and get_value functions
  • dump function implemented only in JSON driver
  • restore function implemented in both JSON and Redis drivers
File Type Py Version Uploaded on Size
keywrapper-0.1.0.tar.gz (md5) Source 2014-04-18 1KB
  • Downloads (All Versions):
  • 5 downloads in the last day
  • 21 downloads in the last week
  • 102 downloads in the last month