Metadata-Version: 2.4
Name: half_orm_gen
Version: 1.0.0a4
Summary: API and frontend backoffice generation for halfORM projects.
Author-email: Joël Maïzi <joel.maizi@collorg.org>
License-Expression: GPL-3.0-or-later
Project-URL: Homepage, https://github.com/half-orm/half-orm-gen
Keywords: litestar,half-orm,rest,api,postgresql,code-generation,asgi,orm,svelte,angular
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: AUTHORS
Requires-Dist: half-orm<1.1.0,>=1.0.0rc16
Requires-Dist: half-orm-dev<1.1.0,>=1.0.0a32
Requires-Dist: litestar>=2.0.0
Dynamic: license-file

# half-orm-gen

A [halfORM](https://github.com/half-orm/half-orm) extension that generates a
[Litestar](https://litestar.dev) or [FastAPI](https://fastapi.tiangolo.com) REST API
**and** a frontend backoffice ([SvelteKit 5](https://svelte.dev) or
[Angular](https://angular.dev)) from your halfORM project.

## Installation

```bash
pip install half-orm-gen
```

---

## API

```bash
# Litestar
half_orm gen api --litestar
litestar --app api.app:application run --reload

# FastAPI
half_orm gen api --fastapi
uvicorn api.app:application --reload
```

---

## Frontend backoffice

```bash
# SvelteKit 5
half_orm gen frontend --svelte
cd frontend/svelte && npm install && npm run dev

# Angular
half_orm gen frontend --angular
cd frontend/angular && npm install && npm start
```

---

## See also

- [half-orm](https://github.com/half-orm/half-orm) — the PostgreSQL ORM at the core
- [half-orm-dev](https://github.com/half-orm/half-orm-dev) — the development framework
