Skip to main content

build-status coverage

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

Quickstart

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

Installation:

pip install pyScss

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, or read it on RTD: http://pyscss.readthedocs.org/en/latest/

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

Obligatory

Copyright © 2012 German M. Bravo (Kronuz). Additional credits in the documentation.

Licensed under the MIT license, reproduced in LICENSE.

Metadata

Release files for pyScss-PP 1.4.1

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

Source distribution (sdist)

Source distribution for pyScss-PP 1.4.1
File Size Uploaded
pyscss_pp-1.4.1.tar.gz 123.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyScss-PP 1.4.1
File Interpreter ABI Platform
pyscss_pp-1.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 247.1 kB

Release files / pyscss_pp-1.4.1.tar.gz

Download URL pyscss_pp-1.4.1.tar.gz
Size 123.1 kB
Tags Source
SHA-256 checksum
How to use checksums
59fe5e121e9eda71f32945537c4b56020366d5419813503592b2048ca5be5890
BLAKE2b-256 checksum
How to use checksums
b375842b95346670908ffb06c86820b227f12a2558205a38146f09b16c6d0e97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.2

Release files / pyscss_pp-1.4.1-py3-none-any.whl

Download URL pyscss_pp-1.4.1-py3-none-any.whl
Size 124.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a74be26569cc30aa6ce8541d52618b4e999f38f149a92405751876a6f67c367
BLAKE2b-256 checksum
How to use checksums
25b144b4032f69c9d2b6f61430e1b738a4394d89d78227a4513ce9cbf078e177
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.2

Release history Release notifications | RSS feed

This release

1.4.1 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