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.pyx
@server
async def load(request):
return {"message": "Hello from Python"}
# --- JSX ---
export default function Home({ data }) {
return <h1>{data.message}</h1>;
}
Pyxle compiles .pyx 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
.pyx files -- Python + React in a single file, split at compile time
File-based routing -- pages/ maps to URLs, dynamic segments with [param].pyx
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 are in the docs/ directory:
- Quick Start
.pyxFiles- 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/shivamsn97/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.1.1.tar.gz.
File metadata
- Download URL: pyxle_framework-0.1.1.tar.gz
- Upload date:
- Size: 247.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
817f12630823e9c9faa8f0312563c537d9184fc5cca7e89dd3edd4177a43fd62
|
|
| MD5 |
4a9fec946ca67a1736aa6fbaeabf23c1
|
|
| BLAKE2b-256 |
55b6358fd552cd30aced42e6c2b9c4863008a81eb1574aba92cc887783dc1d11
|
File details
Details for the file pyxle_framework-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pyxle_framework-0.1.1-py3-none-any.whl
- Upload date:
- Size: 148.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be4f0bb77f9b399df86cd79264fce24be7d0ddb50414e821dcedcea1b75193b0
|
|
| MD5 |
f94bae3f22e4e7e8466ac8be3587e591
|
|
| BLAKE2b-256 |
4ade6777a28017d760181d0248ab038aa0666065486f16f7fbbb86e4022a90b3
|