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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xpwebapi-4.0.0.tar.gz | 80.2 kB | With provenance | Details for xpwebapi-4.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xpwebapi-4.0.0-py3-none-any.whl | Python 3 | none | any | Details for xpwebapi-4.0.0-py3-none-any.whl |
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 logRelease 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 logSecurity for xpwebapi 4.0.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for xpwebapi-4.0.0.tar.gz
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 logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.