Name | selva JSON |
Version |
0.19.0
JSON |
| download |
home_page | None |
Summary | ASGI Web Framework with Dependency Injection |
upload_time | 2025-01-11 17:09:05 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.11 |
license | MIT |
keywords |
asgi
framework
asyncio
web
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Project Selva
Documentation: https://livioribeiro.github.io/selva/
Selva is a Python ASGI web framework built on top of [asgikit](https://pypi.org/project/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:
```shell
pip install selva uvicorn[standard]
```
Create a module called `application.py`:
```shell
touch application.py
```
Create a handler:
```python
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`):
```shell
uvicorn selva.run:app --reload
```
Raw data
{
"_id": null,
"home_page": null,
"name": "selva",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": null,
"keywords": "asgi, framework, asyncio, web",
"author": null,
"author_email": "Livio Ribeiro <livioribeiro@outlook.com>",
"download_url": "https://files.pythonhosted.org/packages/34/0f/616993a06eba9399609f183d81adb2c6a0ff6b55fe287f38bdd4ec48871c/selva-0.19.0.tar.gz",
"platform": null,
"description": "# Project Selva\n\nDocumentation: https://livioribeiro.github.io/selva/\n\nSelva is a Python ASGI web framework built on top of [asgikit](https://pypi.org/project/asgikit/)\nand inspired by Spring Boot, AspNet, FastAPI and Go's net/http.\n\nIt features a Dependency Injection system to help build robust and reliable applications.\n\n## Quick start\n\nInstall `selva` and `uvicorn` to run application:\n\n```shell\npip install selva uvicorn[standard]\n```\n\nCreate a module called `application.py`:\n\n```shell\ntouch application.py\n```\n\nCreate a handler:\n\n```python\nfrom asgikit.requests import Request\nfrom asgikit.responses import respond_text\nfrom selva.web import get\n\n\n@get\nasync def hello(request: Request):\n await respond_text(request.response, \"Hello, World!\")\n```\n\nRun application with `uvicorn` (Selva will automatically load `application.py`):\n\n```shell\nuvicorn selva.run:app --reload\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "ASGI Web Framework with Dependency Injection",
"version": "0.19.0",
"project_urls": null,
"split_keywords": [
"asgi",
" framework",
" asyncio",
" web"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "76685f92e5cf00144ad4977333c5ab891898dfb4ad0db2e470ac9a5d8d39fb5e",
"md5": "be110dde617ff73067c69de33626db93",
"sha256": "4093acffa22645829399057f4a8f83cd3a156fb4aec48af0e5b4f5eee1df39ce"
},
"downloads": -1,
"filename": "selva-0.19.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "be110dde617ff73067c69de33626db93",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 52273,
"upload_time": "2025-01-11T17:09:04",
"upload_time_iso_8601": "2025-01-11T17:09:04.669200Z",
"url": "https://files.pythonhosted.org/packages/76/68/5f92e5cf00144ad4977333c5ab891898dfb4ad0db2e470ac9a5d8d39fb5e/selva-0.19.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "340f616993a06eba9399609f183d81adb2c6a0ff6b55fe287f38bdd4ec48871c",
"md5": "9b7a43bbddeb3f1621083612ca1074db",
"sha256": "a6766f7743b911ce493a09f23f0109cf50856ed5723bc916f64a5ad736b45b13"
},
"downloads": -1,
"filename": "selva-0.19.0.tar.gz",
"has_sig": false,
"md5_digest": "9b7a43bbddeb3f1621083612ca1074db",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 53730,
"upload_time": "2025-01-11T17:09:05",
"upload_time_iso_8601": "2025-01-11T17:09:05.841010Z",
"url": "https://files.pythonhosted.org/packages/34/0f/616993a06eba9399609f183d81adb2c6a0ff6b55fe287f38bdd4ec48871c/selva-0.19.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-11 17:09:05",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "selva"
}