Skip to main content

Launching URL with native window in WebView mode.

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

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

pyapp_window-2.2.3-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyapp_window-2.2.3-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pyapp_window-2.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b91dc2363162c554e2046417a65e4fe164ae7ed0f7d8781eb120f6ddd86ffa08
MD5 b1d90840b7fb4fbcb7d4303c62c1b8d7
BLAKE2b-256 d96a0dc15fd8bb5126f4c4dc6e0d030eb243f92b5e8ab99a8881b848c3eefee1

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