Skip to main content

No project description provided

Project description

Tauri Web Viewer

Easily create HTML webviewers in python utilizing the wry library. Please note: this library is currently in early alpha and is NOT ready for production use.

To use just run the following:

  • Install rust: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • Create a virtual environment: python -m venv .env
  • Acitvate the environment: source .env/bin/activate
  • Install dependencies: pip install .[dev]
  • Build the pip package: maturin build
  • Install the package: pip install [file path from above] --force-reinstall

Basic Usage:

>>> import pywry
>>> handler = pywry.PyWry()
>>> handler.send_html("<h1>Welcome to plotting in PyWry</h1>")
>>> handler.start()

Note: There is currently an issue if you try to run this inside an X86_64 conda environment on an M1 machine.

Arguments

  • title
  • html_content
  • hide_output

Project details


Download files

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

Source Distribution

pywry-0.2.7.tar.gz (42.1 kB view hashes)

Uploaded Source

Built Distributions

pywry-0.2.7-cp311-none-win_amd64.whl (913.4 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

pywry-0.2.7-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.3 MB view hashes)

Uploaded CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

pywry-0.2.7-cp310-none-win_amd64.whl (913.4 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

pywry-0.2.7-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.3 MB view hashes)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

pywry-0.2.7-cp39-none-win_amd64.whl (913.8 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

pywry-0.2.7-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.3 MB view hashes)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

pywry-0.2.7-cp38-none-win_amd64.whl (912.9 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

pywry-0.2.7-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (2.3 MB view hashes)

Uploaded CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

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