$npx skillfedfor your agent

stretchable

Layout library for Python (based on Taffy, a rust-powered implementation of CSS Grid/Flexbox)

With conditionsPyPI Application FrameworksReleased Oct 2025106.2K downloads / mopermissive licensePlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — stretchable-1.1.8-cp38-abi3-macosx_10_12_x86_64.whl · stretchable-1.1.8-cp38-abi3-macosx_11_0_arm64.whl · stretchable-1.1.8-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
v1.1.8 · released 2025-10-29 · Python >=3.8 · 1 runtime deps: attrs

Yes, if you need deterministic CSS-like layout computation in Python. The library is stable (Production/Stable classifier), well-typed, permissively licensed, and covers common platforms. Install friction is moderate due to compiled bindings, but wheels are pre-built. Maintenance is aging (289 days since last release) but not stalled; verify that the API and test coverage meet your edge-case needs before committing to a critical path.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Medium install friction due to compiled Rust bindings, but pre-built wheels cover common platforms (x86_64, ARM, Windows, macOS, Linux).
  • Last release 289 days ago; repository active with no archived status, though maintenance pace is aging.

License · maintenance · safety

permissive license (permissive) — MIT license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.

last release 2025-10-29 (289 days) · last repo commit 2025-12-13 · 41 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 106,235 downloads/mo, #12,661 on PyPI

Verify before relying

from stretchable import Node
from stretchable.style import AUTO, PCT

root = Node(margin=20, size=(500, 300)).add(
    Node(border=5, size=(50 * PCT, AUTO)),
    Node(key="child", padding=10 * PCT, size=50 * PCT),
)
root.compute_layout()
child_node = root.find("/child")
print(child_node.get_box())
  • Whether the ~900 test suite (including Selenium-based tests) reflects real-world layout accuracy across edge cases.
  • Performance characteristics when laying out very large node trees or deeply nested structures.
  • Stability and API surface coverage compared to the original Stretch library it replaced.
Same gist for agents: .md · .json

What it is and what it does

stretchable is a Python binding to Taffy, a Rust implementation of CSS layout algorithms (Block, Flexbox, and Grid). It lets you build a tree of layout nodes, assign CSS-like properties (margin, padding, size, flex rules), and compute final positions and dimensions—all without a browser or DOM. The library is context-agnostic, so it works equally well for UI frameworks, report generators, plotting systems, or any application needing deterministic layout math.

The package ships as pre-compiled wheels for modern Python versions (3.8–3.13) across Windows, macOS (Intel and ARM), and Linux (glibc and musl). It has one runtime dependency (attrs) and is typed. Development is steady but aging; the last release was 289 days ago, and the repository shows no signs of abandonment but also no rapid iteration.

Use it for

  • Build responsive UI layouts for terminal applications or custom frameworks without HTML/CSS parsing.
  • Generate page layouts for PDF reports or complex data visualizations where CSS-like rules simplify positioning.
  • Compute plot layouts for multi-panel scientific figures with automatic spacing and alignment.
  • Prototype layout logic in Python before porting to web or native frontends that use the same CSS spec.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need deterministic CSS-like layout computation in Python.

The library is stable (Production/Stable classifier), well-typed, permissively licensed, and covers common platforms. Install friction is moderate due to compiled bindings, but wheels are pre-built. Maintenance is aging (289 days since last release) but not stalled; verify that the API and test coverage meet your edge-case needs before committing to a critical path.

Install

stretchable on PyPI

Before you install

Medium install friction due to compiled Rust bindings, but pre-built wheels cover common platforms (x86_64, ARM, Windows, macOS, Linux). Last release 289 days ago; repository active with no archived status, though maintenance pace is aging.

License in practice

MIT license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.

Quickstart

from stretchable import Node
from stretchable.style import AUTO, PCT

root = Node(margin=20, size=(500, 300)).add(
    Node(border=5, size=(50 * PCT, AUTO)),
    Node(key="child", padding=10 * PCT, size=50 * PCT),
)
root.compute_layout()
child_node = root.find("/child")
print(child_node.get_box())

Verify before relying

  • Whether the ~900 test suite (including Selenium-based tests) reflects real-world layout accuracy across edge cases.
  • Performance characteristics when laying out very large node trees or deeply nested structures.
  • Stability and API surface coverage compared to the original Stretch library it replaced.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.8
Install frictionMedium. Platform-specific wheel
Runtime dependencies
1 package
attrs
MaintenanceAging 289 days since the last release
Last repo commit
First released
Downloads106,235 / month, #12,661 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyProgramming Language :: RustTyping :: Typed

Evidence: stretchable-1.1.8-cp38-abi3-macosx_10_12_x86_64.whl; stretchable-1.1.8-cp38-abi3-macosx_11_0_arm64.whl; stretchable-1.1.8-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; stretchable-1.1.8-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; stretchable-1.1.8-cp38-abi3-musllinux_1_2_aarch64.whl; stretchable-1.1.8-cp38-abi3-musllinux_1_2_x86_64.whl; stretchable-1.1.8-cp38-abi3-win32.whl; stretchable-1.1.8-cp38-abi3-win_amd64.whl; stretchable-1.1.8-cp38-abi3-win_arm64.whl

Tags

Capabilities
css layout engine pythonflexbox grid layout librarypython layout computationcss block layout algorithmtaffy rust layout bindings
Topics
layout-enginecss-algorithmsrust-bindings
PyPI keywords
flexboxgridblockstretchcsslayout

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “css layout engine python”

  • stretchablestretchable is a Python layout engine that implements CSS Block,…
  • weasyprintWeasyPrint converts HTML and CSS into PDF documents using a…
  • django-crispy-formsRenders Django forms programmatically with full HTML control using…

Give your agent the search over MCP, or paste the wish link into any chat.

More Application Frameworks packages

fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
textual Worth it
PyPI · Application Frameworks · released Jun 2026

Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.

Install it if you're developing CLI tools, dashboards, or interactive terminal applications.

MITpure Python
443.6Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
mcp Worth it
PyPI · Application Frameworks · released Jul 2026

Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.

Install it if you need to build or connect to servers.

MITpure Python · 3.10+
319.3Mdownloads / mo
Werkzeug Worth it
PyPI · Application Frameworks · released Apr 2026

Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.

BSD-3-Clausepure Python · 3.9+
268.1Mdownloads / mo

See also pictex · sphinx_design · minify-html · ruff-format · sphinx-panels · dash-bootstrap-components · soupsieve · grandalf · django-crispy-forms · selenium