sass-embedded-python
Embedded Sass Host for Python.
Overview
This is Python project to compile Sass/SCSS using Dart Sass <https://sass-lang.com/dart-sass/> that is primary implementation of Sass using Dart runtime.
Simple usage
Install:
pip install sass-embedded
Source:
@use "sass:list";
@use "sass:color";
$font-stack: Helvetica, Arial;
$primary-color: #333;
body {
$font-stack: list.append($font-stack, sans-serif);
font: $font-stack;
}
a {
color: $primary-color;
&:hover{
color: color.scale($primary-color, $lightness: 20%);
}
}
@debug $font-stack;
Run:
from pathlib import Path
from sass_embedded import compile_file
compile_file(Path("style.scss"))
Output:
body {
font: Helvetica, Arial, sans-serif;
}
a {
color: #333;
}
a:hover {
color: rgb(91.8, 91.8, 91.8);
}
Motivation
I develop sphinx-revealjs that is Python Project to generate HTML presentation from reStructuredText or Markdown.
Reveal.js uses Sass to create presentation themes, and this uses sass:color module since v5.2.0. But sphinxcontrib-sass does not compile themes, because this module is not supported by LibSass.
To resolve it, I am developing optional extension optimized sphinx-revealjs. Concurrently I will develop generic project for multiple usecases.
This is the side of “generic project”.
Project goal
Final goal is to have features as same as other “Sass Embedded” libraries.
But I will split some steps for it.
First goal
Works as compile Sass/SCSS with subprocess-based actions.
Provide single entrypoint to compile sources using Dart Sass native executable.
Generate Dart Sass bundled bdist files every platforms.
Second goal
Works as “Sass Embedded Host for Python”.
Support The Embedded Sass Protocol.
Third goal
Works as alternative to libsass-python.
Support all api of libsass-python using Dart Sass native executable.
Support
This project supports only Python 3.10+.
License
I plan for Apache License 2.0.
Metadata
Release files for sass-embedded 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sass_embedded-0.1.5.tar.gz | 86.1 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| sass_embedded-0.1.5-py3-none-win_arm64.whl | Python 3 | none | Windows ARM64 | Details |
| sass_embedded-0.1.5-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| sass_embedded-0.1.5-py3-none-musllinux_1_2_x86_64.whl | Python 3 | none | Linux musl 1.2+ x86-64 | Details |
| sass_embedded-0.1.5-py3-none-musllinux_1_2_aarch64.whl | Python 3 | none | Linux musl 1.2+ ARM64 | Details |
| sass_embedded-0.1.5-py3-none-manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
| sass_embedded-0.1.5-py3-none-manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| sass_embedded-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.6 MB
Release files / sass_embedded-0.1.5.tar.gz
| Download URL | sass_embedded-0.1.5.tar.gz |
|---|---|
| Size | 86.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
117ed468c2391cf7c7e8432da97837ce8939af2bf4015a01cefc0b2ffef7fb5c
|
|
BLAKE2b-256 checksum How to use checksums |
d7bf3848a84a207a6239d04985ed9349bafe50fa463d89231d759f2847a1a410
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency logRelease files / sass_embedded-0.1.5-py3-none-win_arm64.whl
| Download URL | sass_embedded-0.1.5-py3-none-win_arm64.whl |
|---|---|
| Size | 4.3 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
d2481ff762bf35e2e7b8a26c644c4d35b0f76301b19c53eef3555abf1afda180
|
|
BLAKE2b-256 checksum How to use checksums |
63cefb385202a49081f13a31f1b39a56adc1d7ff7c0171d14506dfb7026288c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency logRelease files / sass_embedded-0.1.5-py3-none-win_amd64.whl
| Download URL | sass_embedded-0.1.5-py3-none-win_amd64.whl |
|---|---|
| Size | 4.4 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
30366da101b4bffde5b872beebbdf7b1ad50256aef2b8d60b3fa97cfe5061fdf
|
|
BLAKE2b-256 checksum How to use checksums |
b2bceb0f5a81e6944e8498a6b245d5004f1a37fdd3be8ce58989560795caf47b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency logRelease files / sass_embedded-0.1.5-py3-none-musllinux_1_2_x86_64.whl
| Download URL | sass_embedded-0.1.5-py3-none-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 4.6 MB |
| Tags | Linux musl 1.2+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
2f2fa05a4f3f953b73dffcf310f14b2021f8d2be022b48de397fa6e60ede40d9
|
|
BLAKE2b-256 checksum How to use checksums |
4d420c1ed69c187672776b9f2269c2ca366195669ef653b66b78fcaf7468b025
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency logRelease files / sass_embedded-0.1.5-py3-none-musllinux_1_2_aarch64.whl
| Download URL | sass_embedded-0.1.5-py3-none-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 4.4 MB |
| Tags | Linux musl 1.2+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
d28a69da01c8a2cd5a229bfe65a2ca3ba8aad55a081021d8869a68bf81abba5c
|
|
BLAKE2b-256 checksum How to use checksums |
92edb9a2506db4aa2b0a531d0c8902c145a87ad5f82df42a7d061d1887da7461
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency logRelease files / sass_embedded-0.1.5-py3-none-manylinux_2_17_x86_64.whl
| Download URL | sass_embedded-0.1.5-py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
c1e9ff4ae682e73f823d85343f5c6b47fdad75fa55fd9f453444762c1c6b148c
|
|
BLAKE2b-256 checksum How to use checksums |
9b0633dde44740e6a410e4a1aff431e275cd3724eafdbf23fb1e4f5475d841bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency logRelease files / sass_embedded-0.1.5-py3-none-manylinux_2_17_aarch64.whl
| Download URL | sass_embedded-0.1.5-py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 4.3 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
a995cb114f1529328fd2298fed4650a35d4375a58c05cc8cae9c105d04583b3d
|
|
BLAKE2b-256 checksum How to use checksums |
f1c1ce91b6ddc19161ca9d31accb5d015056e01940ffafbb220faee7ada843bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency logRelease files / sass_embedded-0.1.5-py3-none-any.whl
| Download URL | sass_embedded-0.1.5-py3-none-any.whl |
|---|---|
| Size | 18.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45996d9db2a8526b5005874ab2a413334a7e3e8672a780314cf26010f9adb2b8
|
|
BLAKE2b-256 checksum How to use checksums |
7b7f87bd943883c7162818411e0cf9e18cd781f78d636ce1ab2b5c308cc02e20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency log