pyasyncore
Make asyncore available for Python 3.12 onwards
What it is and what it does
pyasyncore is a compatibility shim that restores the asyncore module to Python 3.12 and later, where it was removed from the standard library. The module is taken directly from the Python source tree at its last meaningful update, essentially equivalent to the version bundled with Python 3.9, and provides a drop-in replacement for code that still uses the import. It carries no runtime dependencies and is designed to be a minimal bridge for legacy codebases.
The package is explicitly not intended for new projects. It exists solely to keep existing code running without major refactoring. Maintenance is frozen: the module code will not be updated, only packaging infrastructure will be maintained. The package was first released on 2022-06-29 and the latest release is 2026-01-05.
Use it for:
- Run legacy code on Python 3.12+ without immediately rewriting the module-based networking logic.
- Maintain compatibility in applications where the module is deeply embedded and migration is deferred.
- Allow third-party libraries that depend on this module to work under Python 3.12 or later.
- Suppress deprecation warnings in Python 3.10–3.11 by combining this package with the warnings module.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides the asyncore module for Python 3.12 and later, allowing existing code to run without refactoring after the module was removed from the standard library.
Yes, if you have existing code that imports this module and you need to run it on Python 3.12+. Install friction is negligible and there are no known vulnerabilities. However, this is a bridge, not a long-term solution—plan to migrate eventually. Do not use for new projects.
Install
pyasyncore on PyPI
pip
pip install pyasyncoreuv
uv add pyasyncorepoetry
poetry add pyasyncoreInstalling pyasyncore
Before you install
Low friction to install. Maintenance is minimal by design—the module code itself is frozen and will not be updated, only packaging changes are intended. Last release was 221 days ago.
License in practice
Licensed under Python Software Foundation License Version 2, a permissive license. No restrictions on use or redistribution for existing code relying on this package.
Quickstart
pip install pyasyncore
import asyncore
# Use the module as you would in Python versions prior to 3.12
Intended for Python 3.12 or later; on earlier versions the standard library version is used instead and deprecation warnings are not suppressed by this package.
Verify before relying
- Whether the frozen module version matches all behavior expectations for Python 3.12+ environments.
- Performance characteristics for migration planning purposes.
- Compatibility with third-party code that depends on this module.
Package facts
| License | Python Software Foundation License Version 2 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 221 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 916,427/month — #4,731 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyasyncore-1.0.5-py3-none-any.whl
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
pyasynchatProvides the asynchat module for Python 3.12…
permissive · top 5,000 on PyPI
asyncore-wsgiA single-threaded asynchronous WSGI server with…
permissive · top 15,000 on PyPI
importlibProvides importlib.import_module() for Python…
unclear · top 15,000 on PyPI
contextlib2contextlib2 backports the Python standard…
permissive · top 5,000 on PyPI
zipfile36Provides a backport of Python 3.6's zipfile…
permissive · top 5,000 on PyPI
packaging-legacyProvides access to deprecated Python packaging…
permissive · top 15,000 on PyPI
asyncioThis package is an obsolete backport of…
permissive · top 1,000 on PyPI
legacy-cgiProvides the cgi and cgitb modules removed from…
permissive · top 5,000 on PyPI
standard-chunkProvides the chunk module, a removed Python…
permissive · top 5,000 on PyPI
pydantic-compatProvides compatibility mixins and adapters to…
permissive · top 15,000 on PyPI