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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pyramid_mongo_session-0.1.zip.
File metadata
- Download URL: pyramid_mongo_session-0.1.zip
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3d539742a1968f5116cf5e33699dda6335a0fe8acaedd0bbe9fe2fb4d6811b6
|
|
| MD5 |
d6da253627b19ff066113ed96e3bf922
|
|
| BLAKE2b-256 |
897ca40cac0d646cd0b208bdb95163008c7737d30f42d21d091e0762fa8da027
|