Skip to main content

No Maintenance Intended

Purpose

This package contains the asynchat module as found in Python versions prior to 3.12. It is provided so that existing code relying on import asynchat is able to continue being used without significant refactoring.

The module's source code is taken directly from the Python standard library[1]. The specific version of asynchat that is provided is the last update before the addition of deprecation/removal warnings at import time, and is identical to the version bundled with Python 3.9 (which was the last time the module was meaningfully updated).

Please note that new projects should prefer asyncio.

Installation

This version of asynchat is intended for Python 3.12 or later. Install the module using pip:

python -m pip install pyasynchat

The module can be installed for earlier Python versions, but it will have no effect, and the standard library version of asynchat will be used in its place.

Note that installing pyasynchat will not remove deprecation warnings in Python versions 3.10 and 3.11. Instead, use the warnings package:

import warnings
with warnings.catch_warnings():
    warnings.simplefilter('ignore', DeprecationWarning)
    import asynchat

Usage

The module is imported in exactly the same way as the standard library component it replaces:

import asynchat

Note that the PyPI module is named pyasynchat because creating modules with the same name as those provided by the standard library is not permitted.

For guidance about using the asynchat module, see the official documentation.

Testing

The previous standard library tests have also been replicated into this module. Run them using:

python -m unittest

Maintenance

Due to the fact that this previously built-in module is no-longer supported by the Python core development team, no further maintenance of the asynchat code is intended. This project is only intended to be updated to make changes or improvements to the module packaging.

License

Python Software Foundation License Version 2

Footnotes

1. Verify this if needed via: diff <(curl --location https://github.com/python/cpython/raw/3.9/Lib/asynchat.py) <(curl --location https://github.com/simonrob/pyasynchat/raw/master/asynchat/__init__.py) ⏎

Release files for pyasynchat 1.0.5

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

Source distribution (sdist)

Source distribution for pyasynchat 1.0.5
File Size Uploaded
pyasynchat-1.0.5.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyasynchat 1.0.5
File Interpreter ABI Platform
pyasynchat-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 17.8 kB

Release files / pyasynchat-1.0.5.tar.gz

Download URL pyasynchat-1.0.5.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
36665473ae730dac51e6d7dad70f8295962120c830ab692f0a31efba32687e24
BLAKE2b-256 checksum
How to use checksums
ecd2b41df9021c12ca314146abcde7bdd3d9d37d44cc01559d7f13df459ee586
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Jan 5, 2026.

Transparency log

Release files / pyasynchat-1.0.5-py3-none-any.whl

Download URL pyasynchat-1.0.5-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35b7859515693e479e8d95ebe9f32cbf4d6312ab7599ced39fc24699e51de46f
BLAKE2b-256 checksum
How to use checksums
48e8e5ad498cb6a834c16af910e259926fd545dd7873a2da451f3a2bb228d7ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Jan 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

3 release files

1.0.1

2 release files

1.0.0

2 release files

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