star-kepler 0.1.1
Two-body propagation with universal variables
Public state: Released & Verified. The registry label is RELEASED. What the states mean →
Apache-2.0 Released & Verified single file
Summary
Kepler propagation with universal variables and Stumpff functions: no orbit-geometry singularity (circular, equatorial, elliptic, hyperbolic), whole periods removed, bracketed root with bounded iterations, explicit refusals.
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 95 tests pass in the browser's Python (Pyodide 314.0.7, Python 3.14.2), measured on 20 October 2026. A browser has no threads, so the time limits of its contract tests are not checked there; their results are.
Use it on your computer
No account and no GitHub needed. Download, then install with one command:
- Install file · star_kepler-0.1.1-py3-none-any.whl 4 kB
- Single file — copy it alongside your code · star_kepler.py 7 kB
- Source code (.zip) 19 kB
python -m pip install star_kepler-0.1.1-py3-none-any.whlIn Python: import star_kepler
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_kepler_0_1_1,
author = {Cavazzini, Andrea},
title = {{star-kepler}: Two-body propagation with universal variables},
version = {0.1.1},
year = {2026},
url = {https://andrea07072000.github.io/S.T.A.R.-/software/star_kepler/},
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-kepler @ git+https://github.com/Andrea07072000/S.T.A.R.-.git@dc09f61dcee098d518f070d6a23a8815defc1109#subdirectory=packages/star_kepler"
Technical sheet
Requirements
- R1
propagatereturns position and velocity for elliptic and hyperbolic orbits, any consistent units; it reproduces Vallado Example 2-4 within the printed precision (1e-3 km, 1e-5 km/s). - R2 No orbit-geometry singularity: circular and equatorial orbits are propagated like any other; whole periods are removed on closed orbits, so a thousand revolutions return the initial state to 1e-4 km.
- R3 Accuracy: on 450 known orbits (eccentricity 0 to 0.95, 0 and 10 revolutions) the error is below 1e-6 km (1 mm) and 1e-8 km/s; energy and angular momentum are conserved to 1e-9 relative.
- R4 Failure behaviour: non-finite input, zero position,
mu <= 0, wrong vector length and rectilinear motion raiseValueErrorbefore any iteration; an exhausted iteration budget raisesRuntimeError; the call cannot loop forever (bracketed root, bounded bisection).
Limits (what is not claimed)
Two-body motion only (no perturbations). Parabolic orbits use the same series but are not separately validated. Rectilinear orbits are refused. No flight heritage.
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_kepler.py 0.871 (2026-10-06)
- Independent implementations written by others (needs 2)
- hapsira farnocchia (Python/numba), NAIF CSPICE prop2b (C from Fortran), Orekit KeplerianPropagator (Java)
- Also compared with, not counted
- published values: Vallado Example 2-4 (published); S.T.A.R.'s own re-derivations: closed-form orbit truth (perifocal equations, no propagator), fixed-step RK4 integration of the two-body equation (different method)
- Result
- Released & Verified
Evidence in the registry
| Check | Status | Recorded | What was observed |
|---|---|---|---|
| Clean install from the release tag | VERIFIED | 2026-10-08 | pytest outside the tree: 95 passed in 0.97s |
| Unit tests | VERIFIED | 2026-10-06 | 59 passed in 1.03s |
| Review | VERIFIED | 2026-10-06 | Requirements, interface, units, data provenance, dependency surface and failure behaviour reviewed |
| Reference value | VERIFIED | 2026-10-06 | position error 4.7e-5 km and velocity error 2.5e-7 km/s against the printed values; 450 closed-form orbits to 4.7e-7 km (suite: 59 passed in 1.03s) |
| Review | VERIFIED | 2026-10-06 | star_kepler is deterministic: the same inputs give the same outputs on re-run; across operating systems the outputs differ only at the level of the math library |
| Clean install from the release tag | VERIFIED | 2026-10-06 | pytest outside the tree: 59 passed in 0.96s |
| Cross-check with independent libraries | VERIFIED | 2026-10-06 | star_kepler agrees with a numerical integration of the equations of motion, elliptic and hyperbolic |
| Mutation testing | VERIFIED | 2026-10-06 | 276/317 = 0.8707 (the first measure was 0.7572 on 262 killed; it exposed three defects, fixed before this one) |
| Cross-check with independent libraries | VERIFIED | 2026-10-06 | star_kepler agrees with independent propagators and with the closed-form truth on 450 known orbits |
| Benchmark | VERIFIED | 2026-10-06 | max position error km: hapsira_farnocchia 4.57e-07, hapsira_vallado 4.31e-05, orekit 5.01e-07, spice 5.10e-07, star_elements 4.41e-04, star_kepler 4.68e-07 |
Fingerprints (SHA-256)
| star_kepler-0.1.1-py3-none-any.whl | f55c30ab1c90f9802542ea566207c713ee57234cffbd931a9f37990009a4c5b0 |
| star_kepler.py | e28bacf7f0d3e09a31d6e01fc45472f4421c78bf76f9e30c8587d72a504cb7fa |
| star_kepler-0.1.1-source.zip | 6409709ebc41289bd16d2ba69e988b051153ed63412f16381fa14c488f2311a0 |
