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.2.0.tar.gz (24.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.2.0-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wybthon-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3da92b4744dfa9663f71b3b37a0b83bd02a3eb0d49b03bd75facd86c31e3b7af
MD5 4b51f8a491c895a1b92e6b2c57394f9f
BLAKE2b-256 7a449c6b7bfc8308d0f1da5c798663ee4718199f5580b35a1c2557ffdea1e33e

See more details on using hashes here.

Provenance

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

Publisher: release.yml on wybthon/wybthon

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

File details

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

File metadata

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

File hashes

Hashes for wybthon-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb5dc23201fe0ed4b5983bfd8d811e74c2470e7cd1a6204d06d27d729fda103b
MD5 7c1da259b353fb389320c483fba7bd8f
BLAKE2b-256 a3e5c16bf4010c90f5b12bbda3fbf39d29b6a3baef4728b4b23f99664e078c33

See more details on using hashes here.

Provenance

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

Publisher: release.yml on wybthon/wybthon

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