Skip to main content

pyScss, a Scss compiler for Python

Project description

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

Quickstart

You need Python 2.6 or later. Python 3 is also supported.

Installation:

pip install pyScss

Usage:

python -mscss < style.scss

Python API:

from scss import Scss
compiler = Scss()
compiler.compile("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.2.0.tar.gz (645.4 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pyScss-1.2.0.tar.gz
Algorithm Hash digest
SHA256 88dd2d34d3625374a6978b12fa148e744656e391527d5e44878990c7c4bb7499
MD5 59e15293c69bbf7902b04af16227f609
BLAKE2b-256 22386f96b1435f8152f809bcb47fa56439f29c269ee8d1df4d6f06e9c2e8673e

See more details on using hashes here.

Supported by

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