Skip to main content

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”.

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sass_embedded-0.1.5.tar.gz (86.1 kB view details)

Uploaded Source

Built Distributions

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

sass_embedded-0.1.5-py3-none-win_arm64.whl (4.3 MB view details)

Uploaded Python 3Windows ARM64

sass_embedded-0.1.5-py3-none-win_amd64.whl (4.4 MB view details)

Uploaded Python 3Windows x86-64

sass_embedded-0.1.5-py3-none-musllinux_1_2_x86_64.whl (4.6 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

sass_embedded-0.1.5-py3-none-musllinux_1_2_aarch64.whl (4.4 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

sass_embedded-0.1.5-py3-none-manylinux_2_17_x86_64.whl (4.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

sass_embedded-0.1.5-py3-none-manylinux_2_17_aarch64.whl (4.3 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

sass_embedded-0.1.5-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file sass_embedded-0.1.5.tar.gz.

File metadata

  • Download URL: sass_embedded-0.1.5.tar.gz
  • Upload date:
  • Size: 86.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sass_embedded-0.1.5.tar.gz
Algorithm Hash digest
SHA256 117ed468c2391cf7c7e8432da97837ce8939af2bf4015a01cefc0b2ffef7fb5c
MD5 76bde28fe83470e9923045f197d635be
BLAKE2b-256 d7bf3848a84a207a6239d04985ed9349bafe50fa463d89231d759f2847a1a410

See more details on using hashes here.

Provenance

The following attestation bundles were made for sass_embedded-0.1.5.tar.gz:

Publisher: release.yaml on attakei/sass-embedded-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sass_embedded-0.1.5-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for sass_embedded-0.1.5-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 d2481ff762bf35e2e7b8a26c644c4d35b0f76301b19c53eef3555abf1afda180
MD5 0a6000a46143368b39b596c3448983ef
BLAKE2b-256 63cefb385202a49081f13a31f1b39a56adc1d7ff7c0171d14506dfb7026288c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for sass_embedded-0.1.5-py3-none-win_arm64.whl:

Publisher: release.yaml on attakei/sass-embedded-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sass_embedded-0.1.5-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for sass_embedded-0.1.5-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 30366da101b4bffde5b872beebbdf7b1ad50256aef2b8d60b3fa97cfe5061fdf
MD5 5696cdd58fb54eaccac8828ead8d6b86
BLAKE2b-256 b2bceb0f5a81e6944e8498a6b245d5004f1a37fdd3be8ce58989560795caf47b

See more details on using hashes here.

Provenance

The following attestation bundles were made for sass_embedded-0.1.5-py3-none-win_amd64.whl:

Publisher: release.yaml on attakei/sass-embedded-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sass_embedded-0.1.5-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for sass_embedded-0.1.5-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2f2fa05a4f3f953b73dffcf310f14b2021f8d2be022b48de397fa6e60ede40d9
MD5 a1270c624069642d08664a01c26315e9
BLAKE2b-256 4d420c1ed69c187672776b9f2269c2ca366195669ef653b66b78fcaf7468b025

See more details on using hashes here.

Provenance

The following attestation bundles were made for sass_embedded-0.1.5-py3-none-musllinux_1_2_x86_64.whl:

Publisher: release.yaml on attakei/sass-embedded-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sass_embedded-0.1.5-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for sass_embedded-0.1.5-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 d28a69da01c8a2cd5a229bfe65a2ca3ba8aad55a081021d8869a68bf81abba5c
MD5 eec74eef6172399e63fa458b846266ae
BLAKE2b-256 92edb9a2506db4aa2b0a531d0c8902c145a87ad5f82df42a7d061d1887da7461

See more details on using hashes here.

Provenance

The following attestation bundles were made for sass_embedded-0.1.5-py3-none-musllinux_1_2_aarch64.whl:

Publisher: release.yaml on attakei/sass-embedded-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sass_embedded-0.1.5-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for sass_embedded-0.1.5-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 c1e9ff4ae682e73f823d85343f5c6b47fdad75fa55fd9f453444762c1c6b148c
MD5 6bb53c2981e4f30c99a10eb0b7ba446b
BLAKE2b-256 9b0633dde44740e6a410e4a1aff431e275cd3724eafdbf23fb1e4f5475d841bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for sass_embedded-0.1.5-py3-none-manylinux_2_17_x86_64.whl:

Publisher: release.yaml on attakei/sass-embedded-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sass_embedded-0.1.5-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for sass_embedded-0.1.5-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 a995cb114f1529328fd2298fed4650a35d4375a58c05cc8cae9c105d04583b3d
MD5 c11dcc3b3ed84126e81b942f10e43f9c
BLAKE2b-256 f1c1ce91b6ddc19161ca9d31accb5d015056e01940ffafbb220faee7ada843bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for sass_embedded-0.1.5-py3-none-manylinux_2_17_aarch64.whl:

Publisher: release.yaml on attakei/sass-embedded-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sass_embedded-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: sass_embedded-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sass_embedded-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 45996d9db2a8526b5005874ab2a413334a7e3e8672a780314cf26010f9adb2b8
MD5 139273eae580fe4b9ce45862174a077d
BLAKE2b-256 7b7f87bd943883c7162818411e0cf9e18cd781f78d636ce1ab2b5c308cc02e20

See more details on using hashes here.

Provenance

The following attestation bundles were made for sass_embedded-0.1.5-py3-none-any.whl:

Publisher: release.yaml on attakei/sass-embedded-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page