SereneRegistry

A simple, non-persistent, key-value registry in memory.


License
Other
Install
pip install SereneRegistry==1.0.0

Documentation

SereneRegistry

A simple, non-persistent, key-value registry in memory.

Build Status

Master: Build Status

Develop: Build Status

Installation

sudo pip install SereneRegistry

Usage

from SereneRegistry import registry

# statically saves the value '1234' into the key 'foo'
# You can now import the registry module from another class and access foo there.
registry.set("foo", 1234)

# returns 1234
registry.get("foo")

# returns None
registry.get("bar")

# returns True 
registry.test("foo")

# returns False
registry.test("bar")

# empties all values from the registry
registry.flush()

# You can access the data directly as well
registry.storage['foo']