Skip to main content

satchecker-client

A small Python client for the IAU CPS SatChecker service, which publishes nearest-epoch satellite orbital records — TLEs up to the 2026-07-12 archive handover, OMM element sets after it. No account or credentials are needed.

Unofficial. This is a third-party client written for the TABASCAL and tab-sim radio-astronomy packages. It is not published, endorsed, or maintained by the IAU CPS SatHub team, who develop the SatChecker service itself. The distribution name deliberately avoids satchecker so that name stays available to them.

What it does

  • Transport — both nearest-record endpoints and the catalogue name search, with normalised column sets and a typed error hierarchy that separates a per-satellite miss from a service outage or a rate limit.
  • Catalogue — which satellites a name search leaves in play at a given epoch, past epochs included.
  • Parsing — TLE line parsing including Alpha-5 catalogue numbers and checksums, plus the element range and finiteness checks both record kinds share. SatChecker's historical TLE archive has damaged lines: a stray backslash is repaired wherever the checksum confirms it, and lines with no checksum are accepted, with a warning, only where a caller allows it.
  • Kind dispatch — one place that knows how TLE and OMM records differ, so callers spanning the archive handover do not thread a format flag through their own code.
  • Caching — a validated, atomically-written per-NORAD JSON store, which also keeps catalogue search results so name-selected runs can work offline.
  • Batching — bounded-concurrency fetches that stop on the first sign the service itself is the problem rather than working through the rest of a list.
  • Resolving (optional) — one call that picks the record each satellite gets: source precedence per satellite, nearest-epoch selection, cache reuse held apart from the hard age ceiling, fallback to the other archive, and a result that tells an absent satellite from a failed request. Every rule is a required argument; it has no policy of its own.
  • Replay (optional) — writing the records a run used and reading them back exactly, as the same doubles and the same lines, from two named files and nothing else.

What it does not do

It takes no view on which record your observation should use. Source precedence, how stale a record may be before it is refused, and whether missing coverage is fatal are application policy and stay with the caller — including when the resolver above executes them, which is why it requires every one of them to be stated and defaults none.

Install

pip install satchecker-client

Full documentation, including the usage guide and API reference, is at satchecker-client.readthedocs.io.

Use

import satchecker_client as sc

# Identify your application to the service operators. Optional, but the service
# is a courtesy to the community and shared traffic is easier to reason about
# when it is attributable.
sc.set_client_identifier("my-app/1.0")

epoch_jd = 2460800.5
norad_ids = [25544, 48274]

# nearest_endpoints_for picks TLE, OMM, or both, based on where the epoch falls
# relative to the archive handover.
for label, fetch in sc.nearest_endpoints_for(epoch_jd):
    result = sc.fetch_nearest_batch(norad_ids, epoch_jd, fetch_nearest=fetch, endpoint=label)
    if result.outage is not None:
        raise result.outage          # the service, not this satellite
    for norad_id, err in result.errors.items():
        print(f"{norad_id}: {err}")  # this satellite, keep going
    print(result.records)

Records are pandas rows; ask record_kind, record_epoch_jd and record_elements about one rather than testing for columns yourself.

Caching a fetch for reuse across nearby epochs:

cache = sc.TextOrbitCache("~/.cache/my-app/orbits")
sc.store_or_warn(
    lambda: cache.store(norad_id, result.records),
    cache.path(norad_id),
    "nearest records",
)
known = cache.get(norad_id)

Development

pip install -e ".[test]"
pytest

The tests block outbound network access via an autouse fixture, so the suite runs offline and never touches the live service.

Licence

MIT — see LICENSE. Extracted from TABASCAL, which is GPL-3.0; this client is relicensed by its copyright holder so that a thin API client is not the thing that constrains what it can be built into.

Metadata

Release files for satchecker-client 0.2.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 satchecker-client 0.2.0
File Size Uploaded Provenance Actions
satchecker_client-0.2.0.tar.gz 146.2 kB With provenance Details for satchecker_client-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for satchecker-client 0.2.0
File Interpreter ABI Platform Actions
satchecker_client-0.2.0-py3-none-any.whl Python 3 none any Details for satchecker_client-0.2.0-py3-none-any.whl

Total release size: 222.9 kB

Release files / satchecker_client-0.2.0.tar.gz

Download URL satchecker_client-0.2.0.tar.gz
Size 146.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fd49ce6236d39d1bc100c909f4517db7bf92a17767aee8bc2a7bc0c684051420
BLAKE2b-256 checksum
How to use checksums
836a7769f03585dfdc3b9ecc595b9fddffbe9236b55d57f13b0c5586d997a977
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Sep 18, 2026.

Transparency log

Release files / satchecker_client-0.2.0-py3-none-any.whl

Download URL satchecker_client-0.2.0-py3-none-any.whl
Size 76.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f13e7b65e34cb3466f98374a463d252988641e6cf1c2fd870ffd4294fc348985
BLAKE2b-256 checksum
How to use checksums
d8ce38bf3a82de6e80c793b081ed99691e896a5f0825f7906fb64e296cc85a81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Sep 18, 2026.

Transparency log

Security for satchecker-client 0.2.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.

Select from 2 files

Attestation for satchecker_client-0.2.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 Sep 18, 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.

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