Metadata-Version: 2.3
Name: astrojax
Version: 0.2.0
Summary: Add your description here
Author: Duncan Eddy
Author-email: Duncan Eddy <duncan.eddy@gmail.com>
Requires-Dist: jax>=0.9.0
Requires-Dist: matplotlib ; extra == 'extras'
Requires-Dist: plotly ; extra == 'extras'
Requires-Dist: jupyter ; extra == 'extras'
Requires-Dist: scienceplots ; extra == 'extras'
Requires-Python: >=3.11
Provides-Extra: extras
Description-Content-Type: text/markdown

# astrojax

[![PyPI](https://img.shields.io/pypi/v/astrojax)](https://pypi.org/project/astrojax/)
[![Documentation](https://img.shields.io/badge/docs-GitHub%20Pages-blue)](https://duncaneddy.github.io/astrojax/)
[![Coverage Status](https://coveralls.io/repos/github/duncaneddy/astrojax/badge.svg?branch=main)](https://coveralls.io/github/duncaneddy/astrojax?branch=main)

---

Astrodynamics written in JAX for massively parallel simulation.

The goal of this project is to provide a high-performance astrodynamics library that can be used for research and education. The library is built on top of JAX, which allows for automatic differentiation and GPU/TPU acceleration. The goal is to provide a proof-of-concept implementation of common astrodynamics algorithms that can be used as a starting point for further development. It is _not_ intended to be a full-featured, high-accuracy astrodynamics library (at least not yet).

## Install

```bash
pip install astrojax
# or
uv add astrojax
```

## Quickstart

This project uses [`just`](https://github.com/casey/just) as a command runner and [`uv`](https://docs.astral.sh/uv/) for Python package management.

```bash
# Install just (macOS)
brew install just

# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# Clone and install everything (dev deps + extras)
just install
```

## Development

Every recipe has an equivalent raw command you can run directly.

| Task | `just` recipe | Raw command |
|------|---------------|-------------|
| Install dev deps + extras | `just install` | `uv sync --dev --extra extras` |
| Run tests | `just test` | `uv run pytest tests/ -v` |
| Test with coverage | `just test-cov` | `uv run pytest --cov=astrojax --cov-report=term-missing` |
| Format code | `just fmt` | `uv run ruff format` |
| Lint (auto-fix) | `just lint` | `uv run ruff check --fix` |
| Type check | `just typecheck` | `uvx ty check` |
| All quality checks | `just check` | Runs fmt + lint + typecheck |
| Build docs | `just docs-build` | `uv run zensical build --clean` |
| Serve docs | `just docs-serve` | `uv run zensical serve --clean` |

## License

The code in this repository is licensed under the MIT License. See [LICENSE](LICENSE) for details.
