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

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_pp-1.4.1.tar.gz (123.1 kB view details)

Uploaded Source

Built Distribution

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

pyscss_pp-1.4.1-py3-none-any.whl (124.1 kB view details)

Uploaded Python 3

File details

Details for the file pyscss_pp-1.4.1.tar.gz.

File metadata

  • Download URL: pyscss_pp-1.4.1.tar.gz
  • Upload date:
  • Size: 123.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.2

File hashes

Hashes for pyscss_pp-1.4.1.tar.gz
Algorithm Hash digest
SHA256 59fe5e121e9eda71f32945537c4b56020366d5419813503592b2048ca5be5890
MD5 7126323ec021ad3312f550234bc5950e
BLAKE2b-256 b375842b95346670908ffb06c86820b227f12a2558205a38146f09b16c6d0e97

See more details on using hashes here.

File details

Details for the file pyscss_pp-1.4.1-py3-none-any.whl.

File metadata

  • Download URL: pyscss_pp-1.4.1-py3-none-any.whl
  • Upload date:
  • Size: 124.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.2

File hashes

Hashes for pyscss_pp-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1a74be26569cc30aa6ce8541d52618b4e999f38f149a92405751876a6f67c367
MD5 4260bcf9201b7e2ef789a448d29d497f
BLAKE2b-256 25b144b4032f69c9d2b6f61430e1b738a4394d89d78227a4513ce9cbf078e177

See more details on using hashes here.

Supported by

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