skillfed

pyasynchat

Make asynchat available for Python 3.12 onwards

pyasynchat v1.0.5 824.8K downloads/30d#4,962 on PyPI3
Permissive license Python Software Foundation License Version 2 AGING released

What it is and what it does

This package restores the asynchat module for Python 3.12 and later, where it was removed from the standard library. The module is taken directly from Python 3.9's standard library—the last version before deprecation warnings were added—and depends on pyasyncore. It is a compatibility shim for existing code that relies on asynchat without needing major refactoring.

The package is explicitly not maintained beyond packaging updates, since asynchat itself is no longer supported by Python core development. For Python 3.10–3.11, installing this package will not remove deprecation warnings; the warnings module must be used to suppress them.

Use it for:

  • Running existing code that depends on asynchat when upgrading to Python 3.12 or later.
  • Providing a stable, frozen version of asynchat for projects during migration planning.
  • Avoiding import errors in codebases that use asynchat on Python 3.12+.
  • Temporary bridge for legacy systems while planning longer-term architectural changes.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides the asynchat module for Python 3.12 and later, where it was removed from the standard library, allowing existing code to run without refactoring.

Yes, if you have existing code that depends on asynchat and cannot immediately refactor. The package is stable with no known vulnerabilities, but understand it is not maintained and asynchat itself is deprecated. Install only as a temporary compatibility bridge, not for new projects.

Install

pyasynchat on PyPI

pip

pip install pyasynchat

uv

uv add pyasynchat

poetry

poetry add pyasynchat

Installing pyasynchat

Before you install

Low install friction with a single runtime dependency (pyasyncore). Maintenance is aging—the package is intentionally not maintained beyond packaging updates, as the underlying code is no longer supported by Python core.

License in practice

Licensed under Python Software Foundation License Version 2, a permissive license. No restrictions on use, modification, or distribution for most purposes.

Quickstart

pip install pyasynchat

import asynchat

class MyHandler(asynchat.async_chat):
    pass

Intended for Python 3.12 or later; on earlier versions the standard library version will be used instead.

Verify before relying

  • Whether pyasyncore (the single runtime dependency) itself is maintained or carries known issues.
  • How well the module's behavior is preserved across Python 3.12, 3.13, and 3.14 in practice.
  • Whether deprecation warnings in Python 3.10 and 3.11 can be effectively suppressed when using this package.

Package facts

License Python Software Foundation License Version 2 (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 1 — pyasyncore
Maintenance aging — 221 days since the last release
Last repo commit
First released
Downloads 824,832/month — #4,962 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pyasynchat-1.0.5-py3-none-any.whl

Development Status :: 5 - Production/StableLicense :: OSI Approved :: Python Software Foundation LicenseProgramming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries

Tags

asynchat python 3.12asynchat backportlegacy asynchat modulepython asynchat removedasynchat compatibilityasync protocol handler
compatibility-shimlegacy-supportdeprecation-bridge

More Libraries packages