Skip to main content

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

Metadata

Release files for fastpluggy-ui-tools 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastpluggy-ui-tools 0.1.1
File Size Uploaded
fastpluggy_ui_tools-0.1.1.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fastpluggy-ui-tools 0.1.1
File Interpreter ABI Platform
fastpluggy_ui_tools-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.5 kB

Release files / fastpluggy_ui_tools-0.1.1.tar.gz

Download URL fastpluggy_ui_tools-0.1.1.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
538619aef633047a3d285be539c924f6b40c92a0b327308031164dd6be8361b8
BLAKE2b-256 checksum
How to use checksums
610b1484f8b219704cdbd64d6b9c4b8642528502df52182af5513ed309719c65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / fastpluggy_ui_tools-0.1.1-py3-none-any.whl

Download URL fastpluggy_ui_tools-0.1.1-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5005c98d7b16e082f7938768a742a1126a065bb026f92e6c698df44edb76a000
BLAKE2b-256 checksum
How to use checksums
d757bcbbe6e10a67e1115799213576e4ded24d889a240a3b5da3a024d8e5283b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page