1. Lynn Rees
  2. shove

Source

shove /

Filename Size Date modified Message
reqs
shove
117 B
- misc
2.3 KB
- python >= 3.2 support
1.6 KB
- merge
101 B
- update test
972 B
- merge
169 B
- python >= 3.2 support
2.6 KB
- python >= 3.2 support
146.1 KB
- to 0.6.2
1.1 KB
- update test

Common object storage frontend that supports dictionary-style access, object serialization and compression, and multiple storage and caching backends.

Supported storage backends out of the box are:

  • DBM
  • Filesystem
  • Memory
  • sqlite (disk or memory)

Current supported caching backends are:

  • Filesystem
  • Memory
  • sqlite (disk or memory)

The simplest shove use case...

>>> from shove import Shove
>>> store = Shove()

...which creates an in-memory store and cache.

Use of other backends for storage and caching involves passing an module URI or existing store or cache instance to shove following the form:

>>> from shove import Shove
>>> <storename> = Shove(<store_uri>, <cache_uri>)

Each module-specific URI form is documented in its module. The URI form follows the URI form used by SQLAlchemy:

http://www.sqlalchemy.org/docs/core/engines.html

shove implements the Python dictionary/mapping API:

http://docs.python.org/lib/typesmapping.html