51668878df
- Added support for arbitrary usage of caching backends.
- Exposed `get`, `set`, `delete` on the session interface for direct usage.
- Renamed `SESSION_HIJACK_REVERSE_PROXY` to `SESSION_REVERSE_PROXY`.
- Renamed `SESSION_HIJACK_PROTECTION` to `SESSION_PROTECTION`.
- Removed fallback when `X-Forwarded-For` is not present whilst USING `SESSION_REVERSE_PROXY`, emit error instead.
- Fixed a bug where session timeouts would default to 600 seconds.
- Deprecated/disabled the `dirty()` method.
54 lines
1.4 KiB
Python
54 lines
1.4 KiB
Python
"""
|
|
Quart-Session
|
|
-------------
|
|
|
|
Quart-Session is an extension for Quart that adds support for
|
|
Server-side Session to your application.
|
|
|
|
Links
|
|
`````
|
|
|
|
* `Github
|
|
<https://github.com/sferdi0/quart-session>`_
|
|
|
|
"""
|
|
from setuptools import setup
|
|
|
|
with open('README.md') as f:
|
|
long_description = f.read()
|
|
|
|
|
|
INSTALL_REQUIRES = [
|
|
"Quart>=0.10.0"
|
|
]
|
|
|
|
setup(
|
|
name='Quart-Session',
|
|
version='1.0.0',
|
|
url='https://github.com/sferdi0/quart-session',
|
|
license='BSD',
|
|
author='Sander',
|
|
author_email='sander@sanderf.nl',
|
|
description='Adds server-side session support to your Quart application',
|
|
long_description=long_description,
|
|
long_description_content_type='text/markdown',
|
|
packages=['quart_session'],
|
|
zip_safe=False,
|
|
include_package_data=True,
|
|
platforms='any',
|
|
install_requires=INSTALL_REQUIRES,
|
|
tests_require=INSTALL_REQUIRES + ["asynctest", "hypothesis", "pytest", "pytest-asyncio"],
|
|
extras_require={"dotenv": ["python-dotenv"]},
|
|
classifiers=[
|
|
'Environment :: Web Environment',
|
|
'Intended Audience :: Developers',
|
|
'License :: OSI Approved :: BSD License',
|
|
'Operating System :: OS Independent',
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.7",
|
|
"Programming Language :: Python :: 3.8",
|
|
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
|
|
'Topic :: Software Development :: Libraries :: Python Modules'
|
|
]
|
|
)
|