Skip to main content

tungsten-dashboards

Custom dashboards for Tungsten, the admin panel for FastAPI. People build their own dashboards by drag and drop.

What you get

  • A Dashboards page with a New dashboard button.
  • Drag and drop: move widgets by their handle and pick a width (quarter, half, three quarters, full). Saved at once.
  • Widgets from every plugin: your own widgets and those of HR, Finance, Tickets, Leads and any other installed plugin, grouped by plugin.
  • Built-in widgets that need no code: record counts, quick links and notes.
  • Start from an empty dashboard, the home page widgets, all widgets of one plugin, or a template.
  • Private or shared dashboards. Others can make their own copy of a shared one.
  • Home page: make a dashboard your own home page, or the home page for everyone.
  • Permissions dashboards.create and dashboards.share for roles.
  • Works with multi-tenancy: dashboards belong to the team they were made in.
  • A broken widget shows a short message in its own box; the rest of the page still loads.
  • Adds a Dashboards shortcut to the installed app with the PWA plugin.
  • Adds a Dashboard entry to the Quick Create + New menu when that plugin is installed.

Install

pip install tungsten-dashboards
from tungsten_dashboards import DashboardsPlugin

panel.plugin(DashboardsPlugin())
panel.create_tables(engine)   # creates the dashboard tables

Options

DashboardsPlugin(
    home=True,               # people can make a dashboard their home page
    builtin_widgets=True,    # Record counts, Quick links and Note
    navigation_group=None,
    navigation_sort=-90,
    hide=[],                 # widgets (classes or ids) never offered on dashboards
)

For other plugins

dashboards = panel.get_plugin("dashboards")
if dashboards is not None:
    dashboards.add_widgets([OverdueTasks])              # offered only on custom dashboards
    dashboards.add_template("Projects", [OverdueTasks])  # a starting point in "New dashboard"

Widgets can set dashboard_label, dashboard_description, dashboard_group, dashboard_span and dashboard_hidden.

Try it

pip install -e . -e plugins/dashboards uvicorn
uvicorn plugins.dashboards.example:app --reload

Full guide: https://tungsten.prisminfoways.com/docs/dashboards

Metadata

Release files for tungsten-dashboards 0.1.0

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

Source distribution (sdist)

Source distribution for tungsten-dashboards 0.1.0
File Size Uploaded
tungsten_dashboards-0.1.0.tar.gz 24.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tungsten-dashboards 0.1.0
File Interpreter ABI Platform
tungsten_dashboards-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 48.9 kB

Release files / tungsten_dashboards-0.1.0.tar.gz

Download URL tungsten_dashboards-0.1.0.tar.gz
Size 24.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c7ef0d4e8fa141d9cd2e5527e0ae38749462e59f4886a6eeaa438921715f7aae
BLAKE2b-256 checksum
How to use checksums
09797f950c06a5e9236a545644a075394fcf5daa97355183989ebd729958e053
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tungsten_dashboards-0.1.0-py3-none-any.whl

Download URL tungsten_dashboards-0.1.0-py3-none-any.whl
Size 24.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0478da34f5e4c879286bc83046cc12d41f3da687e6b52552d0c369729876ec62
BLAKE2b-256 checksum
How to use checksums
dcb10f3b617e18e4236304a75a3f4048958325797f73045ee49ce214b1e82ff3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release history Release notifications | RSS feed

This release

0.1.0 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