Anyio-Executor
Inspired by the newer aiolibs-executor library this library provides a asynchronous executor for anyio and has compatability with 3.10 and newer versions of python.
Installation
pip install anyio-executor
Usage
It borrows a simillar interface to that of aiothreading however this library is a lot more simplistic as an external thread is not being launched. As for queues, anyio doesn't support having it's own queue objects so in order to meet demands for excellent performance aiologic is utilized for that role.
import anyio
from anyio_executor import Executor
async def fn(i: int):
await anyio.sleep(i)
print(f"{i} done!")
return i
async def main():
async with Executor(10) as e:
items = await e.map(fn, [1, 2, 1, 2, 3])
print(items)
async with Executor(10) as e:
# it will also take async for iterations.
async for i in e.map(fn, [1, 2, 1, 2, 3]):
print(i)
if __name__ == "__main__":
anyio.run(main)
Metadata
Release files for anyio-executor 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| anyio_executor-0.1.1.tar.gz | 10.8 kB | Without provenance | Details for anyio_executor-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| anyio_executor-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for anyio_executor-0.1.1-py3-none-any.whl |
Total release size: 21.0 kB
Release files / anyio_executor-0.1.1.tar.gz
| Download URL | anyio_executor-0.1.1.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a4d5a689e17bb2669d1a9981e6f0e16e5384ccbc675cc0054fce4f785c84faf2
|
|
BLAKE2b-256 checksum How to use checksums |
2647fa81843d318c08b7a6769d20905e1a9fd358acda5aaa10ba4ce4028bdf2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Release files / anyio_executor-0.1.1-py3-none-any.whl
| Download URL | anyio_executor-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f54b9260f8a99b58556a8c21544c58b2880d7e63b913761cbeb991b112894e3
|
|
BLAKE2b-256 checksum How to use checksums |
5c1402c75da6e7c04343824f0b2e404d624c52aa3f699b63e12d2f7a1b88bdd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Security for anyio-executor 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.