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

Anyio compatability #23

Open
dolamroth opened this issue Mar 23, 2023 · 0 comments
Open

Anyio compatability #23

dolamroth opened this issue Mar 23, 2023 · 0 comments
Milestone

Comments

@dolamroth
Copy link
Owner

dolamroth commented Mar 23, 2023

Starlette itself is anyio-compatible. However, underlying implementations of low-level libraries are mostly not.

  • With current scheme, SQLAlchemy is main core part, which is not anyio-compatible.
  • Anyio-compatible websockets are available, if using hypercorn (beta, as of right now) + anysocks/asyncwebsockets. However, so far these are less reliable/feature-complete than asyncio implementation.
  • There is no DB engines (at least for Postgres) with anyio, but there are separate implementations for asyncio and trio
    • pg-purepy exists, but it is not feature-complete
    • trio-pg is just wrapper around asyng pg
  • Same for redis / mqtt / rmq
  • There is anyio implementation for SMTP https://pypi.org/project/smtpproto/

Desireable contrib libraries to have around for production

@dolamroth dolamroth added this to the In the future milestone Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant