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

pyScss2-1.4.0.tar.gz (119.2 kB view details)

Uploaded Source

Built Distribution

pyScss2-1.4.0-cp37-cp37m-macosx_10_15_x86_64.whl (134.6 kB view details)

Uploaded CPython 3.7m macOS 10.15+ x86-64

File details

Details for the file pyScss2-1.4.0.tar.gz.

File metadata

  • Download URL: pyScss2-1.4.0.tar.gz
  • Upload date:
  • Size: 119.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pyScss2-1.4.0.tar.gz
Algorithm Hash digest
SHA256 3cef4ff26be12cc9120e3f8c65bcc8ac2cbb7b00e0d2b164678d568483339163
MD5 cf96c5aea891acd9624244ba30b5a845
BLAKE2b-256 3594a8216cbb0fd6a501de39a655762a449d479590eb588dcc18ea128b9b3c46

See more details on using hashes here.

Provenance

File details

Details for the file pyScss2-1.4.0-cp37-cp37m-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: pyScss2-1.4.0-cp37-cp37m-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 134.6 kB
  • Tags: CPython 3.7m, macOS 10.15+ x86-64
  • Uploaded using 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

File hashes

Hashes for pyScss2-1.4.0-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 e59a4d2606401c467f3bbd61fbffcc9b79a19e2c80e2c3ed73ca63c50ea63651
MD5 8066b5115e60be7b0977cfee74d966c5
BLAKE2b-256 459b930de0abf93205efc19b9aa8e3d1b1790f1c245477381ced994eeed1a212

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