Allow non-async defs that invoke awaitables inside of asyncio applications
Project description
Allow non-async defs that invoke awaitables inside of asyncio applications.
awaitlet allows existing programs written to use threads and blocking APIs to be ported to asyncio, by replacing frontend and backend code with asyncio compatible approaches, but allowing intermediary code to remain completely unchanged. Its primary use is to support code that is cross-compatible with asyncio and non-asyncio runtime environments.
awaitlet is intentionally fully compatible with SQLAlchemy’s asyncio mediation layer, and includes API patterns for:
Converting any threaded program (no SQLAlchemy dependency necessary) to use asyncio patterns for front facing APIs and backends, without modifying intermediary code
Converting threaded database-enabled programs to use asyncio patterns for front facing APIs and backends, where those backends use SQLAlchemy’s asyncio API for database access
Converting threaded database-enabled programs to use asyncio patterns for front facing APIs and backends, without modifying intermediary code that uses SQLAlchemy’s synchronous API for database access
Documentation for awaitlet is within this source distribution and availble on the web at https://awaitlet.sqlalchemy.org .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file awaitlet-0.0.1.tar.gz
.
File metadata
- Download URL: awaitlet-0.0.1.tar.gz
- Upload date:
- Size: 67.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d98c8b821f595284f9327d45067995ccbee0d99993f0d0b935b23ac8ecf58334 |
|
MD5 | a74f83bdd755404a40809b6f091a02c9 |
|
BLAKE2b-256 | 24d291d66766252299a2e6649956dc9dfdf9eab85364155885e51e7a37fdb9df |
File details
Details for the file awaitlet-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: awaitlet-0.0.1-py3-none-any.whl
- Upload date:
- Size: 82.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 255b1c086f2fbfef2d8d88b66acae8636418d38bcfe93a897ccd8234a7b8bf6d |
|
MD5 | 8a8ce4dc54eac7633280df2f82f008b6 |
|
BLAKE2b-256 | 66ea81aae1976035a7627d99c9a85b44885b95fe7a557c0db3e463ccd42a7a76 |