Metadata-Version: 2.4
Name: tychonic
Version: 0.2.3rc4
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Rust
Classifier: Topic :: Scientific/Engineering :: Astronomy
Requires-Dist: numpy>=1.26
Requires-Dist: satkit==0.24.1
Requires-Dist: polars>=1 ; extra == 'polars'
Requires-Dist: pandas>=2.2 ; extra == 'tdm'
Requires-Dist: pytest>=8 ; extra == 'test'
Requires-Dist: ruff>=0.9 ; extra == 'test'
Requires-Dist: radon>=6 ; extra == 'test'
Provides-Extra: polars
Provides-Extra: tdm
Provides-Extra: test
License-File: LICENSE-MIT
License-File: LICENSE-APACHE
Summary: Orbit determination, sensor fusion, and satellite acquisition backed by Rust
License-Expression: MIT OR Apache-2.0
Requires-Python: >=3.11, <3.15
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://github.com/Tycho887/tychonic/blob/main/docs/python.md
Project-URL: Repository, https://github.com/Tycho887/tychonic

# Tychonic for Python

Tychonic 0.2.3rc4 is the Python release candidate for the Rust 0.10.1 kernels.
The public API accepts NumPy columns, UTC epochs, and calibrated uncertainties.
The extension performs propagation, fitting, filtering, smoothing, and acquisition planning in Rust.

From a checkout with a Rust toolchain and CPython 3.11–3.14, build and install
with `python -m pip install .`. The optional extras `.[polars]` and `.[tdm]`
enable column export and TDM generation for range rate, KSAT pointing angles,
and differential Doppler. Set `SATKIT_DATA` to a
provisioned Satkit data directory for offline numerical work.

```python
from tychonic import CalibratedLM, EnsembleFilter, ForceModel, GaussianPrior, ODProblem

forces = ForceModel()
fit = ODProblem(
    historical_job,
    initial_guess=seed,
    force_model=forces,
    profile=CalibratedLM(),
).solve(output_epoch=publication_epoch)

orbit = fit.estimate.orbital_marginal()
catalogue = EnsembleFilter.ekf(force_model=forces, retain_history=True)
catalogue.add_spacecraft(
    historical_job.spacecraft_id,
    fit.estimate,
    bias_prior_hz=GaussianPrior(0, 5),
    last_contributing_epoch=fit.last_contributing_epoch,
)
updates = catalogue.update(next_contact)
checkpoint = catalogue.checkpoint(next_contact.spacecraft_id)
```

The [Python guide](https://github.com/Tycho887/tychonic/blob/main/docs/python.md)
describes input conventions, solver profiles, checkpoints, and acquisition.
For signatures, arguments, and return values, see the
[`tychonic` API reference](https://github.com/Tycho887/tychonic/blob/main/docs/python-api.md).
The measurement helpers and adapters from the earlier 0.1.0 prototype have a
separate [`tychonic.low_level` reference](https://github.com/Tycho887/tychonic/blob/main/docs/python-low-level.md).

