Python-first full-stack framework with an intelligent CLI.
Project description
The Python full-stack framework.
Server logic in Python. UI in React. One file.
# pages/index.pyxl
@server
async def load(request):
return {"message": "Hello from Python"}
# --- JSX ---
export default function Home({ data }) {
return <h1>{data.message}</h1>;
}
Pyxle compiles .pyxl files into Python server modules and React client components.
@server loaders run on the backend, SSR renders the HTML, React hydrates on the client.
Get started
pip install pyxle-framework
pyxle init my-app && cd my-app
pyxle install
pyxle dev
Open http://localhost:8000.
Features
.pyxl files -- Python + React in a single file, split at compile time
File-based routing -- pages/ maps to URLs, dynamic segments with [param].pyxl
SSR -- Server-side rendering via esbuild + React 18
@server / @action -- Typed data loading and form mutations
Layouts -- Nested layouts and templates with slot composition
Vite HMR -- Fast refresh in development
Tailwind -- Pre-configured out of the box
Production build -- pyxle build + pyxle serve for deployment
Documentation
Full docs at pyxle.dev/docs:
- Installation
- Quick Start
.pyxlFiles- Routing
- Data Loading
- Server Actions
- Layouts
- Deployment
- CLI Reference
- Configuration
CLI
pyxle init <name> Scaffold a new project
pyxle install Install Python + Node dependencies
pyxle dev Development server with HMR
pyxle build Production build
pyxle serve Serve the production build
Requirements
Python 3.10+ and Node.js 18+.
Contributing
git clone https://github.com/pyxle-framework/pyxle.git
cd pyxle
pip install -e ".[dev]"
pytest
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyxle_framework-0.2.1.tar.gz.
File metadata
- Download URL: pyxle_framework-0.2.1.tar.gz
- Upload date:
- Size: 387.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53893ea9458de91f0288454d2795ef70caddf08002707a4a63cce254b2e98aea
|
|
| MD5 |
733f0104d8ecc44b993d29ca436ee94e
|
|
| BLAKE2b-256 |
b83bb6a62e80e15326a1123e5bc6b68cd770b958562e29c4279b672cd612f8d0
|
Provenance
The following attestation bundles were made for pyxle_framework-0.2.1.tar.gz:
Publisher:
publish.yml on pyxle-framework/Pyxle
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyxle_framework-0.2.1.tar.gz -
Subject digest:
53893ea9458de91f0288454d2795ef70caddf08002707a4a63cce254b2e98aea - Sigstore transparency entry: 1282898640
- Sigstore integration time:
-
Permalink:
pyxle-framework/Pyxle@1f09d4d415bda761cb4ffb7a8fcdf8c675335f70 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/pyxle-framework
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1f09d4d415bda761cb4ffb7a8fcdf8c675335f70 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pyxle_framework-0.2.1-py3-none-any.whl.
File metadata
- Download URL: pyxle_framework-0.2.1-py3-none-any.whl
- Upload date:
- Size: 179.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da4f3cb72af1820acbce6e6030f72ffb98a6838973a2bdb23ff1646eff58a592
|
|
| MD5 |
55ed518525cff38984602404e5183738
|
|
| BLAKE2b-256 |
aa3ec3acca4ad67f52b853d2588f6e7045f7a07926bd19af5592a4707cbffd29
|
Provenance
The following attestation bundles were made for pyxle_framework-0.2.1-py3-none-any.whl:
Publisher:
publish.yml on pyxle-framework/Pyxle
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyxle_framework-0.2.1-py3-none-any.whl -
Subject digest:
da4f3cb72af1820acbce6e6030f72ffb98a6838973a2bdb23ff1646eff58a592 - Sigstore transparency entry: 1282898643
- Sigstore integration time:
-
Permalink:
pyxle-framework/Pyxle@1f09d4d415bda761cb4ffb7a8fcdf8c675335f70 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/pyxle-framework
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1f09d4d415bda761cb4ffb7a8fcdf8c675335f70 -
Trigger Event:
release
-
Statement type: