Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

dash-grid-normalizer

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Malicious code was recently detected in this package.

Affected versions:

0.0.10.0.20.0.30.0.40.0.5

dash-grid-normalizer

Responsive grid and gutter helpers for dashboard widget layouts

pipPyPI
Version
0.0.5
Weekly downloads
331
Maintainers
1

dash-grid-normalizer

Small helpers for responsive dashboard widget grids: column spans, gutter normalization, and breakpoint scaling.

Installation

pip install dash-grid-normalizer

Quick start

from dash_grid_normalizer import LayoutGrid, normalize_gutter, apply_breakpoint_scale

grid = LayoutGrid(columns=12, gutter=8)
print(grid.column_width_pct())          # 8.3333
print(normalize_gutter(48))             # 32 (clamped to max)
print(apply_breakpoint_scale(16, 1.25)) # 20

API

SymbolDescription
LayoutGridColumn grid with configurable gutter
normalize_gutter(value, *, min_px=4, max_px=32)Clamp gutter to a sane pixel range
apply_breakpoint_scale(base, scale=1.0)Scale a base size for a breakpoint
layout_version()Package version string

License

MIT

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts