Skip to main content

Anyio-Executor

Inspired by the newer aiolibs-executor library this library provides a asynchronous executor for anyio and has compatability with 3.11 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.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anyio-executor 0.2.0
File Size Uploaded Provenance Actions
anyio_executor-0.2.0.tar.gz 11.3 kB With provenance Details for anyio_executor-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for anyio-executor 0.2.0
File Interpreter ABI Platform Actions
anyio_executor-0.2.0-py3-none-any.whl Python 3 none any Details for anyio_executor-0.2.0-py3-none-any.whl

Total release size: 21.8 kB

Release files / anyio_executor-0.2.0.tar.gz

Download URL anyio_executor-0.2.0.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ecf4b33a66230e5023ea60ff0d05bfb7c86493923416c467485517c91ec98735
BLAKE2b-256 checksum
How to use checksums
b8f0e7d59957341e181dadebc20c0cb7b307c474624293460c240060c366796e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / anyio_executor-0.2.0-py3-none-any.whl

Download URL anyio_executor-0.2.0-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c65cd4bc614109f637e4fc0d771f13cf12fe9e699473a0afbb622224abb7d7d8
BLAKE2b-256 checksum
How to use checksums
6f28f228ec9c15f6267dd7b2119529004d263b8ba1f9e98f5a16704936ab658d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for anyio-executor 0.2.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for anyio_executor-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page