Registry / devops / antsibull-core

antsibull-core

JSON →
library3.5.0pypypi✓ verified 83d ago

antsibull-core is a foundational Python library providing core tools for building various components of the Ansible Distribution. It adheres to semantic versioning (1.0.0+), aiming for backward compatibility within major release cycles, though exceptions may occur for critical security fixes. The library is actively maintained, with the current development version being 3.x.y.

pip install antsibull-core
INSTALL
IMPORT
SIG · ANTSIBULL-CORE
A
antsibull-core
devopspythonv3.5.0
Install
6.6s avg
Import
Disk
42MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v3.5.0 · 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.920 runs
installs and imports cleanly · install 0.0s · import 0.000s · 41.7MB
glibc
py 3.103.920 runs
installs and imports cleanly · install 6.6s · import 0.000s · 44MB
42MB installed
● package 42MB
Code
Verified usage

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

annotations
from antsibull_core import annotations
from antsibull_core.context import LibContext

Initialize basic contexts provided by antsibull-core. These contexts are typically used by other antsibull projects to manage application state, configuration, and interactions with the underlying Ansible environment.

from antsibull_core.context import LibContext, AppContext # Example of initializing a library context (often used internally by other antsibull tools) lib_ctx = LibContext() print(f"Initialized LibContext: {lib_ctx}") # Example of initializing an application context (often used internally by other antsibull tools) app_ctx = AppContext(lib_context=lib_ctx, cwd="/tmp") print(f"Initialized AppContext: {app_ctx}")
Debug
Known issues
breakingantsibull-core version 2.x.y dropped support for Python 3.6, 3.7, and 3.8. Version 3.x.y explicitly requires Python >= 3.9.
fix
Ensure your Python environment is 3.9 or newer for antsibull-core 3.x.y. For antsibull-core 2.x.y, use Python 3.9 or later. Upgrade your Python interpreter if necessary.
affects: <2.0.0, 3.0.0+
breakingantsibull-core version 3.x.y has dropped support for Pydantic v1 and now exclusively uses Pydantic v2. Code relying on Pydantic v1 APIs exposed by antsibull-core may break.
fix
If your project integrates deeply with antsibull-core's Pydantic models or depends on specific Pydantic v1 behaviors, you must migrate your code to be compatible with Pydantic v2. Review the Pydantic v2 migration guide.
affects: 3.0.0+
gotchaWhile antsibull-core aims for no backward-incompatible changes within a major release, exceptions might be made for severe security fixes. Always review changelogs when updating to new minor or patch versions.
fix
Monitor release notes and changelogs, especially for critical updates, to be aware of any potentially unexpected changes. Pinning major versions in your dependency management (`antsibull-core~=3.0`) is recommended.
affects: 1.0.0+
Upgrade
Version history
3.5.0latest on PyPI · released Oct 28, 2025
Audit
Dependencies
pythonrequiredRequires Python 3.9 or newer.
antsibull-fileutilsrequiredCore functionality depends on antsibull-fileutils for file-related utilities.
pydanticrequiredVersion 3.x.y specifically requires Pydantic v2. Earlier versions might use Pydantic v1.
Agent activity
32 hits · last 30 days
node
30
OpenAI (training)
1
Resources
antsibull-core — pip install antsibull-core · libregistry