diff --git a/CHANGELOG.md b/CHANGELOG.md index e0a7855..bc3fb6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,12 @@ +### 1.0.6 + +- MongoDB support +- Transfer copyright to Kroket Ltd. + ### 1.0.3 2021-08-31 - Migrated to aioredis 2 -- SameSite support https://github.com/sanderfoobar/quart-session/commit/8daae3a6734e8f7da13954d5a1a5da8f5fc5a49a +- SameSite support https://github.com/kroketio/quart-session/commit/8daae3a6734e8f7da13954d5a1a5da8f5fc5a49a - Memcached stuff https://github.com/filak/quart-session/commit/004871c495a069784e57e604b69f65af1b7e645a ### 1.0.0 2020-01-15 diff --git a/LICENSE b/LICENSE index 44c133e..6a11112 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ Copyright (c) 2014 by Shipeng Feng. -Copyright (c) 2020 by Sander. +Copyright (c) 2020 by Kroket Ltd. Some rights reserved. diff --git a/MANIFEST.in b/MANIFEST.in index ebd86bc..556dce6 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -6,4 +6,5 @@ recursive-include quart_session *.py recursive-include quart_session *.md exclude .gitlab-ci.yml exclude examples -exclude docs \ No newline at end of file +exclude docs +exclude venv \ No newline at end of file diff --git a/README.md b/README.md index 5e5ec77..7d936b5 100644 --- a/README.md +++ b/README.md @@ -144,9 +144,11 @@ app.session_interface.serialize = pickle At any point you may interface with the session back-end directly: ```python3 +from quart_session.sessions import SessionInterface + @app.route("/") async def hello(): - cache = app.session_interface + cache: SessionInterface = app.session_interface await cache.set("random_key", "val", expiry=3600) data = await cache.get("random_key") ``` diff --git a/examples/hello.py b/examples/hello.py index f894d1a..ff17590 100644 --- a/examples/hello.py +++ b/examples/hello.py @@ -5,7 +5,7 @@ Quart-Session demo. - :copyright: (c) 2020 by Sander. + :copyright: (c) 2020 by Kroket Ltd. :license: BSD, see LICENSE for more details. """ from quart import Quart, session diff --git a/quart_session/__init__.py b/quart_session/__init__.py index 41bc5fd..92f6454 100644 --- a/quart_session/__init__.py +++ b/quart_session/__init__.py @@ -6,11 +6,11 @@ Adds server session support to your application. :copyright: (c) 2014 by Shipeng Feng. - :copyright: (c) 2020 by Sander. + :copyright: (c) 2020 by Kroket Ltd. :license: BSD, see LICENSE for more details. """ -__version__ = '1.0.5-dev' +__version__ = '1.0.6' import os diff --git a/quart_session/sessions.py b/quart_session/sessions.py index 3dea95e..f8e26f4 100644 --- a/quart_session/sessions.py +++ b/quart_session/sessions.py @@ -6,7 +6,7 @@ Server-side Sessions and SessionInterfaces. :copyright: (c) 2014 by Shipeng Feng. - :copyright: (c) 2020 by Sander. + :copyright: (c) 2020 by Kroket Ltd. :license: BSD, see LICENSE for more details. """ import time @@ -194,7 +194,7 @@ class SessionInterface(QuartSessionInterface): async def create(self, app: Quart): raise NotImplementedError() - async def get(self, app: Quart, key: str): + async def get(self, key: str, app: Quart = None): raise NotImplementedError() async def set(self, key: str, value, expiry: int = None, diff --git a/setup.py b/setup.py index 98d187b..54a124b 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ Links ````` * `Github - `_ + `_ """ from setuptools import setup @@ -24,11 +24,11 @@ INSTALL_REQUIRES = [ setup( name='Quart-Session', - version='1.0.5-dev', - url='https://github.com/sferdi0/quart-session', + version='1.0.6', + url='https://github.com/kroketio/quart-session', license='BSD', - author='Sander', - author_email='sander@sanderf.nl', + author='Kroket Ltd.', + author_email='code@kroket.io', description='Adds server-side session support to your Quart application', long_description=long_description, long_description_content_type='text/markdown',