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

a walrus integration for pyramid

To install:

$ pip install pyramid_walrus

In your configuration:

[app:main]

...

pyramid.includes =
    pyramid_walrus

In your views:

def my_view(request):
    db = request.walrus_db
    db.incr('my_counter')

Backend-specific configurations

walrus can be configured to use several redis-like backends.

Redis (default)

$ pip install redis
pyramid_walrus.backend = redis
pyramid_walrus.backend.redis.url = redis://@localhost:6379/0
pyramid_walrus.backend.redis.max_connections = 10

Rlite

$ pip install hirlite
pyramid_walrus.backend = rlite
pyramid_walrus.backend.rlite.filename = :memory:
pyramid_walrus.backend.rlite.encoding = utf-8

Vedis

$ pip install vedis
pyramid_walrus.backend = vedis
pyramid_walrus.backend.vedis.filename = :memory:

LedisDB

$ pip install ledis
pyramid_walrus.backend = ledis
pyramid_walrus.backend.ledis.url = ledis://@localhost:6380/0
pyramid_walrus.backend.ledis.max_connections = 10

Custom

pyramid_walrus.backend = myapp.get_walrus_backend_from_settings

and define your custom factory function:

# myapp.py

def get_walrus_backend_from_settings(settings):
    def get_database_for_request(request):
        ...
        return db
    return get_database_for_request

Changes

0.1.2 (2015-06-06)

  • Fix COPYING.

0.1.1 (2015-06-06)

  • Change license to GNU Lesser General Public License v3 or later (LGPLv3+)
  • Fix packaging.

0.1.0 (2015-06-05)

  • Initial release.
Release History

Release History

0.1.2

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.1.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.1.0

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
pyramid_walrus-0.1.2.tar.gz (19.9 kB) Copy SHA256 Checksum SHA256 Source Jun 5, 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