Skip to main content

Python-first full-stack framework with an intelligent CLI.

Project description


Pyxle

The Python full-stack framework.
Server logic in Python. UI in React. One file.

PyPI   Website


# 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:

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyxle_framework-0.2.0.tar.gz (387.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyxle_framework-0.2.0-py3-none-any.whl (179.8 kB view details)

Uploaded Python 3

File details

Details for the file pyxle_framework-0.2.0.tar.gz.

File metadata

  • Download URL: pyxle_framework-0.2.0.tar.gz
  • Upload date:
  • Size: 387.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyxle_framework-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b32950addb6351f0202832a9d76b8d0f33d1d65d040c8f528fc7209062988aca
MD5 7f291257ead7b576fcbc0cdc3bc08633
BLAKE2b-256 e3f16c7bf6b0b0a1aaf6d55a13db1e5496aa4ad1a9240e37a9f23b8b8077b5f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyxle_framework-0.2.0.tar.gz:

Publisher: publish.yml on pyxle-framework/Pyxle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyxle_framework-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pyxle_framework-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 179.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyxle_framework-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e1b47d0b6395b9885373349353a7db0a85bc9a6db70bd7549a29f28cf0dc712
MD5 b285223c6751ef6b7fe9ec2eebc4d3e7
BLAKE2b-256 1917a7b11b61a938bf345f227f48f3aec78461837ba3097e571451c9c73b9c89

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyxle_framework-0.2.0-py3-none-any.whl:

Publisher: publish.yml on pyxle-framework/Pyxle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page