skillfed

async-timeout

Timeout context manager for asyncio programs

async-timeout Permissive license Apache 2 Abandoned 571 v5.0.1 released

Install

async-timeout on PyPI

pip

pip install async-timeout

uv

uv add async-timeout

poetry

poetry add async-timeout

Package facts

License Apache 2 (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance abandoned — 645 days since the last release
Last repo commit (repository archived)
First released
Popularity one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13)
Known vulnerabilities none known (OSV.dev, checked 2026-08-13)

Evidence: async_timeout-5.0.1-py3-none-any.whl

Development Status :: 5 - Production/StableFramework :: AsyncIOIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyTopic :: Software Development :: Libraries

About async-timeout

from the package's own PyPI description — quoted content, verbatim

async-timeout

.. image:: https://travis-ci.com/aio-libs/async-timeout.svg?branch=master :target: https://travis-ci.com/aio-libs/async-timeout .. image:: https://codecov.io/gh/aio-libs/async-timeout/branch/master/graph/badge.svg :target: https://codecov.io/gh/aio-libs/async-timeout .. image:: https://img.shields.io/pypi/v/async-timeout.svg :target: https://pypi.python.org/pypi/async-timeout .. image:: https://badges.gitter.im/Join%20Chat.svg :target: https://gitter.im/aio-libs/Lobby :alt: Chat on Gitter

asyncio-compatible timeout context manager.

DEPRECATED

This library has effectively been upstreamed into Python 3.11+.

Therefore this library is considered deprecated and no longer actively supported.

Version 5.0+ provides dual-mode when executed on Python 3.11+: asyncio_timeout.Timeout is fully compatible with asyncio.Timeout and old versions of the library.

Anyway, using upstream is highly recommended. asyncio_timeout exists only for the sake of backward compatibility, easy supporting both old and new Python by the same code, and easy misgration.

If rescheduling API is not important and only ``async with...

Read as markdown · JSON record · Source repository · Homepage

AI interpretation — verify before relying

AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page

Provides an asyncio-compatible timeout context manager for cancelling async operations after a specified delay, now deprecated in favor of Python 3.11+'s built-in asyncio.Timeout.

Installation is straightforward with no runtime dependencies, but the package is abandoned and marked deprecated—maintenance ceased 645 days ago. Use only for backward compatibility on Python <3.11.

Licensed under Apache 2 (permissive), allowing free use and modification with minimal restrictions.

Usage

pip install async-timeout

from async_timeout import timeout

async with timeout(1.5):
    await some_async_operation()

Requires Python 3.8+; on Python 3.11+ consider using asyncio.Timeout from the standard library instead.

Verdict: async-timeout is a stable, dependency-free timeout utility now superseded by Python 3.11's built-in asyncio.Timeout. The package is abandoned and no longer maintained, so it should only be used for backward compatibility when supporting older Python versions or existing codebases. New projects should prefer the standard library equivalent.

Needs verification

  • Whether version 5.0.1's dual-mode compatibility with asyncio.Timeout is complete enough for all existing use cases.
  • Performance characteristics compared to the standard library asyncio.Timeout on Python 3.11+.
asyncio timeout context managerasync operation timeoutcancel async task after delayasyncio timeout decoratorasync with timeoutasyncio deadline scheduling

Similar packages