Skip to main content

Launch URL with native window in WebView mode. Multiple backend implementations are supported.

Project description

PyApp Window

A general-purpose native window launcher for a given url.

Install

pip install pyapp-window

Usage

Use in terminal:

py -m pyapp_window -h
py -m pyapp_window http://localhost:3001

Use in script:

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),
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pyapp_window-2.0.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file pyapp_window-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyapp_window-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.0 Windows/11

File hashes

Hashes for pyapp_window-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f69365895f9c2f42bed8808cfa96c4532a0bd0f51e4eb06988ed08470d2bf70d
MD5 385fc4748f5ad55e6fb05d83f6c90233
BLAKE2b-256 a60436d0fef555633e49866ef2c6f4559ec7aeaf802eb9e0eb44b3348fabcf9c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page