Skip to main content

tgzr command line interface

Project description

tgzr.shell

tgzr workstation runtime

Create a Shell Application plugin:

You need to:

  • 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 import ShellApp

app = ShellApp(
    "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.2.tar.gz (30.3 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.2-py3-none-any.whl (40.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tgzr_shell-0.1.2.tar.gz
  • Upload date:
  • Size: 30.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for tgzr_shell-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c370e23f5a9cb00e542879a0b3ec7e98d82387c10fbcd895e9f746fb01c9fad4
MD5 abcddfca32126a9e0e946d28a6ef2cf6
BLAKE2b-256 ab44b6c967781afc844c110ce68eda46e9140c2aa0ba74937e27c458de1b67f8

See more details on using hashes here.

File details

Details for the file tgzr_shell-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: tgzr_shell-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 40.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for tgzr_shell-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 764173145a9b3a7b1bb3d17a70a457249cb86af7358975e8eab07eced2bea753
MD5 a28b8cbfd7f820c56be5ff2298f9eaae
BLAKE2b-256 ad052f303bdbb9f0b05b30007a098464765cde894901a585933b597d4a39e83a

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