Metadata-Version: 2.4
Name: virgostars-planetary
Version: 1.1.0
License-File: LICENSE
License-File: NOTICE
Summary: Planetary ephemeris API backed by the VirgoStars Rust core
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Repository, https://github.com/Cesare-ml/VirgoStars-Ephemeris

# VirgoStars Planetary for Python

This package is a thin Python adapter over the versioned `virgostars-planetary`
Rust core. It requires a separately supplied classic DE441 file and explicit
Julian Date UT1, ΔT = TT−UT1, ΔT source and uncertainty. The exact frame,
targets, rates and scientific limits are defined in the
[planetary v1 contract](https://github.com/Cesare-ml/VirgoStars-Ephemeris/blob/main/docs/PLANETARY_V1_CONTRACT.md).

The distribution name is `virgostars-planetary`; after it is published to
PyPI, install it with `pip install virgostars-planetary`. Until then a locally
built wheel can be installed with `pip install path/to/the-wheel.whl`.
Availability on PyPI is not implied by this document. The Windows wheel uses
the CPython stable ABI for Python 3.10 and later. Other wheel platforms must be
built and tested separately; the source distribution needs a Rust toolchain
and the build dependencies selected by pip. No ephemeris data are fetched by
the package and no lower-precision fallback is used.

```python
from virgostars_planetary import PLANETS, PlanetaryEngine

with PlanetaryEngine("/path/to/classic-de441.eph") as engine:
    positions = engine.calculate_ut1(
        PLANETS, jd_ut1=2451545.0, delta_t_seconds=64.0,
        uncertainty_seconds=2.0, source="example estimate",
    )
    print(positions["positions"][0]["ecliptic_longitude_deg"])
```

`PlanetaryError.code` distinguishes `INVALID_ARGUMENT`, `INVALID_TARGETS`,
`INVALID_TIME`, `INVALID_SOURCE`, `OUT_OF_RANGE`, `ORIENTATION`, `CALCULATION`,
`EPHEMERIS_FILE`, `ENGINE_CLOSED` and `UNKNOWN`; a failed target is included
when available. Calls return the whole requested set or raise, and `close()`
is idempotent. Results and compatibility rates use the same units, conventions
and limitations as the Rust and Node v1 interfaces. Type hints are included.

The source is licensed under CPAL-1.0 with the required VirgoStars attribution.
The distribution includes the notices of its locked Rust dependencies; those
dependencies and external kernels retain their own terms. No kernel is included.

The additive modern-epoch lunar, Chiron and explicit-astrometry star methods
use separate conventions documented in the [extended contract](https://github.com/Cesare-ml/VirgoStars-Ephemeris/blob/main/docs/PLANETARY_EXTENDED_V1.md).
They require caller-supplied data as described there; no SPK or catalog is bundled.

