Skip to main content

pyScss, a Scss compiler for Python

Project description

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.2+. 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.

Project details


Download files

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

Source Distribution

pyScss-1.3.5.tar.gz (123.9 kB view details)

Uploaded Source

File details

Details for the file pyScss-1.3.5.tar.gz.

File metadata

  • Download URL: pyScss-1.3.5.tar.gz
  • Upload date:
  • Size: 123.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyScss-1.3.5.tar.gz
Algorithm Hash digest
SHA256 14a25c33c221a66bb1f000a6a067f376528d3df2f9333cee9c95709a9280cdb0
MD5 b349a750ac77033d8e6b6de1d6912263
BLAKE2b-256 017bc6bfb2515ed08cbfb76b0e72254f24caf76f25676d72024837a85a1e68f5

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page