Package which aims to display webapps or websites on a desktop window
Project description
pycuteweb
This package aims to display webapps, websites, or other forms of HTML content on a GUI window.
It is currently built entirely on PySide2, Qt for Python.
Example
On Debian/Ubuntu based system it is required to install some shared libraries:
sudo apt install --reinstall libxcb-xinerama0
Actual example
from pycuteweb import Application
import os
app = Application()
# (Optional) Add a simple splash screen
dirname = os.path.dirname(__file__)
app.add_splashscreen(os.path.join(dirname, "resources/esa.gif"))
# Load a webpage
app.spawn_window("https://www.meneghetti.dev", title="My website")
# Render all windows and start the app
app.start()
Flask example
In case you want to run a desktop application with flask, just pass the flask object to the app object.
from flask import Flask
from pycuteweb import Application
app = Flask(__name__)
@app.route('/')
def index():
return "Hello world!"
if __name__ == '__main__':
web_app = Application()
web_app.add_flask(app)
web_app.start()
Dependencies
- PySide2 LGPLv3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycuteweb-0.1.1.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file pycuteweb-0.1.1.tar.gz
.
File metadata
- Download URL: pycuteweb-0.1.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3de751024ed1f5019196a851d919eea28194b68c85afa1a0a56c3717add3638d |
|
MD5 | 239656d55ea027b4b6c202b765e5aebb |
|
BLAKE2b-256 | 17034c63aa33d9ebfc466cfef28c30ce7fafc4dab52167a9495557cb4ef21248 |
File details
Details for the file pycuteweb-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: pycuteweb-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e149fe33188b905481c568217699480ec55c954e4cd28af205febfab812b188 |
|
MD5 | 5c6dfd5f83b6cb3566d2ea5d0dda5e80 |
|
BLAKE2b-256 | aae25670d1f0b4dc845e4294e0faf667d041fbff66b5f5157c0f4405879f8164 |