Skip to main content

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

Metadata

Release files for glassdash 0.2.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 glassdash 0.2.0
File Size Uploaded Provenance Actions
glassdash-0.2.0.tar.gz 100.2 kB Without provenance Details for glassdash-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for glassdash 0.2.0
File Interpreter ABI Platform Actions
glassdash-0.2.0-py3-none-any.whl Python 3 none any Details for glassdash-0.2.0-py3-none-any.whl

Total release size: 136.5 kB

Release files / glassdash-0.2.0.tar.gz

Download URL glassdash-0.2.0.tar.gz
Size 100.2 kB
Tags Source
SHA-256 checksum
How to use checksums
340cde4e92c19196f7da5ca32e121ec30c215fe97f16a9502df0e54c06e43519
BLAKE2b-256 checksum
How to use checksums
68554dc084d5a1882f8f495d28a475f055532fabda4035372a651177a3d39903
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / glassdash-0.2.0-py3-none-any.whl

Download URL glassdash-0.2.0-py3-none-any.whl
Size 36.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
353da6f6c0b432ac7199d8ff080ac6e7862b907debd3159140b11528dc2dbfd1
BLAKE2b-256 checksum
How to use checksums
5352a52a8927dd75518c3d32798c3b987beb336661b72278902ef4af845bf286
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for glassdash 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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