Skip to content

mehmonov/chalpak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chalpak Web Framework

Chalpak is a simple and easy-to-use web framework that helps you create fast and efficient web applications

Chalpak version PyPI version Documentation Status

Inspiration

The construction site began to write first class codes for me. I searched on Jan 4, I looked for a lot, it is very difficult to build the building. Alcazar seemed very interesting to me. Thanks to Jahongir Rakhmonov you are most useful to me

Install Chalpak

pip install chalpak

Usage

from chalpak.app import Chalpak

app = Chalpak()


app.run()

Examples

from chalpak.app import Chalpak

from chalpak.response import JSONResponse, HTMLResponse, render

app = Chalpak(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

📢 Recognized by the Community

This project is listed in the Uzbek Awesome Open Source collection.

👉 View the full list

About

Chalpak - mini web framework like fastAPI, flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages