Metadata-Version: 2.4
Name: wybthon
Version: 0.3.0
Summary: Client-side Python SPA framework via Pyodide
Author: Owen Carey
License: MIT License
        
        Copyright (c) 2025 Owen Carey
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/wybthon/wybthon
Project-URL: Repository, https://github.com/wybthon/wybthon
Project-URL: Issues, https://github.com/wybthon/wybthon/issues
Project-URL: Changelog, https://github.com/wybthon/wybthon/blob/main/CHANGELOG.md
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Environment :: WebAssembly
Classifier: Framework :: AsyncIO
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: docs
Requires-Dist: mkdocs>=1.5; extra == "docs"
Requires-Dist: mkdocs-material[imaging]>=9.5; extra == "docs"
Requires-Dist: mkdocstrings[python]>=0.24; extra == "docs"
Provides-Extra: dev
Requires-Dist: black>=24.0; extra == "dev"
Requires-Dist: ruff>=0.5; extra == "dev"
Requires-Dist: mypy>=1.10; extra == "dev"
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: pytest-playwright>=0.5.0; extra == "dev"
Provides-Extra: ci
Requires-Dist: black>=24.0; extra == "ci"
Requires-Dist: ruff>=0.5; extra == "ci"
Requires-Dist: mypy>=1.10; extra == "ci"
Requires-Dist: pytest>=8.0; extra == "ci"
Requires-Dist: pytest-playwright>=0.5.0; extra == "ci"
Dynamic: license-file

# 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

```sh
pip install wybthon
```

### Use in Pyodide (micropip)

```python
import micropip
await micropip.install("wybthon")

import wybthon as wy
```

## Project Structure

```plaintext
.
├── 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**:
    ```sh
    git clone https://github.com/wybthon/wybthon.git
    cd wybthon
    ```

2. **Start a simple web server** from the repo root:
    ```sh
    python -m http.server
    ```

3. **Open your browser** to `http://localhost:8000/examples/demo/index.html`.
