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.3.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.3.tar.gz.
File metadata
- Download URL: chalpak-0.2.3.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 |
96598c52d7c274515928c3810007f6c778ffdf18dfa7c86d80af0041221917da
|
|
| MD5 |
94183e1948279035607c0959e638e5d3
|
|
| BLAKE2b-256 |
c249c7ea80b9ccbca8ba567c19e68725318d2d7795b03e7426e95f38e21ca030
|
File details
Details for the file chalpak-0.2.3-py2.py3-none-any.whl.
File metadata
- Download URL: chalpak-0.2.3-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 |
3a319d6add8772fc58424688a44ecff8bf80fd68b529edd0def7e6474dfe7471
|
|
| MD5 |
4e35fd2014c62adb23d607a15dc89e3c
|
|
| BLAKE2b-256 |
4d991424c06d674722734a8dea4732231e0a35b4ae102aafc93e76e28229c971
|