Python Integration
Use the direct in-process Python binding included in the ait-native PyPI distribution.
Audience: Python integrators
Package boundary#
The PyPI project is ait-native. Its platform wheel includes the admitted native commands and the direct in-process Python binding from the same RC.5 compatibility family.
python -m pip install ait-native==1.0.0rc5The binding does not download a runtime, launch an ait subprocess as its API transport, or provide a separate workflow implementation.
Direct API#
from ait_python import AgentClient, NativeRuntime
runtime = NativeRuntime()
print(runtime.binding_info())
agent = AgentClient(runtime)
print(agent.capabilities().supported_transports)NativeRuntime exposes versioned native exports in process. AgentClient provides typed access to supported agent capabilities and worker operations.
Repository workflow#
Installing the Python package does not initialize a repository. Run ait init once from the target repository, then let the coding agent follow the generated instructions.
ait init
ait status --jsonPython projects do not receive a different AIT workflow. Test, lint, build, and packaging commands remain repository-authored inputs.
Version check#
Read binding metadata before combining it with another component. An independently rebuilt binding or mismatched core is not an admitted RC.5 family merely because its Python package imports.
See Distribution and Release for the family and license boundaries.