This release is a pre-release and may not be stable for production use.
pyramid_redis_sessions gives you Redis-backed sessions for the Pyramid Web Application Development Framework.
The package implements the Pyramid ISession interface (http://docs.pylonsproject.org/projects/pyramid/en/latest/api/interfaces.html#pyramid.interfaces.ISession), and that portion of the API will not change. However, any other implementation-specific methods on the RedisSession object are subject to change.
Patches and feature requests are welcome.
Usage:
$ easy_install pyramid_redis_sessions
In your Pyramid config file (typically development.ini or production.ini), configure the settings (see below)
In your Pyramid application main function, use either:
pyramid.include(‘pyramid_redis_sessions’)
Or:
from pyramid_redis_sessions import session_factory_from_settings
session_factory = session_factory_from_settings(settings)
config.set_session_factory(session_factory)
You can configure the following settings in your ini file:
redis.sessions.secret = your_secret
redis.sessions.timeout = 1200
redis.sessions.period = 300
redis.sessions.cookie_name = session
redis.sessions.cookie_max_age =
redis.sessions.cookie_path = /
redis.sessions.cookie_domain =
redis.sessions.cookie_secure = False
redis.sessions.cookie_httponly = False
redis.sessions.cookie_on_exception = True
redis.sessions.host = localhost
redis.sessions.port = 6379
redis.sessions.db = 0
redis.sessions.password = None
redis.sessions.socket_timeout =
redis.sessions.connection_pool =
redis.sessions.charset = utf-8
redis.sessions.errors = strict
redis.sessions.unix_socket_path =
Only redis.sessions.secret is required. All other parameters have sensible defaults.
Note: package assumes you have a running Redis instance at the specified host and port.
Changelog
-Initial Release
-09/24/2012: 0.9 beta release
Metadata
Release files for pyramid_redis_sessions 0.9b
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyramid_redis_sessions-0.9b.tar.gz | 9.8 kB | Without provenance | Details for pyramid_redis_sessions-0.9b.tar.gz |
Release files / pyramid_redis_sessions-0.9b.tar.gz
| Download URL | pyramid_redis_sessions-0.9b.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
532ac6f387d94a6b4899dd92d789e980b86915ab3fd20e3fff53c4b8024ebb6a
|
|
BLAKE2b-256 checksum How to use checksums |
652ffabb72ffecc69ad2256f790dea5977aec5cf3b74bc5f278b5ade3cd67e5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyramid_redis_sessions 0.9b
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.