Metadata-Version: 2.5
Name: almasix-inertia
Version: 0.1.0
Summary: Server-side Inertia.js adapter for Almasix (official clients + SSR)
Project-URL: Homepage, https://github.com/almasix-dev/inertia
Project-URL: Repository, https://github.com/almasix-dev/inertia
Project-URL: Documentation, https://almasix-dev.github.io/almasix/inertia/
Project-URL: Issues, https://github.com/almasix-dev/inertia/issues
Author: Almasix Contributors
License-Expression: MIT
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: almasix>=0.6.0
Requires-Dist: httpx>=0.27.0
Provides-Extra: dev
Requires-Dist: httpx>=0.27.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.24.0; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: ruff==0.16.6; extra == 'dev'
Description-Content-Type: text/markdown

# almasix-inertia

Server-side [Inertia.js](https://inertiajs.com) adapter for
[Almasix](https://github.com/almasix-dev/almasix). Use the **official**
`@inertiajs/vue3`, `@inertiajs/react`, or `@inertiajs/svelte` clients — this
package does not fork them. SSR uses Inertia’s Node SSR protocol.

```bash
pip install 'almasix[inertia]'
# or
pip install almasix-inertia
```

```python
from inertia import Inertia, lazy, defer

def dashboard():
    return Inertia.render("Dashboard", {
        "user": user,
        "stats": lazy(lambda: expensive()),
        "notes": defer(lambda: load_notes()),
    })
```

Root Prism template ships `@inertia` / `@inertiaHead`. Prop helpers: `lazy`,
`optional`, `defer`, `once`, `merge`. Page `url` honors `APP_BASE_PATH`.
A Node SSR stub lives at `src/inertia/ssr/server.js`.

SPA kits register `InertiaServiceProvider` explicitly; the package also
advertises it via the `almasix.providers` entry-point group.

Framework docs: [Inertia](https://almasix-dev.github.io/almasix/inertia/).

## Develop

```bash
pip install -e ".[dev]"
ruff check src tests && ruff format --check src tests
pytest -q
```

## Release

Tag `vX.Y.Z` matching `project.version` and publish a GitHub Release. The
publish workflow uses PyPI Trusted Publishing (OIDC).

## License

[MIT](LICENSE)
