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.4–3.6, 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 Linux, 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:

https://sass.github.io/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.14.0.tar.gz (308.0 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.14.0-cp36-cp36m-win_amd64.whl (941.9 kB view details)

Uploaded CPython 3.6mWindows x86-64

libsass-0.14.0-cp36-cp36m-win32.whl (798.9 kB view details)

Uploaded CPython 3.6mWindows x86

libsass-0.14.0-cp36-cp36m-manylinux1_x86_64.whl (8.9 MB view details)

Uploaded CPython 3.6m

libsass-0.14.0-cp36-cp36m-macosx_10_13_x86_64.whl (862.1 kB view details)

Uploaded CPython 3.6mmacOS 10.13+ x86-64

libsass-0.14.0-cp35-cp35m-win_amd64.whl (941.9 kB view details)

Uploaded CPython 3.5mWindows x86-64

libsass-0.14.0-cp35-cp35m-win32.whl (798.9 kB view details)

Uploaded CPython 3.5mWindows x86

libsass-0.14.0-cp35-cp35m-manylinux1_x86_64.whl (8.9 MB view details)

Uploaded CPython 3.5m

libsass-0.14.0-cp34-cp34m-win_amd64.whl (979.3 kB view details)

Uploaded CPython 3.4mWindows x86-64

libsass-0.14.0-cp34-cp34m-win32.whl (788.7 kB view details)

Uploaded CPython 3.4mWindows x86

libsass-0.14.0-cp34-cp34m-manylinux1_x86_64.whl (8.9 MB view details)

Uploaded CPython 3.4m

libsass-0.14.0-cp27-cp27mu-manylinux1_x86_64.whl (8.9 MB view details)

Uploaded CPython 2.7mu

libsass-0.14.0-cp27-cp27m-win_amd64.whl (979.2 kB view details)

Uploaded CPython 2.7mWindows x86-64

libsass-0.14.0-cp27-cp27m-win32.whl (788.2 kB view details)

Uploaded CPython 2.7mWindows x86

libsass-0.14.0-cp27-cp27m-macosx_10_13_intel.whl (1.7 MB view details)

Uploaded CPython 2.7mmacOS 10.13+ Intel (x86-64, i386)

File details

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

File metadata

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

File hashes

Hashes for libsass-0.14.0.tar.gz
Algorithm Hash digest
SHA256 9afdcbd2f5f76226b3457794406bacc52c20271d41343dfa39a9861fce48a3de
MD5 d94fa6743d505024c7e6dbee54c4cdf6
BLAKE2b-256 5cef017add006ca5647a839e95ec96086bf0171066e86614b6a86564d47ca504

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.14.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 723729fde3db56ea900333eb82a4f9ad48168d01df5040ea1ec89e19171f9d15
MD5 a0931506953e42dcd18ddd80c557fb2d
BLAKE2b-256 ef00d09f5d082866a626c605c83444e8e4663fc95278a9da4e290a6fd36b3d30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.14.0-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 bbfd282f3849939f3a8843691e12f1da62614e6eb53ddac2a6ddd32a50d731ad
MD5 92b71fbdd409def674ba016312ff8668
BLAKE2b-256 b6b4a3ef8647c77e8319a961623c083a8759401a7b3fdbd423b6b294c74a2578

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.14.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1182cbd22faa99e6c237b172a105286eda68c7f6e6d38fb0a0a53f41595c8194
MD5 50fd43b010cb68426ce8e036980871af
BLAKE2b-256 f29000d6da555c640e2434a9798cb1de79b7a3a846f6919d5d38620e0390c906

See more details on using hashes here.

File details

Details for the file libsass-0.14.0-cp36-cp36m-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for libsass-0.14.0-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 e82e66cb3acd5a18699515037536a297a18270460ad65f7aa208dc3dd5769cc3
MD5 462c09c71004c1612e586f50ca6dc90d
BLAKE2b-256 8b168443ac669d0af47c866533a53c0716d6bcda97ede004b3b42b16ce4f2ecc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.14.0-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 83bcb63fa37b21ed2da9be0699972d5de395fe0e65128e36fa005fd1a9d3155d
MD5 1a8dc7dbe2e57c8dcce1eeeb3999624b
BLAKE2b-256 38ee1c98a5d0b6e19e2d0b3a0831cb0ade6e76d140b1f6fa6b301335db3e2b62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.14.0-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 229802249ac68b6774cfa0d1ed7c3aa97bb7ab576736f8af65fe11ade60d6238
MD5 5117f6595f7bf5da96c76d01902d7362
BLAKE2b-256 4ea07a0b9a0454479ead3179134a517a64b294290225bf0c98c5d9f695acffc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.14.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e5ef86960aa11136118e2d895d5990eb9dd40c6e1ae35d64aa86631c136b978e
MD5 83dabd350c2a92d0e4fd2835b04043bc
BLAKE2b-256 7e331b8596dd8ae4c36b72e92e7d29bf3b61a81a5c8313ebdda8443dbd6c1318

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.14.0-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 8566c73d23f80f3d69af12e900f8dbf57fa2e6dfbf2ba98778498cc393ea0915
MD5 a896bf6973d4967cb165e1f1ff13eb33
BLAKE2b-256 f20fa4f17b1a7c6799c6fecada94227dd238bca1cb4b5b015ea4de25aa1f7dfe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.14.0-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 2b5591c95af2158ba2ad8b376c36807e3ab9371862fda622ff45b08cf482e7fc
MD5 407479b5da5e9cf3e4f8f886b19ea8b4
BLAKE2b-256 cfd384f78848424eaf499f7b7d8cb3054cd5e4c238f06af4c29f000a7bd24689

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.14.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1c5cad70b536690af4d9eea95857e8aaa9d6132f99bc9b5eecd685d241037a6c
MD5 081bf6eec04bbb0542ffb0989a7f9456
BLAKE2b-256 ea5ecbc997600781c1426c0e3a7e59212d815638aaad65cb81985eef9359cff4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.14.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cf469eb311f99ce46a0c9734dffbe4e6e988924bf3788a795a25780f10b6d62e
MD5 9c4090061d2620f5d171ed93179e3b01
BLAKE2b-256 f18ad0b7086c0efbf1557e6de0754119f0c00693c80247a7bac1bdfc1d91ec31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.14.0-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 8f480dd6047c6c18cea542cc2210cef735041b03daebb6bb2de8414bc1c33035
MD5 0a46b683b5e731c52891e4da1eba709a
BLAKE2b-256 54c0a13ca3f34c191bb7509c0159ed9c942425e45d2c4d26da8af5acf09547d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.14.0-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 93e7c8825c4988b4d7269411c3b06f0309727445ae4c8d07c2495dc9dc99eb5c
MD5 7b5c2b11a108db16ac212026fcc7cca2
BLAKE2b-256 285529ca4ea9ad7c670644a58cbb1e1f33206bc5c528120f4b8a9fd1dc6e2def

See more details on using hashes here.

File details

Details for the file libsass-0.14.0-cp27-cp27m-macosx_10_13_intel.whl.

File metadata

File hashes

Hashes for libsass-0.14.0-cp27-cp27m-macosx_10_13_intel.whl
Algorithm Hash digest
SHA256 fe1f566ba5510a36f56a1216efba41763fffa746773151cb540bdf9be68b736c
MD5 45fe78ea9074c2c970dbcc8184674b3a
BLAKE2b-256 98ca101904d2c2c054a7d73e6f5ed95eb0add85ee8b14ceb435ab676d0c64c12

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