Project Selva
Documentation: https://livioribeiro.github.io/selva/
Selva is a Python ASGI web framework built on top of asgikit and inspired by Spring Boot, AspNet, FastAPI and Go's net/http.
It features a Dependency Injection system to help build robust and reliable applications.
Quick start
Install selva and uvicorn to run application:
pip install selva uvicorn[standard]
Create a module called application.py:
touch application.py
Create a handler:
from asgikit.requests import Request
from asgikit.responses import respond_text
from selva.web import get
@get
async def hello(request: Request):
await respond_text(request.response, "Hello, World!")
Run application with uvicorn (Selva will automatically load application.py):
uvicorn selva.run:app --reload
Release files for selva 0.19.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| selva-0.19.4.tar.gz | 55.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| selva-0.19.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 108.6 kB
Release files / selva-0.19.4.tar.gz
| Download URL | selva-0.19.4.tar.gz |
|---|---|
| Size | 55.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6e052247e879a6446df1d5acd2e0f6d1ebd686745eb3e20064bd7071b22d2cb
|
|
BLAKE2b-256 checksum How to use checksums |
153b2a26515e9fc2f6f1dd0f4609c17e74a7a37c4c35dc810ffb2152616a1309
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.22.3 CPython/3.13.2 Linux/6.8.0-1021-azure
|
Release files / selva-0.19.4-py3-none-any.whl
| Download URL | selva-0.19.4-py3-none-any.whl |
|---|---|
| Size | 53.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da4fa74edce1d818bcfd0a63ac392270faf9dc12d84ef628bb954a145d3a8ccf
|
|
BLAKE2b-256 checksum How to use checksums |
d8704b77b5353259a252ab4c74bd421c9288721eb4565da7a7603770af592d9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.22.3 CPython/3.13.2 Linux/6.8.0-1021-azure
|