PyPositron Wiki
Welcome to the official PyPositron Wiki! This documentation provides comprehensive guides and references for developing desktop applications with PyPositron.
PyPositron is a powerful framework that allows you to build cross-platform desktop applications using Python for the backend logic and standard web technologies (HTML, CSS, JavaScript) for the user interface. It leverages pywebview
to embed a web browser engine, giving you the flexibility and rich styling capabilities of web development combined with the robust scripting power of Python.
Table of Contents
- Installation
- Quick Start
- Getting Started
- CLI Commands
- Python-HTML Integration
- Virtual Environments
- Library Reference
- Troubleshooting
Key Features
- Python Backend: Write all your application logic in Python.
- Web Frontend: Design beautiful and interactive user interfaces using HTML, CSS, and JavaScript.
- Cross-Platform: Build applications that run seamlessly on Windows, Linux, and macOS.
- CLI Tools: Streamlined command-line interface for project creation, virtual environment management, and more.
- DOM Manipulation: Directly interact with the web page's Document Object Model (DOM) from Python.
- Event Handling: Easily bind Python functions to frontend events.
- Python-HTML Integration: Multiple ways to integrate Python with HTML, including inline
<py>
tags and structuredbackend/main.py
approach.
This documentation is AI generated (but manually reviewed). It probably has no errors, but the examples in Python-HTML Integration may not work as expected. If you find any issues, please report them on the repo. You can also help improve the documentation by contributing to the wiki.
Contributing
This project is in alpha stage, so expect some changes in the future. If you can, contribute to the repo or wiki.