['Website As App v1.0.0 * Copyright 2023-2024 by Marcin Orlowski.', 'Opens any web site as standalone desktop app.', 'https://github.com/MarcinOrlowski/website-as-app/']
Project description
WebApp
Run any website as standalone desktop application
master branch:
Small Python script opening any web page in dedicated window, using embedded QT WebEngine. There are no visible browser's UI etc, so the that can be useful to turn any website into standalone desktop application. This is useful if you, as me, would like to have a website run as standalone app, independently of your main browser which can be beneficial as it gives you separate entry in window manager or task switcher etc.
IMPORTANT: This tool is NOT turning websites into OFFLINE apps! It's about separating each of your key websites i.e. from each other, or gazzilions of your browser's tabs. But you still MUST be connected to the Internet for the apps (websites) to work as previously.
Installation
Use pip
to install the script:
$ pip install website-as-app
Once app is running, please use --help
to see all available options, as i.e. custom icon,
window title etc.
Usage
$ webapp "https://github.com"
Available options:
webapp -h
usage: webapp [--profile PROFILE] [--name NAME] [--icon ICON] [--zoom ZOOM] [--no-tray] url
Open any website in standalone window (like it's an app)
positional arguments:
url The URL to open
options:
--profile PROFILE Profile name (for cookies isolation etc). Default: "default"
--name NAME, -n NAME Application name (shown as window title)
--geometry GEOMETRY Initial window geometry (in format "WIDTHxHEIGHT+X+Y")
--icon ICON, -i ICON Full path to image file to be used as app icon
--zoom ZOOM, -z ZOOM Initial WebBrowserView zoom factor. Default: 1.0
--no-tray Disables system tray support (closing window terminates app)
The most important option is --profile
which allows you to isolate cookies and app settings
per instance. Any instance using the same profile will have access to the same cookies and
settings. This is useful if you want to run multiple instances of the same app, but with
different accounts. By default default
profile is used and it's recommended to use different
profile per each app instance.
Current limitations
- Due to security based limitations of embedded
QWebBrowerView
you will not be able to save any file to your local storage nor filesystem. - Website's Javascript code cannot write to system clipboard so you migth need to manually select given portion of the site and copy using function from context menu as any buttons on the page that is using JS to write to the host's clipboard will not currently work.
License
- Written and copyrighted ©2023-2024 by Marcin Orlowski <mail (#) marcinorlowski (.) com>
- ResponseBuilder is open-sourced software licensed under the MIT license
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
Built Distribution
Hashes for website_as_app-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4474b60be77b83bb12082922e8006a51b0bae2e7511aa0d9db72c62645cabd93 |
|
MD5 | 3a541aa9cf4415568400b6750e523abf |
|
BLAKE2b-256 | ed688656c7fba3dcccfe6eabf69c649a527c45a0953effb2715c14def1be6483 |