Skip to main content

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


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.1.tar.gz (216.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tgzr_nice-0.1.1-py3-none-any.whl (218.3 kB view details)

Uploaded Python 3

File details

Details for the file tgzr_nice-0.1.1.tar.gz.

File metadata

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

File hashes

Hashes for tgzr_nice-0.1.1.tar.gz
Algorithm Hash digest
SHA256 76f996f4240f5fa9a5612e9f00eb2852313542e7a8fe37ee70ffddc52cce5202
MD5 dbcb9c85e7790bf6939c586d4cf52e01
BLAKE2b-256 ea039bf17f969351d2f1515cbd410a44f7d6dc3107d281aa0d3b877fdc80d21e

See more details on using hashes here.

File details

Details for the file tgzr_nice-0.1.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for tgzr_nice-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 68bceddd7dc4c4d25229e5270cbd99740cba80d90288fdeffd0480812dec365b
MD5 4cddb0af5cd6dea91a346cb99e8493e5
BLAKE2b-256 1ca384ece9bf07b3206289345ab64173b1ce1c7556e77fddb71921909de71198

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