Skip to main content

Lemon 🍋

A Full-Stack Framework for Python

Built In Python

Lemon is written in Python, and is designed like React and Vue. It's easy to learn and use.

Component Based

Lemon is component based, all of the page is designed in components to render and control the page.

Full-Stack

Lemon is a full-stack framework, it has a built-in server and database, and it's easy to use.

Components made easy.

Components are isolated elements which have their own properties and states

class MyComponent(Component):
    name = "MyComponent"
    def item(props: dict):
        return f"<div>Hello {props['name']}!</div>"

Backend intertwined with Front-end.

the backend is seamlessly connected with the backend, So you can connect to the DB while fixing the UI 🛠

@app.route("/api")
class api:
    def get(self, req, res):
        res.text = Root.render("<MyComponent name='Alfred'/>")
    def post(self, req, res):
        name = req.json['name']
        orm.insert('Person', [['Names'], [name]])