Skip to main content

pyScss, a Scss compiler for Python

Project description

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

Originally it was forked from unmaintained https://github.com/Kronuz/pyScss.

Quickstart

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

Installation:

pip install pyScss2

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.

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

Obligatory

Copyright © 2020 Ivan Kolodyazhny (e0ne). 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-2.0.0.tar.gz (121.4 kB view details)

Uploaded Source

Built Distribution

pyScss2-2.0.0-cp37-cp37m-macosx_10_15_x86_64.whl (135.8 kB view details)

Uploaded CPython 3.7m macOS 10.15+ x86-64

File details

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

File metadata

  • Download URL: pyScss2-2.0.0.tar.gz
  • Upload date:
  • Size: 121.4 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-2.0.0.tar.gz
Algorithm Hash digest
SHA256 7ed82de16f55afa80a9002a76f95e88637eb74481ef5052126a0c2dce0d9aa8a
MD5 e5dfccae2e14787ddb50f14bbced7c69
BLAKE2b-256 2808918fff3e401ce8909827df3de36524fde84859f825d3504452500209c9e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyScss2-2.0.0-cp37-cp37m-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 135.8 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-2.0.0-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 3c2a31f0021fb91b549ee14858bb4a3cb33456bbc887103ffc4b3d9ccb231980
MD5 01436e824f90014a7c80c8bae93501b9
BLAKE2b-256 8eee03d1008bbe4c98651f7f311283d11568d9c1555d6acbd6852409d210f952

See more details on using hashes here.

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