6 Commits

Author SHA1 Message Date
daniel156161 ce173e43c7 install uv into project 2025-10-31 13:17:55 +01:00
daniel156161 b3105423f8 fix that it can set the responce cookie correctly for newer werkzeug version 2025-09-18 18:16:18 +02:00
Kroket Ltd 249a7abd89 Bump to 3.0.0 2023-11-24 04:12:03 +02:00
Kroket Ltd 093d28fe62 Merge pull request #19 from jonathonfletcher/master
do not unpack initial in call to ServerSideSession's super.
2023-11-24 04:07:24 +02:00
Jonathon Fletcher 7e43c76ad0 do not unpack initial in call to ServerSideSession's super. 2023-11-04 11:50:46 -07:00
Kroket Ltd c25a62412d Merge pull request #16 from kroketio/session_cookie_name_fix
Session cookie name fix
2023-10-17 01:42:31 +03:00
4 changed files with 12 additions and 5 deletions
+7
View File
@@ -0,0 +1,7 @@
[project]
name = "quart-session"
version = "3.0.1"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = []
+1 -1
View File
@@ -10,7 +10,7 @@
:license: BSD, see LICENSE for more details. :license: BSD, see LICENSE for more details.
""" """
__version__ = '2.1.0' __version__ = '3.0.0'
import os import os
+2 -2
View File
@@ -31,7 +31,7 @@ class ServerSideSession(SecureCookieSession):
"""Baseclass for server-side based sessions.""" """Baseclass for server-side based sessions."""
def __init__(self, initial=None, sid=None, permanent=None, addr=None): def __init__(self, initial=None, sid=None, permanent=None, addr=None):
super(ServerSideSession, self).__init__(**initial or {}) super(ServerSideSession, self).__init__(initial or {})
self.sid = sid self.sid = sid
if permanent: if permanent:
self.permanent = permanent self.permanent = permanent
@@ -189,7 +189,7 @@ class SessionInterface(QuartSessionInterface):
session_id = self._get_signer(app).sign(want_bytes(session.sid)) session_id = self._get_signer(app).sign(want_bytes(session.sid))
else: else:
session_id = session.sid session_id = session.sid
response.set_cookie(cname, session_id, response.set_cookie(cname, session_id.decode('utf-8'),
expires=expires, httponly=httponly, expires=expires, httponly=httponly,
domain=domain, path=path, secure=secure, samesite=samesite) domain=domain, path=path, secure=secure, samesite=samesite)
+2 -2
View File
@@ -19,12 +19,12 @@ with open('README.md') as f:
INSTALL_REQUIRES = [ INSTALL_REQUIRES = [
"Quart>=0.10.0" "Quart>=0.19.0"
] ]
setup( setup(
name='Quart-Session', name='Quart-Session',
version='2.1.0', version='3.0.1',
url='https://github.com/kroketio/quart-session', url='https://github.com/kroketio/quart-session',
license='BSD', license='BSD',
author='Kroket Ltd.', author='Kroket Ltd.',