Upcoming breaking changes to pyramid_session_redis

3 views
Skip to first unread message

Jonathan Vanasco

unread,
May 21, 2025, 10:39:23 PMMay 21
to pylons-discuss
I have some upcoming breaking changes to pyramid_session_redis.  It's decently used, so I wanted to announce them here in case anyone is able to test for feedback.  

1- I am finalizing a v1.7 release.  If any active users are able to test it off the github main, that would be great; I can do a pypi rc as well.

The key changes are:
* issues with upstream typing stubs caused some problems with serialization.  the library itself is fine, but if anyone uses custom serializers there may be some issues. everything behaves consistently now.
* various legacy deprecations
* deprecating legacy redis kwargs in favor of a `redis_` prefix
* introducing an `invalidate_empty_session` command, which defaults to False. This will unset the cookie and delete the backend storage if a session is empty, to free up server resources.

2- Immediately after, I plan to release v1.8.  That will remove the new deprecations and flip the `invalidate_empty_session` to True.

I don't want to break any installs, but I need to make this more manageable. 

https://github.com/jvanasco/pyramid_session_redis

Reply all
Reply to author
Forward
0 new messages