Skip to main content

UI Tools plugin for Fastpluggy

Project description

UI Tools Module for FastPluggy

Optional utility plugin providing localization, image handling, and data rendering helpers.

Note (v0.1.0): Common widgets (Card, Grid, Stats, Status, Alert, Code, Progress) and generic Jinja filters (b64encode, nl2br, from_json) have been moved to fastpluggy core. Import them from fastpluggy.core.widgets — no need to depend on this plugin for widgets.

What remains in ui-tools

Jinja Filters

Filter Description Dependency
pydantic_model_dump Dump Pydantic models/settings to dictionaries.
localizedcurrency Format a number as localized currency (default: EUR, fr_FR). babel
localizeddate Format dates/datetimes with various styles/locales/timezones. babel

Utility Functions

Module Function Description
template_tools render_bytes_size Format byte sizes as human-readable strings
template_tools render_json_pre Render JSON in a <pre> block
template_tools render_json_cell_modal Render JSON data with a modal preview button
html_render render_data_field Render JSON/image data as HTML
html_render render_safe_data_field Safely render arbitrary data
image_tools Image detection/rendering Base64 image detection and embedding
localization Currency/date formatting Babel-based localization helpers

Requirements

  • Python 3.10+
  • Babel (for localization filters)
  • Pillow (for image tools)

License

MIT

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

fastpluggy_ui_tools-0.1.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

fastpluggy_ui_tools-0.1.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastpluggy_ui_tools-0.1.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for fastpluggy_ui_tools-0.1.1.tar.gz
Algorithm Hash digest
SHA256 538619aef633047a3d285be539c924f6b40c92a0b327308031164dd6be8361b8
MD5 3a189b1f55ad22b4c8edb7357880c093
BLAKE2b-256 610b1484f8b219704cdbd64d6b9c4b8642528502df52182af5513ed309719c65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastpluggy_ui_tools-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5005c98d7b16e082f7938768a742a1126a065bb026f92e6c698df44edb76a000
MD5 e6a78467155eb27d786b61f2dac194dd
BLAKE2b-256 d757bcbbe6e10a67e1115799213576e4ded24d889a240a3b5da3a024d8e5283b

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