Skip to main content

Beautiful glassmorphism dashboards for Plotly Dash + Polars

Project description

GlassDash

Beautiful glassmorphism dashboards for Plotly Dash + Polars.

Installation

pip install glassdash

Or install from source:

pip install -e .

Quick Start

from dash import Dash
from glassdash import GlassDashboard, GlassTheme, KPICard
from glassdash.components import AreaChart, StackedBarChart
import polars as pl

app = Dash(__name__)
theme = GlassTheme()

df = pl.DataFrame({
    "month": ["2024-07", "2024-08", "2024-09"],
    "fte": [18.2, 19.1, 19.5],
})

app.layout = GlassDashboard(
    title="My Dashboard",
    theme=theme,
    children=[
        KPICard(title="FTE", value=19.5, trend=2.3, theme=theme),
        AreaChart(df, x="month", y="fte", theme=theme),
        StackedBarChart(df, x="month", segments={...}, theme=theme),
    ],
)

if __name__ == "__main__":
    app.run(debug=True, port=8050)

Components

Component Description
GlassCard Frosted glass container
KPICard Key metric with trend indicator
LineChart Time series line chart
AreaChart Line chart with gradient fill
MultiLinesChart Multiple overlaid lines
MultiBarsChart Grouped bar chart
StackedBarChart Stacked proportional bars
StackedBarWithLine Stacked bars + dashed line
StackedBarWithBreakdown Stacked bars + breakdown
BarChart Simple bar chart
DualAreaChart Two overlaid areas
RadialGauge Arc/gauge visualization

Theme

Customize colors, fonts, and effects:

custom = GlassTheme(
    colors={
        "primary": "#e94560",
        "accent": "#4facfe",
        "glass_bg": "rgba(255,255,255,0.15)",
    },
    fonts={"family": "Inter, sans-serif", "kpi_value": 28},
    effects={"blur": 12, "glow": True},
)

Development

# Install dev dependencies
pip install -e ".[dev]"

# Run linter
ruff check glassdash/

# Run demo
python -m glassdash.demo.app

Requirements

  • Python >= 3.10
  • dash >= 2.0
  • polars >= 0.19
  • plotly >= 5.0

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

glassdash-0.2.0.tar.gz (100.2 kB view details)

Uploaded Source

Built Distribution

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

glassdash-0.2.0-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

Details for the file glassdash-0.2.0.tar.gz.

File metadata

  • Download URL: glassdash-0.2.0.tar.gz
  • Upload date:
  • Size: 100.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for glassdash-0.2.0.tar.gz
Algorithm Hash digest
SHA256 340cde4e92c19196f7da5ca32e121ec30c215fe97f16a9502df0e54c06e43519
MD5 7a4c7588b187c614c27631c2e18e43bd
BLAKE2b-256 68554dc084d5a1882f8f495d28a475f055532fabda4035372a651177a3d39903

See more details on using hashes here.

File details

Details for the file glassdash-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: glassdash-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 36.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for glassdash-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 353da6f6c0b432ac7199d8ff080ac6e7862b907debd3159140b11528dc2dbfd1
MD5 d2c855b6cc0b967ff410916513cd2b36
BLAKE2b-256 5352a52a8927dd75518c3d32798c3b987beb336661b72278902ef4af845bf286

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