Skip to main content

xpwebapi

xpwebapi is a Python client and development toolkit for the Laminar Research X-Plane Web API, including REST, async REST, WebSocket, UDP, beacon discovery, and a strictly read-only capture worker.

This is an independently maintained fork of devleaks/xplane-webapi. TV Productions thanks Pierre Mareschal and devleaks for creating the original library. The upstream source reported version 3.5.0 when this fork's extension work began; TV Productions maintains releases beginning with 4.0.0.

This project is not endorsed by or affiliated with the upstream maintainer or Laminar Research. X-Plane is a trademark of Laminar Research.

Installation

Requires Python 3.12 or 3.13.

pip install xpwebapi

Quick start

import xpwebapi

with xpwebapi.rest_api(api_version="v2") as api:
    clock = api.dataref("sim/cockpit2/clock_timer/local_time_seconds")
    print(api.dataref_value(clock))

Read-only capture worker

The installed xpwebapi-capture command records a bounded, versioned stream of configured X-Plane DataRefs without exposing command execution or DataRef writes. WebSocket is the primary capture transport. UDP is the diagnostic/fallback capture transport.

See the capture guide and capture protocol reference.

Documentation

Full documentation is available at https://tvproductions.github.io/xplane-webapi/.

Development

git clone https://github.com/tvproductions/xplane-webapi.git
cd xplane-webapi
uv sync
uv run python -m unittest discover -v

License

MIT. See LICENSE.

Metadata

Release files for xpwebapi 4.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xpwebapi 4.0.0
File Size Uploaded
xpwebapi-4.0.0.tar.gz 80.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xpwebapi 4.0.0
File Interpreter ABI Platform
xpwebapi-4.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 172.5 kB

Release files / xpwebapi-4.0.0.tar.gz

Download URL xpwebapi-4.0.0.tar.gz
Size 80.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ff9ae7827fc8d7b7e6c8e2bdbf80b0ab0d954f1fa737b883e0b8ac28fbb61196
BLAKE2b-256 checksum
How to use checksums
407ba2ac9d34f0753329d372b983fe0eceb841cc9ed4722b91c05ceb748e5679
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 26, 2026.

Transparency log

Release files / xpwebapi-4.0.0-py3-none-any.whl

Download URL xpwebapi-4.0.0-py3-none-any.whl
Size 92.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c53f3ae06bfdc93bffd723569f4c52d835f3ad936205493546764e540f42ba36
BLAKE2b-256 checksum
How to use checksums
0c3bee5f600e6032bda70f0d360a8ba8d35eb3013f16f8c09f59817ad771543d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 26, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

4.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page