Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ASGI-Sessions #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add ASGI-Sessions #59

wants to merge 1 commit into from

Conversation

klen
Copy link

@klen klen commented Feb 9, 2021

Add ASGI-Sessions

Checklist

  • This project is explicitly related to ASGI.
  • The new list entry contains a project name, URL and description.

What is this project?

ASGI-Sessions - Signed Cookie-Based HTTP sessions for ASGI applications (supports asyncio/trio libs)

Do you know about other similar projects?

yes

If so, how is this one different?

It supports not only asyncio, but trio library as well


Anyone who agrees with this pull request can add a 👍.

Add ASGI-Sessions
@florimondmanca florimondmanca added the please vote Vote to confirm interest in adding this project to the list label Feb 9, 2021
@florimondmanca
Copy link
Owner

Hello! Thanks, this is interesting.

How does this compare with Starlette's SessionMiddleware? Are there missing features you've been wanting there?

I understand that you are developing asgi-tools, would you have some more background on the motivation behind that?

(Just trying to understand motivations. I believe initially Starlette was aimed at becoming a foundational, no-dependencies, ASGI-centric framework, so always curious about new tacks with that role. :-) If it's mostly out of personal curiosity or learning I can totally understand — that's where I came from as well. Just obviously a bit reluctant to include things in this list that might end up being close-duplicates and not necessarily serving the ecosystem as a whole.)

Thanks!

@klen
Copy link
Author

klen commented Feb 9, 2021

Obviously Starlette's SessionMiddleware depends on Starlette itself. ASGI-Sessions based on ASGI-Tools which one much smaller (ASGI-Tools not going to include support template engine, graphql, databases, authentication and etc support).

The most important thing in my opinion ASGI-Tools supports Trio too (natively) (Startlette is not for the current moment).

Besides that, the ASGI-Sessions uses PyJWT and only writes cookies when a user session has been changed. Starlette's SessionMiddleware writes the cookie for every request.

That's it for the ASGI-Sessions for ASGI-Tools I can say much more, but it's an offtopic

@euri10
Copy link
Contributor

euri10 commented Sep 26, 2022

interesting as well !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
please vote Vote to confirm interest in adding this project to the list
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants