Skip to main content

ASGI Web Framework with Dependency Injection

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

selva-0.19.4.tar.gz (55.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

selva-0.19.4-py3-none-any.whl (53.5 kB view details)

Uploaded Python 3

File details

Details for the file selva-0.19.4.tar.gz.

File metadata

  • Download URL: selva-0.19.4.tar.gz
  • Upload date:
  • Size: 55.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.22.3 CPython/3.13.2 Linux/6.8.0-1021-azure

File hashes

Hashes for selva-0.19.4.tar.gz
Algorithm Hash digest
SHA256 c6e052247e879a6446df1d5acd2e0f6d1ebd686745eb3e20064bd7071b22d2cb
MD5 e137d9ce8d6b56541121968d45ebc2ea
BLAKE2b-256 153b2a26515e9fc2f6f1dd0f4609c17e74a7a37c4c35dc810ffb2152616a1309

See more details on using hashes here.

File details

Details for the file selva-0.19.4-py3-none-any.whl.

File metadata

  • Download URL: selva-0.19.4-py3-none-any.whl
  • Upload date:
  • Size: 53.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.22.3 CPython/3.13.2 Linux/6.8.0-1021-azure

File hashes

Hashes for selva-0.19.4-py3-none-any.whl
Algorithm Hash digest
SHA256 da4fa74edce1d818bcfd0a63ac392270faf9dc12d84ef628bb954a145d3a8ccf
MD5 23df8eb7d755077fe6be82d895bf42e9
BLAKE2b-256 d8704b77b5353259a252ab4c74bd421c9288721eb4565da7a7603770af592d9a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page