Skip to main content

Client-side Python SPA framework via Pyodide

Project description

Wybthon

Wybthon is an experimental client-side web framework written in Python, inspired by popular JavaScript frameworks like React and Angular. The goal is to provide a Pythonic approach to building interactive web applications.

Installation

pip install wybthon

Use in Pyodide (micropip)

import micropip
await micropip.install("wybthon")

import wybthon as wy

Project Structure

.
├── README.md
├── LICENSE
├── pyproject.toml
├── requirements.txt
├── src/
│   └── wybthon/
│       ├── __init__.py
│       ├── component.py
│       ├── context.py
│       ├── dev.py
│       ├── dom.py
│       ├── events.py
│       ├── forms.py
│       ├── reactivity.py
│       ├── router.py
│       └── vdom.py
├── docs/
│   ├── index.md
│   ├── getting-started.md
│   ├── api.md
│   └── examples.md
├── examples/
│   └── demo/
│       ├── index.html
│       ├── bootstrap.js
│       ├── demo.py
│       └── child_component.html
└── tests/
    ├── test_context.py
    ├── test_dev.py
    ├── test_forms.py
    ├── test_reactivity.py
    └── test_validators.py
  • src/wybthon/: Core library package modules.
  • docs/: Documentation sources for MkDocs.
  • examples/: Demo running in the browser via Pyodide.
  • tests/: Unit tests.

Getting Started

To run the example application:

  1. Clone the repository:

    git clone https://github.com/wybthon/wybthon.git
    cd wybthon
    
  2. Start a simple web server from the repo root:

    python -m http.server
    
  3. Open your browser to http://localhost:8000/examples/demo/index.html.

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

wybthon-0.1.0.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

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

wybthon-0.1.0-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file wybthon-0.1.0.tar.gz.

File metadata

  • Download URL: wybthon-0.1.0.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for wybthon-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a07ce4d881985a9621c3d8277d3c137b57c0e295affe6a5e81ea46b8d1780e84
MD5 1f5f73bf5241104ec7c69bed5e9ae015
BLAKE2b-256 6f7dbfc7f011dc31c48a27342f95ab5560d7e73dbfa8c419ba7f2048d66008be

See more details on using hashes here.

File details

Details for the file wybthon-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: wybthon-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for wybthon-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7924a8dbb282d9dba429cc5d3dd69dc54da0f99c7dad0f64275b0ef1dfd3f20c
MD5 40e7e062a05d73cf61ad9125c3f70a07
BLAKE2b-256 db481eb047fd856697123f56ae5fde31610c19cd9aee8cb957f153f2a9acda62

See more details on using hashes here.

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