Skip to main content

tgzr command line interface

Reason this release was yanked:

bad Session.workspace initialization

Project description

tgzr.shell

tgzr workstation runtime

Create a Shell Application plugin:

There are 3 types or shell app you can provide:

  • NiceGUI App:
    • Insall tgzr.shell[nicegui]
    • Use tgzr.shell.app_sdk.nice_app.ShellNiceApp
  • qtpy App:
    • Insall tgzr.shell[qt] will install qtpy and PySide6
    • Note: If you prefer using PyQt, you can install tgzr.shell+qtpy+PyQt6
    • Use tgzr.shell.app_sdk.qtpy.ShellQtpyApp
  • Executable file App:
    • Simply install tgzr.shell
    • Use tgzr.shell.app_sdk.exe_app.ShellExeApp

Nice app example

To implement a NiceGUI app plugin, you need to:

  • install tgzr.shell[nicegui]
  • create an instance of a tgzr.shell.app_sdk.ShellApp
  • add an entry point in the group "tgzr.shell.app_plugin" pointing to that app

Here is a minimalist workging example:

your_package/app.py:

from . import run_native, run_dev, pages
from tgzr.shell.app_skd.nice_app import ShellNiceApp

app = ShellNiceApp(
    "app_name",
    run_native_module=run_native,
    run_dev_module=run_dev,
    static_file_path=Path(pages.__file__).parent / "static_files",
)

your_package/pages.py:

from nicegui import ui


@ui.page("/", title="My App")
async def main():
    ui.label("Hello world! 😛")

your_package/run_native.py:

if __name__ == "__main__":
   from .app import app

   app.run_app(native=True, reload=False)

your_package/run_dev.py:

if __name__ in {"__main__", "__mp_main__"}:
    from .app import app
   app.run_app(native=False, reload=True)

pyproject.toml:

[project.entry-points."tgzr.shell.app_plugin"]
my_shell_app = "your_package:app"

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

tgzr_shell-0.1.9.tar.gz (47.0 kB view details)

Uploaded Source

Built Distribution

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

tgzr_shell-0.1.9-py2.py3-none-any.whl (64.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file tgzr_shell-0.1.9.tar.gz.

File metadata

  • Download URL: tgzr_shell-0.1.9.tar.gz
  • Upload date:
  • Size: 47.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"KDE neon","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tgzr_shell-0.1.9.tar.gz
Algorithm Hash digest
SHA256 eb2bea111466e19e7c3170e3e6d3310cf79f5d16cdc4fc1af41315705008f647
MD5 30f57eece9e5de35f190b5b72dcd4a26
BLAKE2b-256 3f50eb4c6de81d95f98f84509ac46193c3a832789443bb5d43d8e710bfdab4f3

See more details on using hashes here.

File details

Details for the file tgzr_shell-0.1.9-py2.py3-none-any.whl.

File metadata

  • Download URL: tgzr_shell-0.1.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 64.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"KDE neon","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for tgzr_shell-0.1.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e9ca53d5a7569803fc958e4f2722d3f34e7c883ba3041984514c233a1fac758b
MD5 3378ded8627cbdabd982db05db7a8d1d
BLAKE2b-256 67ca7899de4166917d47e3b35646fb18f8ffe6b3d407605eecac42bb88afe7d7

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