Skip to content

pombredanne/serene-registry

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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']

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 82.2%
  • Shell 17.8%