This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

This is a session backend for Django that stores sessions in a Tokyo Cabinet database, which communicates via Tokyo Tyrant using the PyTyrant library. Tokyo Cabinet is a key-value store similar to BDB.

Project Description

This is a session backend for Django that stores sessions in a Tokyo Cabinet database, which communicates via Tokyo Tyrant using the PyTyrant library. Tokyo Cabinet is a key-value store similar to BDB.

The advantage to using this over other solutions is that your data is persistent unlike memcached, and Tokyo Cabinet is designed to store key-value data like this, so performance is much closer to that of memcached than with a database.

Installing django-tokyo-sessions

  1. Either download the tarball and run python setup.py install, or simply use easy install or pip like so easy_install django-tokyo-sessions.

  2. Set tokyo_sessions.tokyo as your session engine, like so:

    SESSION_ENGINE = 'tokyo_sessions.tokyo'
    
  3. Add settings describing where to connect to the Tokyo Tyrant database:

    TT_HOST = '127.0.0.1'
    TT_PORT = 1978
    

That’s it. Hopefully this backend gives you all the better performance while still not sacrificing persistence.

Release History

Release History

This version
History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-tokyo-sessions-0.1.0.tar.gz (4.2 kB) Copy SHA256 Checksum SHA256 Source Feb 22, 2009

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS 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