https://github.com/likianta/pyapp-window
Launch URL with native window in WebView mode. Multiple backend implementations are supported.
https://github.com/likianta/pyapp-window
Last synced: 3 months ago
JSON representation
Launch URL with native window in WebView mode. Multiple backend implementations are supported.
- Host: GitHub
- URL: https://github.com/likianta/pyapp-window
- Owner: likianta
- License: mit
- Created: 2024-05-17T03:24:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-30T08:52:24.000Z (7 months ago)
- Last Synced: 2025-03-30T09:28:07.639Z (7 months ago)
- Language: Python
- Size: 209 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# PyApp Window
A general-purpose native window launcher for a given url.
## Install
```sh
pip install pyapp-window
```## Usage
Use in terminal:
```sh
py -m pyapp_window -h
py -m pyapp_window http://localhost:3001
```Use in script:
```py
import sys
import pyapp_window
from lk_utils import run_cmd_args# get a popen object
port = 3001
proc = run_cmd_args(
sys.executable, '-m', 'streamlit', 'run', your_target_script,
'--browser.gatherUsageStats', 'false',
'--global.developmentMode', 'false',
'--server.headless', 'true',
'--server.port', port,
blocking=False,
verbose=True,
)pyapp_window.launch(
'Example App',
url=f'http://localhost:{port}',
copilot_backend=proc,
size=(800, 600),
)
```