Interactive

Pyxle, live. No install.

Write a real .pyxl and run it instantly — the actual Pyxle parser plus your @server and @action code, in an isolated sandbox. Zero install, nothing leaves your machine. In a real app this Python runs server-side on Starlette — the playground just simulates that here.

01 — The bench
counter.pyxl edit me
Previewsandboxed preview · no install
state lives in Python
0

Edit the code → real Python boots.

Fig. 1 — sandboxed CPython in your browser; nothing leaves your machine.

02And on a real server

The same @action, hitting a real database.

The editor above runs client-side. This board is the real deploy — every click is a POST to Python, writing to SQLite. The counts are live and shared by everyone on this page right now.

React to this page

65 total

Every click is a POST to Python — no API route, no glue.

pages/playground.pyxl
@action
async def react_emoji(request):
    body = await request.json()
    emoji = body.get("emoji", "")
    if emoji not in VALID_EMOJIS:
        raise ActionError("Invalid reaction")

    count = increment_reaction(emoji)
    return {"ok": True, "emoji": emoji, "count": count}
Fig. 2 — the live handler. Every click on the board runs this @action against SQLite on this server.

03Ready when you are

Build it for real.

Like what you ran? Four commands from zero to a running dev server.

  1. pip install pyxle-framework
  2. pyxle init my-app && cd my-app
  3. pyxle install
  4. pyxle dev