Skip to main content

Make asynchat available for Python 3.12 onwards

Project description

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.py 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.

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.

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 code in asynchat.py 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/asynchat.py)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyasynchat-1.0.3.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyasynchat-1.0.3-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file pyasynchat-1.0.3.tar.gz.

File metadata

  • Download URL: pyasynchat-1.0.3.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pyasynchat-1.0.3.tar.gz
Algorithm Hash digest
SHA256 915c603b6a4b78258a97e270309a5fb1c78330161c912200492b0c21fa1b8920
MD5 8cad409e452716d3e4863c6b6a374d57
BLAKE2b-256 6f654ad6a907c38824e3c8f886cca68b0746c9476cda8a5f70a6baa678f10a4f

See more details on using hashes here.

File details

Details for the file pyasynchat-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyasynchat-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pyasynchat-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f19d3ef67d1a867657cf44f12f7ecd7d38f1484dd3ab150f83acc4412abc08a0
MD5 b8753aa1fe014c60a8426c0ee6c7c7fe
BLAKE2b-256 c67a12867f9b59bc6d0102d00a9c6ce2a2a3000e1bb13b2a5abd417d917b130c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page