This release is a pre-release and may not be stable for production use.
half-orm-gen
⚠️ Alpha — not for production.
This project is under active development. APIs, generated code structure, and CLI commands may change without notice between releases. Do not use in production environments.
A halfORM extension that generates a Litestar REST API and a frontend backoffice (SvelteKit 5 or Angular) from your half-orm-dev project.
Installation
pip install half-orm-gen
API
half_orm gen api --litestar
litestar --app ho_api/app:application run --reload
Frontend backoffice
# SvelteKit 5
half_orm gen frontend --svelte
cd ho_frontend/svelte && npm install && npm run dev
# Angular
half_orm gen frontend --angular
cd ho_frontend/angular && npm install && npm start
Contributing
We are looking for contributors with expertise in:
- Angular — improve generated components, routing, and state management
- SvelteKit — improve generated stores, layouts, and page components
- Litestar — improve the dynamic runtime, middleware, and OpenAPI integration
See CONTRIBUTING.md for how to set up a development environment and the areas where help is most needed.
Documentation
Authentication
- Overview — authentication vs authorization, env vars, file map
- Local authentication —
identity.user,local_auth.py, HS256/RS256 signing - Federation — sharing identities across independently-deployed peers
Backend
- Authorization — JWT, roles,
/ho_access,/ho_setup - CRUD access — access model, verbs, field access,
@ho_api_filter,@tools.api_* - What goes in a relation class — class vs.
ho_api/custom/, the escape hatch
Frontend (shared)
- Generated frontend code — file layout, regenerated vs scaffolded
- ResourceSilo reference — full reactive API, one silo per app
- AuthService / AuthState reference — session, WS, simulation, route guards
Angular
- Access control — reactive buttons, FK auto-resolve, dynamic roles, simulation
Svelte
- Access control — reactive buttons, FK auto-resolve, dynamic roles
Internals — half-orm-gen's own implementation, for maintaining/extending the generator itself
- Litestar architecture — runtime, CRUD_ACCESS, role system, WebSocket
- Frontend architecture — silo pattern, access map, live updates
- Angular silo architecture — signals, data flow, deduplication
- Svelte silo architecture — runes, data flow, deduplication
See also
- half-orm — the PostgreSQL ORM at the core
- half-orm-dev — the development framework
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file half_orm_gen-1.0.0a5.tar.gz.
File metadata
- Download URL: half_orm_gen-1.0.0a5.tar.gz
- Upload date:
- Size: 559.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5074236b615bca12876be949cfbfd82c57b75f08cedd7e4217523b35df3b2841
|
|
| MD5 |
1c47f159b7a700a3ea3140860a89b5ea
|
|
| BLAKE2b-256 |
e9468a7eb34315eef2e79e68d1ba0c94cb8516d8dd6404f632733457b7040808
|
File details
Details for the file half_orm_gen-1.0.0a5-py3-none-any.whl.
File metadata
- Download URL: half_orm_gen-1.0.0a5-py3-none-any.whl
- Upload date:
- Size: 614.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70a97373341a49351b6e96973983a0210da60178d50743eab715e245fb212e79
|
|
| MD5 |
a334a6ed59b6f4f1a9878b003491f367
|
|
| BLAKE2b-256 |
96bbca08fadfa54573b3d54d9baad3ea1fecd41223880976180f9bc83122f4d2
|