Skip to main content

SASS for Python: A straightforward binding of libsass for Python.

Project description

PyPI Build Status Build Status (Windows) Coverage Status

This package provides a simple Python extension module sass which is binding Libsass (written in C/C++ by Hampton Catlin and Aaron Leung). It’s very straightforward and there isn’t any headache related Python distribution/deployment. That means you can add just libsass into your setup.py’s install_requires list or requirements.txt file. Need no Ruby nor Node.js.

It currently supports CPython 2.7, 3.3–3.5, and PyPy 2.3+!

Features

  • You don’t need any Ruby/Node.js stack at all, for development or deployment either.

  • Fast. (Libsass is written in C++.)

  • Simple API. See the below example code for details.

  • Custom functions.

  • @import callbacks.

  • Support both tabbed (Sass) and braces (SCSS) syntax.

  • WSGI middleware for ease of development. It automatically compiles Sass/SCSS files for each request.

  • setuptools/distutils integration. You can build all Sass/SCSS files using setup.py build_sass command.

  • Works also on PyPy.

  • Provides prebuilt wheel binaries for Windows and Mac.

Install

It’s available on PyPI, so you can install it using pip (or easy_install):

$ pip install libsass

Example

>>> import sass
>>> print sass.compile(string='a { b { color: blue; } }')
a b {
  color: blue; }

Docs

There’s the user guide manual and the full API reference for libsass:

http://hongminhee.org/libsass-python/

You can build the docs by yourself:

$ cd docs/
$ make html

The built docs will go to docs/_build/html/ directory.

Credit

Hong Minhee wrote this Python binding of Libsass.

Hampton Catlin and Aaron Leung wrote Libsass, which is portable C/C++ implementation of SASS.

Hampton Catlin originally designed SASS language and wrote the first reference implementation of it in Ruby.

The above three softwares are all distributed under MIT license.

Download files

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

Source Distribution

libsass-0.12.3.tar.gz (295.2 kB view details)

Uploaded Source

Built Distributions

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

libsass-0.12.3-cp36-cp36m-win_amd64.whl (894.1 kB view details)

Uploaded CPython 3.6mWindows x86-64

libsass-0.12.3-cp36-cp36m-win32.whl (759.9 kB view details)

Uploaded CPython 3.6mWindows x86

libsass-0.12.3-cp36-cp36m-manylinux1_x86_64.whl (8.0 MB view details)

Uploaded CPython 3.6m

libsass-0.12.3-cp36-cp36m-macosx_10_12_x86_64.whl (758.5 kB view details)

Uploaded CPython 3.6mmacOS 10.12+ x86-64

libsass-0.12.3-cp36-cp36m-macosx_10_6_intel.whl (1.3 MB view details)

Uploaded CPython 3.6mmacOS 10.6+ Intel (x86-64, i386)

libsass-0.12.3-cp35-cp35m-win_amd64.whl (894.1 kB view details)

Uploaded CPython 3.5mWindows x86-64

libsass-0.12.3-cp35-cp35m-win32.whl (759.9 kB view details)

Uploaded CPython 3.5mWindows x86

libsass-0.12.3-cp35-cp35m-manylinux1_x86_64.whl (8.0 MB view details)

Uploaded CPython 3.5m

libsass-0.12.3-cp35-cp35m-macosx_10_12_x86_64.whl (758.4 kB view details)

Uploaded CPython 3.5mmacOS 10.12+ x86-64

libsass-0.12.3-cp35-cp35m-macosx_10_6_intel.whl (1.3 MB view details)

Uploaded CPython 3.5mmacOS 10.6+ Intel (x86-64, i386)

libsass-0.12.3-cp34-cp34m-win_amd64.whl (937.0 kB view details)

Uploaded CPython 3.4mWindows x86-64

libsass-0.12.3-cp34-cp34m-win32.whl (749.8 kB view details)

Uploaded CPython 3.4mWindows x86

libsass-0.12.3-cp34-cp34m-manylinux1_x86_64.whl (8.0 MB view details)

Uploaded CPython 3.4m

libsass-0.12.3-cp27-cp27mu-manylinux1_x86_64.whl (8.0 MB view details)

Uploaded CPython 2.7mu

libsass-0.12.3-cp27-cp27m-win_amd64.whl (937.3 kB view details)

Uploaded CPython 2.7mWindows x86-64

libsass-0.12.3-cp27-cp27m-win32.whl (749.1 kB view details)

Uploaded CPython 2.7mWindows x86

libsass-0.12.3-cp27-cp27m-macosx_10_11_x86_64.whl (758.9 kB view details)

Uploaded CPython 2.7mmacOS 10.11+ x86-64

File details

Details for the file libsass-0.12.3.tar.gz.

File metadata

  • Download URL: libsass-0.12.3.tar.gz
  • Upload date:
  • Size: 295.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for libsass-0.12.3.tar.gz
Algorithm Hash digest
SHA256 236762af9c693bb72ed92d65ff4a5a77d27af9494b6174fbec7e6308416673b0
MD5 b2b0735a975731e1d07804fd4e7251c2
BLAKE2b-256 773e3854643362efea519450b60dec8cee6775ebf104cae4cf98f3c6d23fb3bd

See more details on using hashes here.

File details

Details for the file libsass-0.12.3-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for libsass-0.12.3-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 55cb32142f8c5f449edcb4baf040b553d59a604c8957aa177d26782a06d0eb6f
MD5 d695cf2f78d77dc45d69bacc81db28a1
BLAKE2b-256 9167978d2be31205752058c5bdb5ce3d2b5c891176b9ed32e787b33ba2c7b1d9

See more details on using hashes here.

File details

Details for the file libsass-0.12.3-cp36-cp36m-win32.whl.

File metadata

File hashes

Hashes for libsass-0.12.3-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 cf43ea1a69bab2836fc953e3d73f32d15efdcbf44c6082df36dd12c76ff59322
MD5 ca6d4ac9215033e54003afbd4d543383
BLAKE2b-256 9b978b9b24fd4bae4dfd224f573e4ac6561082b02f57db37c9385864321c870c

See more details on using hashes here.

File details

Details for the file libsass-0.12.3-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for libsass-0.12.3-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b064ccedb51b874c725a40f03fc952afd85bd6f5369d41aa74f393ff3388b9e1
MD5 f4409e695f3b1cefc167753841a01355
BLAKE2b-256 3fa7d2ea1b29f97f2206dd801b77ed4fd9e005b6ebbd4037f92f21589872bef0

See more details on using hashes here.

File details

Details for the file libsass-0.12.3-cp36-cp36m-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for libsass-0.12.3-cp36-cp36m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c3ea0cbb36745b6cc10278539e0bf93a426f2f497306181fc6214193f493b8d5
MD5 6ef371f20cac762d62237548cc9cd471
BLAKE2b-256 01a806bd8c84376f4c9bd2b1bb41481a42de019018f7f321012c006f7a7f5176

See more details on using hashes here.

File details

Details for the file libsass-0.12.3-cp36-cp36m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for libsass-0.12.3-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 ec659d4d2f60d95160e60f7f52d569bf1b29318018b6f07f8706ff6d4bc04de7
MD5 86093754abe5c5711bd0bb79ad12dd50
BLAKE2b-256 c532c7f6e5c72b79c30fd7ce3d9e7ab5e0a0bd5dca2aebcf9ce7a66ee9472d98

See more details on using hashes here.

File details

Details for the file libsass-0.12.3-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for libsass-0.12.3-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 b8f8cf7c5ee16d217541e6b34def3f45286545077301adc4f54e94977fc69c9f
MD5 f163d8c20d93384cf67d59404e0c6ed4
BLAKE2b-256 d6438477c55cc8d333c9f633e71617c6360b189c0db2812ab39db801b185cd2d

See more details on using hashes here.

File details

Details for the file libsass-0.12.3-cp35-cp35m-win32.whl.

File metadata

File hashes

Hashes for libsass-0.12.3-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 64414697e65da4bfb47f0e11471bf5c79e1dd81e10e2e4b1a70f8ed1cdc33f5b
MD5 d89346ae0bbdcf3670ec0c53c3adc5cd
BLAKE2b-256 37ba5e582017c645af521dab15ec3806bc8f24df953edf2ff5e665ce0dcb13ee

See more details on using hashes here.

File details

Details for the file libsass-0.12.3-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for libsass-0.12.3-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a1e3f19ef392badcc87ad75d8988b1720a4d4f5a506f2f52ebb781300c57136d
MD5 185a1016f848704e63c06a5f5d4bd877
BLAKE2b-256 fc474824af86017915412d21a8148bec662a5c7105c7f91feb867599e4129f9d

See more details on using hashes here.

File details

Details for the file libsass-0.12.3-cp35-cp35m-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for libsass-0.12.3-cp35-cp35m-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 38e9b9b08d299793fffa7b5003d473a6c537e495117f2c44787e3437a5e38f90
MD5 02b414ab8b1a8c6d9a152292048d4043
BLAKE2b-256 77504a15070d7cd74ce3ab70c4d90cfb64c90787cae48b10ab8cae64e5ece149

See more details on using hashes here.

File details

Details for the file libsass-0.12.3-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for libsass-0.12.3-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 28a490f350d38fa3a16da8a52e5ae685e71c8938a7b87cf2d58aee892f30c756
MD5 2a2c68721d5443ddf2255d8aa5e2afe4
BLAKE2b-256 802891d050aef0ecf2f48d8da9af58a685406c45a3aa169425ca8006aec18965

See more details on using hashes here.

File details

Details for the file libsass-0.12.3-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for libsass-0.12.3-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 cd20479d80cdb49ba7007611d8a9a7004579d54552e010277764c19d82233a51
MD5 2e45e7c0480b39b49d32c6e07af3ce2a
BLAKE2b-256 f6e7645f8a5ae5baae2ac4cd4d2e2f243ccc1eea74e1462cffff6115b7158249

See more details on using hashes here.

File details

Details for the file libsass-0.12.3-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for libsass-0.12.3-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 815d60626b329db2943c5d331a5b74d36eb2e441047ae2bd6ad8d1b2c14cfc5d
MD5 fb0c10624f76038336e0c781526d8a2b
BLAKE2b-256 ba77b8fa4c6d8987c863e7e9344818a97204b3c269acbd35d824b541e4b70174

See more details on using hashes here.

File details

Details for the file libsass-0.12.3-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for libsass-0.12.3-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ebf413799057a4dd59d85ceb533935f171117565053341e3714e4cb05253bbbf
MD5 53fa331972d71c4c2a8d6b224c614f43
BLAKE2b-256 1a82969622281b76f4d49ae94907615c1d572916d80faf89eaa3ceed41378209

See more details on using hashes here.

File details

Details for the file libsass-0.12.3-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for libsass-0.12.3-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 edb366b784c58c635ace69ef392e5ad3a42690aeac80d43521c64e0ee7706331
MD5 e96f68b92b1c13cfc7c0ca4ac6cd4c10
BLAKE2b-256 1acf802b2d4474df7e9ea366c01b70798542da5bb0a2c9340239454993934419

See more details on using hashes here.

File details

Details for the file libsass-0.12.3-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for libsass-0.12.3-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 d2b77e43726cd658b1bc13f1a2df543dc34c9f945a9144faecc88ca03fe581ff
MD5 d12c861e6a6acbadb8755925a6f849c0
BLAKE2b-256 900c462e3c770b9ea25707178ef885afa5066d1e0a5bf95e4e71772ba2dddc03

See more details on using hashes here.

File details

Details for the file libsass-0.12.3-cp27-cp27m-win32.whl.

File metadata

File hashes

Hashes for libsass-0.12.3-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 2fb999d978e9cc8f7459f8f07a8acf9fc03d6e9fa95fcf98169bf0a5ede81eb6
MD5 d23c669dc7a4a2b6cce5522e433f3d5a
BLAKE2b-256 c99b0ce2661a4e8da552c7ad80b8c92f0294c1ac9d662a3167fbf7626cc8faa0

See more details on using hashes here.

File details

Details for the file libsass-0.12.3-cp27-cp27m-macosx_10_11_x86_64.whl.

File metadata

File hashes

Hashes for libsass-0.12.3-cp27-cp27m-macosx_10_11_x86_64.whl
Algorithm Hash digest
SHA256 ff07c2c55f9d73d9f57cded30138ff99dfbb9fe7fbc71a4bbb43aa067ad2beed
MD5 660ed23079671b816c5d04aa2de67d86
BLAKE2b-256 6540a98ccbd1bfc7251d0922d256e4fd8f7afd399c0c79d78da5a313f82ef096

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