--- id: pyramid-session-redis version: "1.8.1" license: BSD license_treatment: permissive maintenance: aging --- # pyramid-session-redis — High performance and actively maintained server-side session framework for Pyramid and Redis. License: permissive · Maintenance: aging · Downloads: 80.0K/mo ## What it is and what it does pyramid_session_redis is a Pyramid web framework plugin that stores user sessions in Redis instead of in-process or cookies. It was originally forked from pyramid_redis_sessions to optimize for high-traffic deployments by reducing Redis communication overhead and supporting flexible timeout strategies. The package manages both session timeouts (inactivity-based, with configurable refresh triggers) and cookie expiry separately, allowing fine-grained control over session lifecycle. The library depends on redis, pyramid, zope.interface, and typing_extensions. It supports Python 3.7+ with Pyramid 2.0 on the current branch, though older 1.6.x releases support Python 2 and Pyramid 1.x. The package uses semantic versioning with minor versions potentially containing small breaking changes announced via deprecation warnings. Session payload format changed significantly in version 1.4, making old 1.2.x sessions incompatible. Use it for: - Store user sessions in Redis for multi-server Pyramid deployments where in-process memory is not shared - Implement session timeout with activity-based refresh to balance security and user experience in high-traffic sites - Migrate from pyramid_redis_sessions with minimal code changes while gaining performance optimizations - Configure Redis-managed session expiry to offload timeout logic from application code - Support graceful session handling across Pyramid application restarts without losing user state ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides server-side session storage for Pyramid web applications using Redis as the backend, with optimizations for high-traffic deployments. Yes, with conditions. The package is stable and actively maintained (recent commits, no known vulnerabilities), but install friction is high due to multiple dependencies and the requirement for a running Redis server. It is well-suited for multi-server Pyramid deployments or high-traffic applications where session management performance matters. Not recommended for simple single-server applications where in-process sessions suffice. The aging maintenance status (291 days since release) is not a blocker but warrants monitoring if you depend on frequent updates. ## Install pip install pyramid-session-redis uv add pyramid-session-redis poetry add pyramid-session-redis ## Installing pyramid-session-redis Before you install: High install friction due to 4 runtime dependencies including redis and pyramid. Maintenance status is aging—last release was 291 days ago, though the repository remains active with a recent commit on 2025-11-07. The 1.8 branch targets Python 3.7+ and Pyramid 2.0; earlier 1.6 branch supports Python 2 and Pyramid 1.x but is in maintenance mode. License in practice: Licensed under BSD (permissive), which allows commercial and private use with minimal restrictions. No notable licensing constraints for adoption. Quickstart: pip install pyramid-session-redis redis pyramid from pyramid.config import Configurator from pyramid_session_redis import session_factory_from_settings config = Configurator() session_factory = session_factory_from_settings(settings) config.set_session_factory(session_factory) Requires a running Redis server. The package requires Python 3.7+ for the main branch (1.7+) and Pyramid 2.0; the 1.6 branch supports older Python 2 and Pyramid 1.x but is in maintenance mode only. Verify before relying: - Whether the aging maintenance status (291 days since last release) affects production readiness for new deployments - Performance improvements over the original pyramid_redis_sessions in real-world high-traffic scenarios - Compatibility and migration path for applications currently on the 1.6 branch moving to 1.8 ## Package facts - License: BSD (permissive) - Python support: unspecified - Install friction: high - Maintenance: aging - Downloads: 80.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags pyramid session management redis, server-side sessions pyramid, redis session storage, pyramid web framework sessions, high-performance session handling, session-management, redis-backend, pyramid-plugin [View on SkillFed](https://skillfed.io/packages/pyramid-session-redis) · [View on PyPI](https://pypi.org/project/pyramid-session-redis/)