Chalpak - mini web framework like fastAPi, flask
Project description
Chalpak Web Framework
Chalpak is a simple and easy-to-use web framework that helps you create fast and efficient web applications.
Install Chalpak
pip install chalpak
Usage
from chalpak import Chalpak
app = Chalpak()
app.run()
Examples
from chalpak.app import ChalpakApp
from chalpak.response import JSONResponse, HTMLResponse, render
app = ChalpakApp(templates='templates')
@app.get("/salom/{name}")
async def index(request, name):
return JSONResponse({"name": name})
@app.get("/html/{name}")
async def html(request, name):
return render("index.html", request, {"name": name})
app.run()
Run
jurigged -v script.py
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
chalpak-0.2.4.tar.gz
(5.5 kB
view details)
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 chalpak-0.2.4.tar.gz.
File metadata
- Download URL: chalpak-0.2.4.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15e1740cd74c65f8d0086d9a46ee198d15bf45d981345533a5dd21785f947ef6
|
|
| MD5 |
39669fd091f13f12cbb062dcea46455f
|
|
| BLAKE2b-256 |
e02aab29367c299085fdde7b63dc4a4af564e6dad99babd12a1b87584653de6b
|
File details
Details for the file chalpak-0.2.4-py2.py3-none-any.whl.
File metadata
- Download URL: chalpak-0.2.4-py2.py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afb1ac5da8d7dd9e00510985a1a99c88f745be5266b8065d86e2a7429a1c8ecc
|
|
| MD5 |
70e0dc89e1da3deaf1cdb76fda3269d5
|
|
| BLAKE2b-256 |
c5a3538092f02d6895803a3efa78c1bd8b0d9cd6436e96aad9c0fd4fddae4dcb
|