> For the complete documentation index, see [llms.txt](https://yall.yassrobotics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yall.yassrobotics.com/api-reference/python-reference/python-reference.md).

# Overview

**Package:** `yall`

YALL ships a Python port with the same class names and most of the same method names as the Java library, built on `ntcore` directly (no WPILib Python `Limelight`-specific dependency beyond networktables/geometry). If you know the [Java API](https://yall.yassrobotics.com/api-reference/java-reference/java-reference.md), the Python API will look immediately familiar.

```python
from yall.limelight import Limelight, EstimationMode
from yall.networktables.geometry import Orientation3d, AngularVelocity3d

limelight = Limelight("limelight")
limelight.getSettings().withLimelightLEDMode(LEDMode.PipelineControl).withCameraToRobot(Pose3d())
```

## Module Layout

| Module                        | Contents                                                                                                                                                                                     |
| ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `yall.limelight`              | `Limelight`, `LimelightSettings`, `LimelightData`, `LimelightPipelineData`, `LimelightTargetData`, `LimelightResults`, `LimelightPoseEstimator`, `PoseEstimate`, `BotPose`, `EstimationMode` |
| `yall.results`                | `RawFiducial`, `RawDetection`                                                                                                                                                                |
| `yall.networktables.geometry` | `Orientation3d`, `AngularVelocity3d`                                                                                                                                                         |
| `yall.networktables.targets`  | `RetroreflectiveTape`, `Barcode`, `AprilTagFiducial`, `NeuralClassifier`, `NeuralDetector`                                                                                                   |
| `yall.networktables.util`     | Array/pose conversion helpers, equivalent to Java's `LimelightUtils`                                                                                                                         |
| `yall.deprecated`             | Legacy compatibility shims                                                                                                                                                                   |

## Differences from the Java API

The Python port is a direct translation of an earlier revision of the Java library and has not yet caught up to every 2026 addition. Known differences:

* `createPoseEstimator(megatag2: bool)` takes a `bool` instead of Java's `EstimationMode` enum.
* `LimelightSettings.withCameraToRobot(pose)` is the Python equivalent of Java's `withCameraOffset(Pose3d)`.
* `withArilTagIdFilter(...)` — note the typo carried over from an earlier API revision; this is the equivalent of Java's `withAprilTagIdFilter`.
* No Python equivalents yet for `IMUResults`, `HardwareReport`, `HailoStats`, `RewindStats`, or rewind-capture / USB port-forwarding helpers.

For the full method-by-method reference, use the [Java reference](https://yall.yassrobotics.com/api-reference/java-reference/java-reference.md) as the source of truth — field names and behavior are otherwise identical — and cross-check against `yall/python/yall/` in the YALL repository for the exact Python signature.

## See Also

* [Java API](https://yall.yassrobotics.com/api-reference/java-reference/java-reference.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://yall.yassrobotics.com/api-reference/python-reference/python-reference.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
