tgzr command line interface
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
- Insall
- qtpy App:
- Insall
tgzr.shell[qt]will installqtpyandPySide6 - Note: If you prefer using PyQt, you can install
tgzr.shell+qtpy+PyQt6 - Use
tgzr.shell.app_sdk.qtpy.ShellQtpyApp
- Insall
- Executable file App:
- Simply install
tgzr.shell - Use
tgzr.shell.app_sdk.exe_app.ShellExeApp
- Simply install
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tgzr_shell-0.2.1.tar.gz.
File metadata
- Download URL: tgzr_shell-0.2.1.tar.gz
- Upload date:
- Size: 56.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9f779f827cf99ae868b7a2ecd2f04bcc10e2dc9b886d37d5b6f78f82c53037c
|
|
| MD5 |
c89c980a1594b644b9d18dd357c361fd
|
|
| BLAKE2b-256 |
f141284f7dcfb157235e98f11332f50f1ff81f7d1c446cd4d0c80edebc1cb6eb
|
File details
Details for the file tgzr_shell-0.2.1-py2.py3-none-any.whl.
File metadata
- Download URL: tgzr_shell-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 77.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ad7d7dd5da74081b41c0cb13031bb5c643c8f76558c975d0764c8858cf49dbd
|
|
| MD5 |
b1000be1444e75c9b91d399f18a6f600
|
|
| BLAKE2b-256 |
d3a6a35e3916efc67f4749a8209ec28ca8fc17913e5d517d55322267d72c5148
|