Skip to main content

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 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 (which was the last time the module was meaningfully updated).

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.

Testing

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

python -m unittest

A minor class name change has been made to the test suite to allow running with pytest if desired, but otherwise the tests are unmodified.

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

Release files for pyasyncore 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 pyasyncore 1.0.5
File Size Uploaded
pyasyncore-1.0.5.tar.gz 15.9 kB Details

Built distribution (wheel)

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

Total release size: 26.1 kB

Release files / pyasyncore-1.0.5.tar.gz

Download URL pyasyncore-1.0.5.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
dd483d5103a6d59b66b86e0ca2334ad43dca732ff23a0ac5d63c88c52510542e
BLAKE2b-256 checksum
How to use checksums
4e43035dfe0cb01687c1940fdc008f46a43c41067e226e862df49327469764a0
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 / pyasyncore-1.0.5-py3-none-any.whl

Download URL pyasyncore-1.0.5-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
269bbc5252671827387636822841a1fb721ec6e858b23a3e12cf92eb1f97da2a
BLAKE2b-256 checksum
How to use checksums
1fabb10cee56269ae150763f3f83b3e9305a11f42f50b3dcd58eeb8f7988f0bb
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

3 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