Add kaya-session package for server-side HTTP session management

This commit is contained in:
2026-07-23 22:09:55 +08:00
parent 4ce95d8365
commit 97a81a9e41
16 changed files with 778 additions and 5 deletions
+5 -1
View File
@@ -8,6 +8,7 @@ This repository is a monorepo for the Kaya framework. The code is split into ind
- **kaya-core** — core routing, HTTP/WS abstractions, and ASGI adapter (`packages/kaya-core/`)
- **kaya-rsgi** — RSGI/Granian integration (`packages/kaya-rsgi/`)
- **kaya-session** — server-side HTTP session management (`packages/kaya-session/`)
Additional `kaya-*` packages can be added as new directories under `packages/`.
@@ -22,7 +23,7 @@ pip install --index-url https://gitea.woggioni.net/api/packages/woggioni/pypi/si
Install the packages in development mode:
```bash
pip install -e packages/kaya-core -e packages/kaya-rsgi
pip install -e packages/kaya-core -e packages/kaya-rsgi -e packages/kaya-session
```
Run the example:
@@ -36,6 +37,7 @@ python example/hello.py
```bash
python -m unittest discover -s packages/kaya-core/tests
python -m unittest discover -s packages/kaya-rsgi/tests
python -m unittest discover -s packages/kaya-session/tests
```
## Static analysis
@@ -43,6 +45,7 @@ python -m unittest discover -s packages/kaya-rsgi/tests
```bash
mypy -p kaya.core
mypy -p kaya.rsgi
mypy -p kaya.session
```
## Building packages
@@ -50,4 +53,5 @@ mypy -p kaya.rsgi
```bash
python -m build packages/kaya-core
python -m build packages/kaya-rsgi
python -m build packages/kaya-session
```