Skip to content

slayb3ar/ladders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ladders

Ladders is a robust yet simple web framework for python. It combines the power of frameworks like Rails with the simplicity of frameworks like Flask.

Quick Start

from ladders import LaddersApp

# App setup
app = LaddersApp()

# Routes
@app.get("/json")
async def get_data(request):
    return app.render_response({"message": "Hello, JSON!"}, content_type='json')

@app.get("/text")
async def plain_text(request):
    return app.render_response("This is plain text", content_type='text')

@app.get("/html")
async def hello(request):
    return app.render_response(template_name="hello.html", context={"some_var": "Hello, World!"})

if __name__ == '__main__':
    app.run()

About

Simple yet robust python web framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages