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.1.1.tar.gz
(30.3 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.1.1.tar.gz.
File metadata
- Download URL: tgzr_shell-0.1.1.tar.gz
- Upload date:
- Size: 30.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0844e42ddf17674b71441752afbe3ce5db0a4d804bfa7fbb828c6cb69e1a395
|
|
| MD5 |
5d37f4685f83c45efdd514e29fcf49b0
|
|
| BLAKE2b-256 |
bda918d8743be9060482444badd147b85a2448cb349b5b302570d5ce3eb52db9
|
File details
Details for the file tgzr_shell-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tgzr_shell-0.1.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c97a8fcf008936a30659d80abda1c18308806741c39cd40a7f7fc012955c030
|
|
| MD5 |
980e9479801652fccaf21a1de60fb921
|
|
| BLAKE2b-256 |
5a025c5ed919474a0ed074f7db02a5d7747f127aa8b87eb90241512c496558ba
|