Components and tools for TGZR nice apps
Project description
tgzr.nice
Components and tools for TGZR Nice apps
Usage
Static Files
Register the assets and medias folders
import tgzr.nice.static_files
tgzr.nice.static_files.register()
then, use like this:
# TODO: write this
Note: if you're using a tgzr.nice component which rely on static files to be
registered, it will have call register() and you won't need to do it.
Get a static file
import tgzr.nice.static_files
tgz_thumbnail_path = tgzr.nice.static_files.get_asset_path(group='tgzr', name='tgzr_thumbnail.png')
tgzr_logo_svg_content = tgzr.nice.static_files.get_asset_content(group='tgzr', name='tgzr_logo_bgblack.svg')
some_video = tgzr.nice.static_files.get_media_path(group='group-name', name='video-name.mp4')
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_nice-0.1.2.tar.gz
(229.6 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
tgzr_nice-0.1.2-py3-none-any.whl
(231.5 kB
view details)
File details
Details for the file tgzr_nice-0.1.2.tar.gz.
File metadata
- Download URL: tgzr_nice-0.1.2.tar.gz
- Upload date:
- Size: 229.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e01e57c1f6bfcbc784a4fa5b0816df03cad01fd4b93a198116fe2c2706ddf1e7
|
|
| MD5 |
2b96162f81c67b32efcee5685b892698
|
|
| BLAKE2b-256 |
21265080d37372366f62246416af4aa278afaa5bd1e1c7715c41da49397779e1
|
File details
Details for the file tgzr_nice-0.1.2-py3-none-any.whl.
File metadata
- Download URL: tgzr_nice-0.1.2-py3-none-any.whl
- Upload date:
- Size: 231.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e5f9232019b12248a4fd89870720aae781f7a905aa44c1be3a9cda446ab5e59
|
|
| MD5 |
df66961a6d44305bf372db16af74b6f3
|
|
| BLAKE2b-256 |
0dd868167a8e3a7e6c0d0c99bbe612776b891dadbb252e1e8192b66823b2d0b5
|