Skip to main content

mobs-ws

Official Python client for the MOBS /v1/ws/metar WebSocket (protocol 4).

The only runtime dependency is websockets. HTTP backfill uses urllib from the standard library. Snapshot and resume are opt-in. The client applies awc_confirmed frames last-wins per (icao, versions), handles station_late, station_recovered, and usage (use request_usage()), and ignores unknown frame types. Late alerts are kept as the latest frame per outage_id and cleared on station_recovered. More than one station_late can arrive in the same outage. A change-only filter and parsed delta are opt-in on a mid-session subscribe, not on the handshake.

The API key is never embedded. Pass it to the constructor, or set MOBS_TOKEN.

pip install mobs-ws
export MOBS_TOKEN=$MOBS_TOKEN
import asyncio
import os

from mobs_ws import MetarClient

async def main():
    client = MetarClient(
        airports=["KNYC", "KLGA"],
        token=os.environ["MOBS_TOKEN"],  # or token="YOUR_API_KEY"
        snapshot=True,
        resume=True,
        on_record=lambda rec: print(rec["icao"], rec["raw_metar"], rec.get("awc_confirmed")),
    )
    await client.run_forever()

asyncio.run(main())
python -m mobs_ws --airports KNYC,KLGA

MIT licensed. See LICENSE.

Metadata

Release files for mobs-ws 0.16.1

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

Source distribution (sdist)

Source distribution for mobs-ws 0.16.1
File Size Uploaded Provenance Actions
mobs_ws-0.16.1.tar.gz 9.9 kB With provenance Details for mobs_ws-0.16.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mobs-ws 0.16.1
File Interpreter ABI Platform Actions
mobs_ws-0.16.1-py3-none-any.whl Python 3 none any Details for mobs_ws-0.16.1-py3-none-any.whl

Total release size: 18.4 kB

Release files / mobs_ws-0.16.1.tar.gz

Download URL mobs_ws-0.16.1.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
adba1b8e4a5afa4f606fee6565a885fa6f39c40d68b4536ec0ed2db530a7e2ce
BLAKE2b-256 checksum
How to use checksums
7533515b3550e647e7e9769b19231e428fe7d36713ea1a6b8e492461a6f04ea3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 12, 2026.

Transparency log

Release files / mobs_ws-0.16.1-py3-none-any.whl

Download URL mobs_ws-0.16.1-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
690b648ca04bf09e8484bb115bd9c7855517dbd1aa4ed2c47479844e45f95f10
BLAKE2b-256 checksum
How to use checksums
1327a12583e804ef2825001bfa6147f03273c96b7885e1304f12eca4c84a87d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 12, 2026.

Transparency log

Security for mobs-ws 0.16.1

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.

Select from 2 files

Attestation for mobs_ws-0.16.1.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 Nov 12, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.16.1 This release

2 release files Full provenance

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