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.1.0.tar.gz (80.5 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.1.0-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for glassdash-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3bdb22b4b94d465227155160f06a5d6b779a22d8121b073b9310ae451456bd3b
MD5 458a1c692f05bfa1fd6a6bdab47f54cd
BLAKE2b-256 f34ff4251e0f8c422c8b035839d9246ee0f4de772767ff646644ecce8cf944d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: glassdash-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 34.9 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff993a6b5b58164a0e45814e9ce7075bd1f87c76a4345fbc5f18283d3ddf8dbc
MD5 4b0f1b2429ceffa48537fb18a47e5704
BLAKE2b-256 5a155739e8639d1018c0a3896f1c0af20ff76f20d35c363bc8f4b226c1e7a168

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