A library that makes consuming a REST API easier and more convenient with Cache
Slumber is a Python library that provides a convenient yet powerful object-oriented interface to ReSTful APIs. It acts as a wrapper around the excellent requests and abstracts away the handling of URLs, serialization, and request processing.
pip install slumbercache
Example Usage with Cache enabled
import slumbercache api = slumbercache.API("http://slumbercache.in/api/v1/", auth=("demo", "demo"), cache=True) ## GET http://slumbercache.in/api/v1/note/ api.note.get()
slumbercache is a fork of slumber with Cache added for better performance