Skip to main content

grass-python

PyO3 bindings around the pure-Rust grass Sass compiler (0.13.4, dart-sass 1.54.3 compatible) for the Odoo 19 asset pipeline. Compilation runs in-process (no subprocess, GIL-safe under free-threaded Python), replacing the legacy sassc/sass CLI compilers.

Build & Publish

Local build:

pip install maturin
maturin build --release        # or: pip install .

Publishing is handled by .github/workflows/grass-python.yml (repo root): on a grass-python-v* tag it builds cp314t wheels for darwin-arm64 and linux-x86_64 plus an sdist, and publishes them to PyPI (Trusted Publisher, pypi environment). The Odoo repo pins the published package in requirements.txt (grass-python==0.13.4), so neither the Docker image nor dev installs compile Rust at build time.

Usage

import grass_python

css = grass_python.compile("a { b { color: red; } }")

Raises grass_python.SassError on invalid input.

Metadata

Release files for grass-python-freethreaded 0.13.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for grass-python-freethreaded 0.13.4
File Interpreter ABI Platform
grass_python_freethreaded-0.13.4-cp314-cp314t-manylinux_2_34_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.34+ x86-64 Details
grass_python_freethreaded-0.13.4-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details

Total release size: 2.9 MB

Release files / grass_python_freethreaded-0.13.4-cp314-cp314t-manylinux_2_34_x86_64.whl

Download URL grass_python_freethreaded-0.13.4-cp314-cp314t-manylinux_2_34_x86_64.whl
Size 1.5 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
3ee4b150101f6c66fd46ba8138800064cf9d74ed9f42b76f944c86ab21767092
BLAKE2b-256 checksum
How to use checksums
ed4738ab2f000a8d93054fcdfe192d582fe25dc6e0e52342a5c333e67d10bd04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / grass_python_freethreaded-0.13.4-cp314-cp314t-macosx_11_0_arm64.whl

Download URL grass_python_freethreaded-0.13.4-cp314-cp314t-macosx_11_0_arm64.whl
Size 1.4 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1e43113c1a02d2a60be261657849e04f9fc3deb4214e601d9bd60f3d34def5d9
BLAKE2b-256 checksum
How to use checksums
dff7015a1365b438db8bef73f74b9ea0123c01818bdd125b7e5c555700b824ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release history Release notifications | RSS feed

This release

0.13.4 This release

2 release files

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