This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
=====================
Bottle-Redis
=====================

.. image:: https://travis-ci.org/bottlepy/bottle-redis.svg?branch=master
:target: https://travis-ci.org/bottlepy/bottle-redis

Redis is an open source, advanced key-value store. It is often referred
to as a data structure server since keys can contain strings, hashes,
lists, sets and sorted sets.

This plugin simplifies the use of redis databases in your Bottle applications.
Once installed, all you have to do is to add a ``rdb`` keyword argument
(configurable) to route callbacks that need a database connection.

Installation
===============

Install with one of the following commands::

$ pip install bottle-redis
$ easy_install bottle-redis

or download the latest version from github::

$ git clone git://github.com/bottlepy/bottle-extras.git
$ cd bottle-extras/redis
$ python setup.py install

Usage
===============

Once installed to an application, the plugin passes an open
:class:`redis.Redis` instance to all routes that require a ``rdb`` keyword
argument::

import bottle

app = bottle.Bottle()
plugin = bottle.ext.redis.RedisPlugin(host='localhost')
app.install(plugin)

@app.route('/show/:item')
def show(item, rdb):
row = rdb.get(item)
if row:
return template('showitem', item=item)
return HTTPError(404, "Page not found")

Routes that do not expect a ``rdb`` keyword argument are not affected.

Configuration
=============

The following configuration options exist for the plugin class:

* **host**: Host on which the Redis server is located (default: localhost ).
* **port**: Port on which the Redis server is listening (default: 6379)
* **database** : Select the database to use (default: 0)
* **keyword**: The keyword argument name that triggers the plugin (default: 'rdb').
Release History

Release History

0.2.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
bottle-redis-0.2.3.tar.gz (2.6 kB) Copy SHA256 Checksum SHA256 Source Jun 3, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting