Metadata-Version: 2.4
Name: vs-ephemeris
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 new distribution name is `vs-ephemeris`; after publication, install it with
`pip install vs-ephemeris`. The Python import remains `virgostars_planetary`.
The earlier 1.1.0 release remains available separately as
`virgostars-planetary`; this rename does not alter that published release.
Availability of `vs-ephemeris` on PyPI is not implied by this document. A
locally built wheel can be installed with `pip install path/to/the-wheel.whl`.
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).
Chiron requires a caller-supplied SPK. The package includes a separately
attributed IAU/HIP2 subset of 411 searchable names, of which 289 have
astrometry (280 strict and nine previously reviewed traditional solutions).
The other 122 are name-only. No radial velocities
are included: the caller must reject missing values or explicitly assume zero.
The assumption may introduce epoch-dependent errors. Source, rights and
validation limits are described in the bundled `data/README.md`.

```python
from virgostars_planetary import StarCatalog
stars = StarCatalog.builtin()
print(stars.lookup("Regulus"))
```

