PyWire 🚀
PyWire is a lightweight Python library that allows you to create simple desktop GUI applications using HTML, CSS, and JavaScript, while giving full access to Python’s functionality and libraries. It's designed to make cross-platform desktop app development with web technologies a breeze! ✨
💡 Inspiration
PyWire is heavily inspired by and aims to be compatible with the excellent Eel project. We've taken the core ideas and built upon them to provide a robust and easy-to-use solution for integrating Python with web frontends. Our goal is to offer a similar developer experience with additional features and optimizations. 🐍🌐
📦 Installation
You can install PyWire directly from PyPI:
pip install pywire-eel
Or from github
pip install git+https://github.com/Fadi002/PyWire
🌟 Features
- Seamless Python-JavaScript Interoperability: Call Python functions from JavaScript and vice-versa with ease. 🔄
- Cross-Platform Compatibility: Build apps that run on Windows, macOS, and Linux. 💻
- Web Technologies: Leverage your existing knowledge of HTML, CSS, and JavaScript to build beautiful UIs. 🎨
- Lightweight & Fast: Designed for performance and minimal overhead. ⚡
- Eel-compatible API: Familiar API for developers coming from the Eel ecosystem. 🤝
🚀 Getting Started
Here's a quick example to get you started:
import pywire
@pywire.expose
def say_hello(name):
print(f"Hello from Python: {name}!")
return f"Hello, {name}! This is from Python."
pywire.init('web') # 'web' is the folder containing your HTML, CSS, JS files
pywire.start('index.html') # 'index.html' is your main HTML file
And in your web/index.html:
<!DOCTYPE html>
<html>
<head>
<script src="bridge.js"></script> <!-- This must be included in your html -->
<title>PyWire App</title>
<script type="text/javascript" src="/pywire.js"></script>
<script type="text/javascript">
async function callPython() {
let result = await pywire.say_hello("World");
document.getElementById('output').innerText = result;
}
</script>
</head>
<body>
<h1>Welcome to PyWire!</h1>
<button onclick="callPython()">Call Python Function</button>
<p id="output"></p>
</body>
</html>
🤝 Contributing
We welcome contributions! If you'd like to contribute, please fork the repository and create a pull request. For major changes, please open an issue first to discuss what you would like to change. 💖
📄 License
This project is licensed under the MIT License - see the LICENSE file for details. ©️
Metadata
Release files for pywire-eel 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pywire_eel-0.1.1.tar.gz | 22.3 kB | Without provenance | Details for pywire_eel-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pywire_eel-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pywire_eel-0.1.1-py3-none-any.whl |
Total release size: 45.2 kB
Release files / pywire_eel-0.1.1.tar.gz
| Download URL | pywire_eel-0.1.1.tar.gz |
|---|---|
| Size | 22.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2937bf83a5dcc3dca39c56980f91fc0f797c3090cdc2155b2bb7780dd6edb225
|
|
BLAKE2b-256 checksum How to use checksums |
d0e5e18ae2640f75b7953f9d6311a6551b786ef671d24975cde5bea32b64fb90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / pywire_eel-0.1.1-py3-none-any.whl
| Download URL | pywire_eel-0.1.1-py3-none-any.whl |
|---|---|
| Size | 22.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3e57b6aef3c38fb9090b53c026515adcd34ccfaa6fef4c6a2a08d969a5fd9fc
|
|
BLAKE2b-256 checksum How to use checksums |
a6d1afbaa7f960368c783e03e071ae14fb062c7ab22dc1b7dcb468f9635fa055
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for pywire-eel 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.