Skip to main content

MongoDB-based session factory for Pyramid framework

Project description

You can try https://pypi.python.org/pypi/mongodb-beaker2 which released in 2012… I couldn’t, I gave up.

# encoding: utf-8

from pyramid.config import Configurator
from pyramid_mongo_session import MongoSessionFactory
...

def main(global_config, **settings):
    config = Configurator(settings=settings)

    session_factory = MongoSessionFactory(
        collection=MongoClient('localhost', 27017).your_db.session)
    config.set_session_factory(session_factory)
    ...
    return config.make_wsgi_app()

Documentation: https://github.com/tark-hidden/pyramid_mongo_session

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

pyramid_mongo_session-0.1.zip (8.2 kB view details)

Uploaded Source

File details

Details for the file pyramid_mongo_session-0.1.zip.

File metadata

File hashes

Hashes for pyramid_mongo_session-0.1.zip
Algorithm Hash digest
SHA256 f3d539742a1968f5116cf5e33699dda6335a0fe8acaedd0bbe9fe2fb4d6811b6
MD5 d6da253627b19ff066113ed96e3bf922
BLAKE2b-256 897ca40cac0d646cd0b208bdb95163008c7737d30f42d21d091e0762fa8da027

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page