Dovetail
Dovetail (pydovetail) bridges synchronous functions and asyncio using a
bounded thread pool. Requires Python 3.10+; no runtime dependencies.
python -m pip install pydovetail
Quick start
import asyncio
from pydovetail import Dovetail
def blocking_double(value):
return value * 2
async def main():
with Dovetail(max_workers=8) as dvt:
result = await dvt.task.to_thread(blocking_double, 4)
results = await dvt.task.map(blocking_double, range(10), max_concurrency=8)
print(result, results)
asyncio.run(main())
Use dvt.task.map_blocking(func, items, max_concurrency=8) from synchronous
code, or dvt.task.run_blocking(coroutine) to bridge a synchronous caller.
Never call blocking wrappers from an already-running event loop.
Capabilities
task.to_thread: await a blocking function in the executor.task.map: ordered concurrent mapping, withmax_concurrencyandreturn_exceptionscontrols.task.map_blocking: synchronous mapping wrapper.task.schedule: schedule coroutine or callable work.task.run_blocking: bridge synchronous callers.- Lifecycle events, counters, tracing, rate limiting, retries and timeouts.
Timeouts cannot stop already-running Python threads. Consult the migration and concurrency guide for cancellation semantics and downstream migrations.
Reference and development
Run python -m pip install -e '.[dev]' then python tests/test.py.
CI runs Python 3.10–3.14, linting, a benchmark smoke test and package builds.
MIT licensed; see LICENSE.
Metadata
Release files for pydovetail 3.0.0
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 |
|---|---|---|---|---|
| pydovetail-3.0.0.tar.gz | 29.2 kB | With provenance | Details for pydovetail-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydovetail-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for pydovetail-3.0.0-py3-none-any.whl |
Total release size: 50.5 kB
Release files / pydovetail-3.0.0.tar.gz
| Download URL | pydovetail-3.0.0.tar.gz |
|---|---|
| Size | 29.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
839b69e9be6067ba9ae9c95ac4e8cd3606264ceb072856d9363496ab423db6ac
|
|
BLAKE2b-256 checksum How to use checksums |
d80395afafd4fb2f678acafba9ebabfa0ed4d8f28298d04d859c387d5f71c935
|
| 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 Oct 30, 2026.
Transparency logRelease files / pydovetail-3.0.0-py3-none-any.whl
| Download URL | pydovetail-3.0.0-py3-none-any.whl |
|---|---|
| Size | 21.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
784d60447efa8ccd90a3a3800da50c20e7151370e93ecb9e218e7461f8407921
|
|
BLAKE2b-256 checksum How to use checksums |
718b92816d7ad6d736346e78ba9b49cace4a3a4033a60d89f118761ec98ee40f
|
| 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 Oct 30, 2026.
Transparency logSecurity for pydovetail 3.0.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
Both files in this release have been uploaded with provenance metadata.
Attestation for pydovetail-3.0.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 Oct 30, 2026.
Transparency logA 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.