esmerald-sessions-0.2.0
توضیحات
An alternative SessionMiddleware for Esmerald with Pydantic.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | esmerald-sessions-0.2.0 |
| نام | esmerald-sessions |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Tiago Silva <tiago.silva@dymmond.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/esmerald-sessions/ |
| مجوز | - |
# Esmerald
<p align="center">
<a href="https://esmerald.dymmond.com"><img src="https://res.cloudinary.com/dymmond/image/upload/v1671718628/esmerald/img/logo-gr_oyr4my.png" alt='Esmerald'></a>
</p>
<p align="center">
<em>🌟 An alternative SessionMiddleware for Esmerald with Pydantic at its core. 🌟</em>
</p>
<p align="center">
<a href="https://github.com/dymmond/esmerald-sessions/workflows/Test%20Suite/badge.svg?event=push&branch=main" target="_blank">
<img src="https://github.com/dymmond/esmerald-sessions/workflows/Test%20Suite/badge.svg?event=push&branch=main" alt="Test Suite">
</a>
<a href="https://pypi.org/project/esmerald" target="_blank">
<img src="https://img.shields.io/pypi/v/esmerald-sessions?color=%2334D058&label=pypi%20package" alt="Package version">
</a>
<a href="https://pypi.org/project/esmerald" target="_blank">
<img src="https://img.shields.io/pypi/pyversions/esmerald-sessions.svg?color=%2334D058" alt="Supported Python versions">
</a>
</p>
---
**Documentation**: [https://esmerald-sessions.dymmond.com](https://esmerald-sessions.dymmond.com) 📚
**Source Code**: [https://github.com/dymmond/esmerald-sessions](https://github.com/dymmond/esmerald-sessions)
---
## Motivation
Using the default `SessionMiddleware` from Esmerald might not be enough for those applications that need a bit more
than just a simple caching, for example, where to store that same cookie.
This package offers that possibility and allows the extension of it if needed.
Inspired by [Starlette Session](https://github.com/auredentan/starlette-session/blob/master/starlette_session) and with
Pydantic at its core, Esmerald sessions offers the best of both worlds.
## Requirements
* Python 3.7+
## Installation
```shell
$ pip install esmerald-sessions
```
## How to use
Please check the [documentation](https://esmerald-sessions.dymmond.com) how to use the package.
نیازمندی
| مقدار | نام |
|---|---|
| - | aiomcache>=0.7.0 |
| - | aioredis<3.0.0,>=2.0.1 |
| - | asyncio<4.0.0,>=3.4.3 |
| - | esmerald>=0.2.10 |
| - | pydantic<2.0.0,>=1.10.2 |
| - | pymemcache<5.0.0,>=4.0.0 |
| - | redis<5.0.0,>=4.3.4 |
| xtr | aiomcache>=0.7.0; |
| xtr | aioredis<3.0.0,>=2.0.1; |
| xtr | asyncio<4.0.0,>=3.4.3; |
| xtr | esmerald>=0.5.1; |
| xtr | pydantic<2.0.0,>=1.10.2; |
| xtr | pymemcache<5.0.0,>=4.0.0; |
| xtr | pytz>=2022.6; |
| xtr | redis<5.0.0,>=4.3.4; |
| xtr | tzlocal<5.0,>=4.2; |
| xtr | autoflake<3.0.0,>=1.4.0; |
| xtr | black<23.0.0,>=22.10.0; |
| xtr | flake8<7.0.0,>=3.8.3; |
| xtr | isort<6.0.0,>=5.0.6; |
| xtr | loguru<0.7.0,>=0.6.0; |
| xtr | mypy==0.991; |
| xtr | pre-commit<3.0.0,>=2.17.0; |
| xtr | watchfiles<0.20.0,>=0.16.1; |
| xtr | mdx-include<2.0.0,>=1.4.1; |
| xtr | mkautodoc<0.3.0,>=0.2.0; |
| xtr | mkdocs-markdownextradata-plugin<0.3.0,>=0.1.7; |
| xtr | mkdocs-material<9.0.0,>=8.1.4; |
| xtr | mkdocs<2.0.0,>=1.1.2; |
| xtr | mkdocstrings<0.20.0,>=0.19.0; |
| xtr | pyyaml<7.0.0,>=5.3.1; |
| xtr | asyncz[test]==0.1.3; |
| xtr | fakeredis>=1.10.1; |
| xtr | pytest-asyncio<0.20.0,>=0.19.0; |
| xtr | pytest-cov<5.0.0,>=2.12.0; |
| xtr | pytest-mock>=3.10.0; |
| xtr | pytest<8.0.0,>=7.1.3; |
| xtr | requests<3.0.0,>=2.27.0; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl esmerald-sessions-0.2.0:
pip install esmerald-sessions-0.2.0.whl
نصب پکیج tar.gz esmerald-sessions-0.2.0:
pip install esmerald-sessions-0.2.0.tar.gz