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 benchedit freely · sandboxed · zero install
counter.pyxl edit me
Previewsandboxed preview · no install
state lives in Python
0
Edit the code → real Python boots.
02 — And 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 totalEvery 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}
03 — Ready when you are
Build it for real.
Like what you ran? Four commands from zero to a running dev server.
pip install pyxle-frameworkpyxle init my-app && cd my-apppyxle installpyxle dev