Registry / serialization / abi3info

abi3info

JSON →
library2025.11.29pypypi✓ verified 79d ago

abi3info is a Python library that provides programmatic access to information about CPython's stable ABI (Application Binary Interface), commonly referred to as 'abi3'. This includes details on types, functions, and macros available for creating compatible C extension modules. The current version is 2025.11.29, and it has a high release cadence, often driven by automated updates to its internal ABI data.

pip install abi3info
INSTALL
IMPORT
SIG · ABI3INFO
A
abi3info
serializationpythonv2025.11.29
Install
1.6s avg
Import
871ms
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2025.11.29 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.864s · 18.2MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 1.6s · import 0.877s · 19MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DATAS
from abi3info import DATAS
from abi3info import get_abi_info
Data
from abi3info import Data
from abi3info import get_abi_info
Symbol
from abi3info import Symbol
from abi3info import get_abi_info

This quickstart demonstrates how to fetch ABI information for a specific Python version and for the currently running interpreter. It shows how to access members and their signatures from the returned AbiInfo object.

import abi3info # Get ABI information for a specific Python version (e.g., 3.11) python_version = '3.11' try: abi = abi3info.get_abi_info(python_version) print(f"ABI information for Python {python_version}:") print(f" Version: {abi.version}") print(f" First ABI version: {abi.first_abi_version}") # Access a specific member, e.g., PyUnicode_FromWideChar if 'PyUnicode_FromWideChar' in abi.members: member = abi.members['PyUnicode_FromWideChar'] print(f" PyUnicode_FromWideChar signature: {member.signature}") else: print(f" PyUnicode_FromWideChar not found in ABI for {python_version}") # Get ABI information for the current Python interpreter current_abi = abi3info.get_current_abi_info() print(f"\nABI information for current Python ({current_abi.version}):") print(f" First ABI version: {current_abi.first_abi_version}") except ValueError as e: print(f"Error: {e}. Check available Python versions with abi3info.SUPPORTED_VERSIONS.")
Debug
Known issues
gotchaThe ABI data provided by abi3info (e.g., `stable_abi.toml`) is frequently updated. This means the specific set of available members or their exact signatures for a given Python target version can change between different versions of the `abi3info` library.
fix
Always use the latest version of `abi3info` if you require the most up-to-date ABI data. Be aware that relying on specific ABI signatures in your code might require `abi3info` updates.
affects: All versions
breakingThe `abi3info` library requires Python 3.10 or newer. Attempting to install or run it on older Python versions will result in an installation error or runtime syntax errors.
fix
Ensure your environment uses Python 3.10 or a newer version (e.g., `python3.10 -m pip install abi3info`).
affects: <3.10
gotchaThe `abi3` refers to a stable subset of the CPython API. It does not include all CPython internal functions. Attempting to query information for non-abi3 functions or non-existent members will result in KeyError or AttributeError.
fix
Refer to the `members` dictionary on the `AbiInfo` object to see available entries. Understand the scope of `abi3` before querying specific symbols.
affects: All versions
Upgrade
Version history
2025.11.29latest on PyPI · released Nov 29, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
48 hits · last 30 days
node
40
OpenAI (training)
1
Resources
abi3info — pip install abi3info · libregistry