skillfed

pyasyncore

Make asyncore available for Python 3.12 onwards

pyasyncore v1.0.5 916.4K downloads/30d#4,731 on PyPI6
Permissive license Python Software Foundation License Version 2 AGING released

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 pyasyncore

uv

uv add pyasyncore

poetry

poetry add pyasyncore

Installing 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

Development Status :: 5 - Production/StableLicense :: OSI Approved :: Python Software Foundation LicenseProgramming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries

Tags

asyncore python 3.12asyncore backportlegacy asyncore moduleasyncore compatibilitypython 3.12 asyncorestandard library backportdeprecated module support
legacy-compatibilitybackport

More Libraries packages