Skip to main content

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

mantipy_gui-0.1.0.tar.gz (30.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mantipy_gui-0.1.0-py3-none-any.whl (41.1 kB view details)

Uploaded Python 3

File details

Details for the file mantipy_gui-0.1.0.tar.gz.

File metadata

  • Download URL: mantipy_gui-0.1.0.tar.gz
  • Upload date:
  • Size: 30.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for mantipy_gui-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c2c3d32346b6278fd145f70d9cc0a0c3dd5c6cd26db83b1e80af67aab1d77cc4
MD5 5b528df9f010051f06960d2d4ca3b41b
BLAKE2b-256 d3a396524521c9be5a22a3feec5a5e078851e461fa69cef5606b5f6e7f75c86b

See more details on using hashes here.

File details

Details for the file mantipy_gui-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mantipy_gui-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 41.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for mantipy_gui-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4061b8917a69a69967f3a3578e899c6e1dc429bf13d35f7a2144f801956d0a70
MD5 5fe08d70525aafc104c2d4f70bad286b
BLAKE2b-256 581e27838aa2dd1c7e2de676a5755b8afdc30066006f84207ecea0ba04c8bb65

See more details on using hashes here.

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