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
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
tgzr_shell-0.0.4.tar.gz
(29.1 kB
view details)
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.0.4.tar.gz.
File metadata
- Download URL: tgzr_shell-0.0.4.tar.gz
- Upload date:
- Size: 29.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abc63c6b70c401777a9e49d708c7f96c271554596ddfa7f36ffbdc42a37ac936
|
|
| MD5 |
b4a876c414d4fcd3be989906c76ba89d
|
|
| BLAKE2b-256 |
3a62004506af10fb47b8404c9e93c733ce58126cc2270b864afc8657932a570b
|
File details
Details for the file tgzr_shell-0.0.4-py3-none-any.whl.
File metadata
- Download URL: tgzr_shell-0.0.4-py3-none-any.whl
- Upload date:
- Size: 39.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1701bab41327ae4d1ff06981875564cce1c5c41df1409b7f6a224cc9cde073d
|
|
| MD5 |
70c106d97730fa4c4565204dc1efb1f8
|
|
| BLAKE2b-256 |
c3e4f22a5a7bb3e613701cafaa5b2705b07c61be3420d6111567bfb6fcc95965
|