Skip to main content

Module python

Module python 

Source
Available on crate feature python only.
Expand description

§Python Bindings

Exposes the arc-agi-rs library to Python via pyo3. Every type and function is gated behind the python cargo feature.

The bindings provide synchronous wrappers around the async Rust API by driving a temporary, single-threaded tokio runtime inside each call, making the API feel native and straightforward for Python callers.

§See Also

Structs§

PyArcAgiClient
An HTTP client for interacting with the ARC-AGI-3 REST API.
PyEnvironmentInfo
Metadata for a single ARC-AGI-3 game environment.
PyEnvironmentScore
A per-game score entry inside an :class:EnvironmentScorecard.
PyEnvironmentScorecard
The full scored scorecard returned by scorecard endpoints.
PyFrameData
The current state of a game run returned by reset and step calls.

Functions§

register_python_module
Register all Python-exposed types and functions into the arc_agi_rs module.