Skip to main content

pyScss, a Scss compiler for Python

pyScss2 is a compiler for the Sass language, a superset of CSS3 that adds programming capabilities and some other syntactic sugar.

Originally it was forked from unmaintained https://github.com/Kronuz/pyScss.

Quickstart

You need Python 2.7+ or 3.3+. PyPy is also supported.

Installation:

pip install pyScss2

Usage:

python -mscss < style.scss

Python API:

from scss import Compiler
Compiler().compile_string("a { color: red + green; }")

Features

95% of Sass 3.2 is supported. If it’s not supported, it’s a bug! Please file a ticket.

Most of Compass 0.11 is also built in.

Further reading

Documentation is in Sphinx. You can build it yourself by running make html from within the docs directory.

The canonical syntax reference is part of the Ruby Sass documentation: http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html

Obligatory

Copyright © 2020 Ivan Kolodyazhny (e0ne). Additional credits in the documentation.

Licensed under the MIT license, reproduced in LICENSE.

Metadata

Release files for pyScss2 2.0.0

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

Source distribution (sdist)

Source distribution for pyScss2 2.0.0
File Size Uploaded
pyScss2-2.0.0.tar.gz 121.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyScss2 2.0.0
File Interpreter ABI Platform
pyScss2-2.0.0-cp37-cp37m-macosx_10_15_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.15+ x86-64 Details

Total release size: 257.3 kB

Release files / pyScss2-2.0.0.tar.gz

Download URL pyScss2-2.0.0.tar.gz
Size 121.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7ed82de16f55afa80a9002a76f95e88637eb74481ef5052126a0c2dce0d9aa8a
BLAKE2b-256 checksum
How to use checksums
2808918fff3e401ce8909827df3de36524fde84859f825d3504452500209c9e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7

Release files / pyScss2-2.0.0-cp37-cp37m-macosx_10_15_x86_64.whl

Download URL pyScss2-2.0.0-cp37-cp37m-macosx_10_15_x86_64.whl
Size 135.8 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
3c2a31f0021fb91b549ee14858bb4a3cb33456bbc887103ffc4b3d9ccb231980
BLAKE2b-256 checksum
How to use checksums
8eee03d1008bbe4c98651f7f311283d11568d9c1555d6acbd6852409d210f952
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.4.0

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