← All packages

Orbits & astrodynamics

star-tle 0.1.0

A strict reader of two-line element sets

Public state: Released & Verified. The registry label is RELEASED. What the states mean →

Apache-2.0 Released & Verified single file

Summary

Reads every field of a NORAD two-line element set as printed (Alpha-5 included) and refuses malformed sets with a machine-readable reason; fields equal to python-sgp4 and Orekit within 6e-14, and stricter than both on malformed input.

Run in your browser

Edit the code and press Run (or Ctrl+Enter). Python runs in your browser with this package's published code. The first run downloads Python once (about 12 MB).

Runs in the browser: all 112 tests pass in the browser's Python (Pyodide 314.0.7, Python 3.14.2), measured on 20 October 2026.

Use it on your computer

No account and no GitHub needed. Download, then install with one command:

python -m pip install star_tle-0.1.0-py3-none-any.whl

In Python: import star_tle

Get started →

Cite it, and its bill of materials

For a paper, a report or a supplier file: the citation in two formats, and the software bill of materials (SBOM) in the two standard formats, with the fingerprint of the wheel.

@software{cavazzini_star_tle_0_1_0,
  author  = {Cavazzini, Andrea},
  title   = {{star-tle}: A strict reader of two-line element sets},
  version = {0.1.0},
  year    = {2026},
  url     = {https://andrea07072000.github.io/S.T.A.R.-/software/star_tle/},
  note    = {Apache-2.0. Source: https://github.com/Andrea07072000/S.T.A.R.-, commit dc09f61d}
}

For developers

Install directly from the public repository:

python -m pip install "star-tle @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_tle"

README · tests · evidence (GitHub)

Technical sheet

Package
star-tle
Import name
star_tle
Version
0.1.0
Licence
Apache-2.0
Python
>=3.9
Dependencies
none (standard library only)
Capability
star.orbit.tle-reader
Maturity
Released & Verified (RELEASED)
Published commit
dc09f61d

Requirements

  • R1 parse(line1, line2): catalogue number (Alpha-5 included), classification, international designator, epoch (four-digit year with the 1957-2056 window, day of year), half the first derivative and a sixth of the second derivative of the mean motion, B*, ephemeris type, element number, inclination, right ascension of the node, eccentricity, argument of perigee, mean anomaly, mean motion, revolution number. Each number is the nearest double of the printed text.
  • R2 checksum(line): digits count as themselves, '-' counts 1, everything else 0, modulo 10. epoch_utc(tle).
  • R3 Measured on the 29 well-formed sets of the SGP4 verification catalogue: all 14 numeric fields equal to python-sgp4 and to Orekit within 6e-14 after unit conversion.
  • R4 A malformed set raises TleError (a ValueError) whose reason is one of: length, charset, line_number, checksum, satnum_mismatch, field:<name>, range:<name>. Nothing is repaired. Measured on 174 malformed sets in six kinds: star_tle refuses 147, Orekit 145, python-sgp4 none (it is tolerant by design). The two extra refusals are sets with a correct checksum whose node or perigee angle is 360 degrees or more.

Limits (what is not claimed)

A reader, not a propagator: the elements are SGP4 mean elements in the TEME frame and mean nothing without SGP4. No three-line sets (name line), no OMM/XML/JSON, no writer. The strictness is a choice: a set that another tool accepts may be refused here, with the reason.

Release gate

Computed by the registry from the result files, with the same function that decides RELEASED.

Mutation score, latest measure of each module (needs at least 0.850)
  • star_tle.py 0.890 (2026-10-06)
Independent implementations written by others (needs 2)
Orekit TLE (Java), python-sgp4 Satrec.twoline2rv
Also compared with, not counted
published values: two-line element set format with its published worked example
Result
Released & Verified

Evidence in the registry

CheckStatusRecordedWhat was observed
Clean install from the release tagVERIFIED2026-10-06pytest outside the tree: 112 passed in 0.67s
Unit testsVERIFIED2026-10-06112 passed in 12.45s
ReviewVERIFIED2026-10-06Requirements, interface, units, data provenance, dependency surface and failure behaviour reviewed
ReviewVERIFIED2026-10-06Re-running the cross-check gives a byte-identical evidence file
Reference valueVERIFIED2026-10-06every field and both checksums of the worked example reproduced exactly; 29/29 well-formed sets of the catalogue read with every field equal to the printed text (suite: 112 passed in 12.45s)
Cross-check with independent librariesVERIFIED2026-10-06star_tle reads every field as two independent readers do and refuses malformed sets that they accept
BenchmarkVERIFIED2026-10-06accepted / refused by kind of malformation: checksum: star_tle 0/29, orekit 0/29, sgp4 29/0; field_digit: star_tle 0/29, orekit 0/29, sgp4 29/0; line_number: star_tle 0/29, orekit 0/29, sgp4 29/0; resummed: star_tle 27/2, orekit 29/0, sgp4 29/0; satnum_mismatch: star_tle 0/29, orekit 0/29, sgp4 29/0; truncated: star_tle 0/29, orekit 0/29, sgp4 29/0

Fingerprints (SHA-256)

star_tle-0.1.0-py3-none-any.whla58049035f1d3e42c7415b58531ac189dd76add260d76231f4b34fa231a295eb
star_tle.py7690c068e88e04a371546290d34698e41953b80f6e7152ab57ba7e1bac2827c7
star_tle-0.1.0-source.zip73636fd0ba2ca96fd571d9b1ae6c549b82ede5ae36b7a71bdbd11a51d7e2713c

results