Skip to main content

Make asyncore available for Python 3.12 onwards

Project description

No Maintenance Intended

Purpose

This package contains the asyncore module as found in Python versions prior to 3.12. It is provided so that existing code relying on import asyncore 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 asyncore.py that is provided is the last update before the addition of deprecation/removal warnings at import time, and is essentially equivalent to the version bundled with Python 3.9.

Please note that new projects should prefer asyncio.

Installation

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

python -m pip install pyasyncore

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

Note that installing pyasyncore 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 asyncore

Usage

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

import asyncore

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

For guidance about using the asyncore 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 asyncore.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/c4d45ee670c09d4f6da709df072ec80cb7dfad22/Lib/asyncore.py) <(curl --location https://github.com/simonrob/pyasyncore/raw/master/asyncore/asyncore.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

pyasyncore-1.0.3.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

pyasyncore-1.0.3-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyasyncore-1.0.3.tar.gz
Algorithm Hash digest
SHA256 562e0686c936171a65ae5eaf0341859a05650010b9aae5d7d01382b5bcdab8d0
MD5 f3b017afed80e7e71914079c68775bda
BLAKE2b-256 9ea306ba73ae3e6b870897659781f328858547a7ec048b0d986c8e37fd667d8f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyasyncore-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 26179d12f569facdb66c8af117a0d0b8f18a2d1af92276f9e3df3f5086c4c6ec
MD5 8b6834c2aeb6f461105325763fd6757a
BLAKE2b-256 225986669fa2871eb44defbaf13dc60ceaa8b86585881ed49d4a97b6885b29bc

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