aioprocessing
A Python 3.5+ library that integrates the multiprocessing module with asyncio.
What it is and what it does
aioprocessing wraps the standard library's multiprocessing module to make its blocking methods awaitable in asyncio code. Instead of reimplementing multiprocessing with async I/O, it delegates blocking calls to a ThreadPoolExecutor, allowing you to use familiar multiprocessing APIs (Queue, Lock, Process, Pool, Semaphore, Barrier, etc.) inside async coroutines without blocking the event loop.
The library adds a coroutine version of each blocking method—for example, `Lock.acquire()` becomes `AioLock.coro_acquire()`—and provides Aio-prefixed classes that drop into existing multiprocessing code. It also supports optional universal pickling via dill for cases where the standard pickle module is insufficient. This is useful when you need inter-process communication or worker pools within an asyncio application, though it introduces thread overhead and inherits the thread-fork mixing risks of the underlying multiprocessing module.
Use it for:
- Running CPU-bound worker processes from an async web framework without blocking the event loop.
- Coordinating multiple processes using asyncio-compatible locks, events, and queues in a single async application.
- Building async task queues that dispatch work to separate processes while maintaining async/await syntax.
- Mixing asyncio coroutines with multiprocessing Pool callbacks in a unified async control flow.
- Implementing inter-process synchronization primitives (Barrier, Condition) in async code.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides asyncio-compatible wrappers around multiprocessing objects (Queue, Lock, Process, Pool, etc.) so their blocking methods can be awaited in async code without freezing the event loop.
Yes, if you need to integrate multiprocessing with asyncio and are comfortable with the abandoned maintenance status. The package is stable and has no known vulnerabilities, but you should be aware it will not receive updates for new Python versions or bug fixes. For new projects, consider whether a pure-async alternative might better suit your needs.
Install
aioprocessing on PyPI
pip
pip install aioprocessinguv
uv add aioprocessingpoetry
poetry add aioprocessingInstalling aioprocessing
Before you install
Installation is straightforward with no runtime dependencies. However, the package is in abandoned maintenance status with the last commit in September 2022. It remains functional for its stated purpose but will not receive bug fixes or updates.
License in practice
Licensed under BSD (permissive), which allows free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install aioprocessing
import asyncio
import aioprocessing
async def main():
queue = aioprocessing.AioQueue()
lock = aioprocessing.AioLock()
result = await queue.coro_get()
async with lock:
await queue.coro_put(None)
asyncio.run(main())
Requires Python 3.5 or later. Thread-fork mixing caveats apply when combining with multiprocessing; coroutines cannot be cancelled since work in executor threads cannot be interrupted.
Verify before relying
- Whether the package is actively maintained or if there are known issues with modern Python versions.
- Performance overhead compared to native multiprocessing in typical workloads.
- Compatibility with concurrent.futures.ProcessPoolExecutor when using the dill extra.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.5) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 1,429 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 135,327/month — #11,440 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: aioprocessing-2.0.1-py3-none-any.whl
Keywords: asyncio, multiprocessing, coroutine
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
aiomultiprocessCombines AsyncIO and multiprocessing to run…
permissive · top 5,000 on PyPI
asyncioThis package is an obsolete backport of…
permissive · top 1,000 on PyPI
asyncio-poolManages a pool of concurrent asyncio…
permissive · top 15,000 on PyPI
mode-streamingMode is a minimal asyncio library that lets you…
permissive · top 15,000 on PyPI
molotovMolotov is a load testing tool that uses…
permissive · top 15,000 on PyPI
threadedProvides decorators to wrap functions for…
permissive · top 15,000 on PyPI
bounded-pool-executorWraps Python's ProcessPoolExecutor and…
permissive · top 15,000 on PyPI
blockbusterBlockbuster detects and prevents blocking calls…
permissive · top 5,000 on PyPI
aioshutilProvides async-friendly versions of shutil…
permissive · top 15,000 on PyPI
mpireMPIRE provides a faster, more feature-rich…
permissive · top 5,000 on PyPI