Modern Python GUI framework with web technology integration
Project description
mantipy-gui
Modern GUI framework for Python that bridges the gap between web technologies and native applications.
🧠 Why mantipy-gui?
mantipy-gui solves the real pain points in Python GUI development:
🔥 1. Modern UI Without JS Framework Hell
- Use any HTML/JS frontend: React, Svelte, HTMX, or plain HTML
- Embed it into a native Python window, without Electron bloat
- Full JavaScript, CSS, video, canvas support — because it's Chromium
🧩 2. Native App Logic in Python
- Button clicks, IPC, data processing — all in Python
- Your whole backend and frontend in one language
🌐 3. Pluggable DNS Resolution
- Support .evr, .dao, .ipfs, .lnbtc, or your custom protocol
- A single function hook makes your browser/app future-ready
🛠️ 4. Customizable UI Layout
- Native widgets (sidebars, tabs, console) can live beside the browser
- Build apps, not just websites
🧪 5. Perfect for Local-first, Decentralized, and dApp UIs
- Build powerful offline tools with web interfaces
- Native .evr access with no DNS hacks
- Self-contained IPFS-UI frontends
Installation
pip install mantipy-gui
Quick Start
from mantipy_gui import Window, BrowserView
app = Window(title="My Mantipy App")
browser = BrowserView()
app.add_view(browser)
# Load from URL
browser.load("https://example.com")
# Load local HTML
browser.load_html("<h1>Hello from Mantipy!</h1>")
# Custom domain resolution
@browser.resolver(".evr")
def resolve_evr(domain):
# Your custom resolver for .evr domains
return f"https://ipfs.io/ipfs/your-hash"
app.run()
Examples
Check out the examples directory for more use cases.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mantipy_gui-0.1.1.tar.gz.
File metadata
- Download URL: mantipy_gui-0.1.1.tar.gz
- Upload date:
- Size: 32.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5641973246e9c638fd87cfe50b3f2e58e3c8d4147695ab5ee4cf1ca59a589bf5
|
|
| MD5 |
a792adcca1b21da332f98cc2d41cd1f4
|
|
| BLAKE2b-256 |
c1ec991ae537e96f61cbc29ad8ba1f7d5ce1a425665f1b8c6f02f6c88fc42f8b
|
File details
Details for the file mantipy_gui-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mantipy_gui-0.1.1-py3-none-any.whl
- Upload date:
- Size: 43.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
469f931c6902c9b87b5e62379fcf98066f38d03d70264368a0f5c490ae79d04e
|
|
| MD5 |
2318703afc1461766e515cfdea336646
|
|
| BLAKE2b-256 |
17060d21e3e672ce716048efe0e2f111b5e1bb23fdb26e040d0e294b59ff2e84
|