Skip to main content

A cachable collection with extension abilities

Project description


> A cachable collection with extension abilities

## Install using pip

pip install the_rack

## Usage example

from the_rack import Rack

class Foo: pass

c = Rack()
c['foo'] = lambda get: Foo()

c['foo'] # Foo object

class Bar:
def __init__(self, foo): pass

c['bar'] = lambda get: Bar(get('foo'))

c['bar'] # Bar object

assert c['bar'] == c['bar'] # Caching

The complete usage is explained [in the doc](

This code is licenced under [the MIT license](

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for the_rack, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size the_rack-1.0.1.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page