Skip to main content

Responsive grid and gutter helpers for dashboard widget layouts

This project has been quarantined.

PyPI Admins need to review this project before it can be restored. While in quarantine, the project is not installable by clients, and cannot be being modified by its maintainers.

Read more in the project in quarantine help article.

Project description

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

Symbol Description
LayoutGrid Column 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

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

dash_grid_normalizer-0.0.5.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

dash_grid_normalizer-0.0.5-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file dash_grid_normalizer-0.0.5.tar.gz.

File metadata

  • Download URL: dash_grid_normalizer-0.0.5.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for dash_grid_normalizer-0.0.5.tar.gz
Algorithm Hash digest
SHA256 737debcd0ce92b13b2a9251506b097d49e9bd2784bc440bf93266e53a94b28fa
MD5 0c9ea518670afdb11e9f5b5654e5d4d6
BLAKE2b-256 df6319c10d492eb55f24fe531c14bcd471bba54dd600ab0843578f895db4be56

See more details on using hashes here.

File details

Details for the file dash_grid_normalizer-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for dash_grid_normalizer-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 aafdb8d2dc08adfbf7acaaec0b0d26fe2b031c8b6c2e36dc08342ca1ee28edb0
MD5 ceb58abdad111e1cecd53aeb74937395
BLAKE2b-256 bb9745d86ee8477c3d85053d1fcb8e218909baa4b4d3507943d8157c7b072e67

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