Skip to main content

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

Project description

PyPI Build Status 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.5–3.7, 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.19.3.tar.gz (315.3 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.19.3-cp38-cp38-manylinux1_x86_64.whl (9.1 MB view details)

Uploaded CPython 3.8

libsass-0.19.3-cp37-cp37m-win_amd64.whl (904.5 kB view details)

Uploaded CPython 3.7mWindows x86-64

libsass-0.19.3-cp37-cp37m-win32.whl (757.7 kB view details)

Uploaded CPython 3.7mWindows x86

libsass-0.19.3-cp37-cp37m-manylinux1_x86_64.whl (9.1 MB view details)

Uploaded CPython 3.7m

libsass-0.19.3-cp37-cp37m-macosx_10_9_x86_64.whl (983.8 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

libsass-0.19.3-cp36-cp36m-win_amd64.whl (904.5 kB view details)

Uploaded CPython 3.6mWindows x86-64

libsass-0.19.3-cp36-cp36m-win32.whl (757.7 kB view details)

Uploaded CPython 3.6mWindows x86

libsass-0.19.3-cp36-cp36m-manylinux1_x86_64.whl (9.1 MB view details)

Uploaded CPython 3.6m

libsass-0.19.3-cp36-cp36m-macosx_10_14_x86_64.whl (983.8 kB view details)

Uploaded CPython 3.6mmacOS 10.14+ x86-64

libsass-0.19.3-cp35-cp35m-win_amd64.whl (911.2 kB view details)

Uploaded CPython 3.5mWindows x86-64

libsass-0.19.3-cp35-cp35m-win32.whl (767.7 kB view details)

Uploaded CPython 3.5mWindows x86

libsass-0.19.3-cp35-cp35m-manylinux1_x86_64.whl (9.1 MB view details)

Uploaded CPython 3.5m

libsass-0.19.3-cp27-cp27mu-manylinux1_x86_64.whl (9.2 MB view details)

Uploaded CPython 2.7mu

libsass-0.19.3-cp27-cp27m-win_amd64.whl (1.0 MB view details)

Uploaded CPython 2.7mWindows x86-64

libsass-0.19.3-cp27-cp27m-win32.whl (773.7 kB view details)

Uploaded CPython 2.7mWindows x86

libsass-0.19.3-cp27-cp27m-macosx_10_14_intel.whl (986.8 kB view details)

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

File details

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

File metadata

  • Download URL: libsass-0.19.3.tar.gz
  • Upload date:
  • Size: 315.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for libsass-0.19.3.tar.gz
Algorithm Hash digest
SHA256 b15a0e61bd54764e658bc6931015453fa34d954f87c3b6fd35624e13bcacf69d
MD5 35ace965aeb09b8cfe152410191bd86e
BLAKE2b-256 1bd64b2b8c789420c1040a4a597825c82722acb790c9f717ea7d8f6062adb6d9

See more details on using hashes here.

File details

Details for the file libsass-0.19.3-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: libsass-0.19.3-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 9.1 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8

File hashes

Hashes for libsass-0.19.3-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f5cfe2ba69bcee673227a85603f960c061bfa49daceead07b09d9af8f6fd6f57
MD5 99ce7631f824c5120ed9620df43a10a4
BLAKE2b-256 8bafc59254302ca7a8eb35f0693f013e0bfbbb0443d79c991bc9b4000196dac7

See more details on using hashes here.

File details

Details for the file libsass-0.19.3-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: libsass-0.19.3-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 904.5 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for libsass-0.19.3-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 4252e24c8869d6ce764052f200445331d1881b5c2d283d6131a30d0684b10403
MD5 83f4346e86d8f0d08f84ba92c39a225a
BLAKE2b-256 1ef031e357eed19de56658fb3d4bf0e25ff45d513d484d93a4eb13a898bdde65

See more details on using hashes here.

File details

Details for the file libsass-0.19.3-cp37-cp37m-win32.whl.

File metadata

  • Download URL: libsass-0.19.3-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 757.7 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for libsass-0.19.3-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 6124594e72ba216b00131795ad5ea5de1e0cf8784e63a01e0c6a4e4c13fc7914
MD5 0d6376125c42ab2ccce8039afb409590
BLAKE2b-256 d8160fc5b3344df1ae668c1c2ed5809ab334b802ca7d7412e44b02679e071335

See more details on using hashes here.

File details

Details for the file libsass-0.19.3-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: libsass-0.19.3-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 9.1 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for libsass-0.19.3-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 32f8322aad9b6b864b826adb5e193d704d5fb2c816f85a5cc5bf775730e5d024
MD5 0961de8d28f3e854feeabcbf1c608880
BLAKE2b-256 8a93aa8476b7757237b10116d3f8aa45bb318a71dc53b4e6156ffbaf4f6e0b08

See more details on using hashes here.

File details

Details for the file libsass-0.19.3-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: libsass-0.19.3-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 983.8 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for libsass-0.19.3-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6d392ecd6e4de2ccfa3b1953f2da8461a2b7c8c8c17c24e1c335ab3040671c1a
MD5 d8b98d20cb852e34b39935fe3f7a91bd
BLAKE2b-256 ebdcff02aa135af3dfbdcd272b88b7f3eb788c64e1149dc505f847b4de34238a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libsass-0.19.3-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 904.5 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for libsass-0.19.3-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 312d135e6bd1a137927fed781dab497c05930305265e3d3b1da3b3d916cd97a6
MD5 1c2718a295c91975328358c433788d84
BLAKE2b-256 44e5b38edee66c6d7914755c2ca64ddd0fe8ff23b47c8afd9ff33ddc13a89da3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libsass-0.19.3-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 757.7 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for libsass-0.19.3-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 c22cdc37121b730e5fb87bc8d3eee8c4b1fe219a04d198a535fbd22895c99e27
MD5 6afd0a72eb3081cde8ee3841d8feb7f8
BLAKE2b-256 5824788197ba3e5a5f21b33e802364d8fc435ff25e4b6a048cf67b489fdac4b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libsass-0.19.3-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 9.1 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for libsass-0.19.3-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c5ba74babfb3a6976611312e0026c4668913cdf05e009921e1f54146ccdc02a4
MD5 f92f4ec88776960ac30f100413d449f2
BLAKE2b-256 88511ea20121e4022d3f6ef7a87a0ed1063c83ba885cd22ae24516991a4e7b6b

See more details on using hashes here.

File details

Details for the file libsass-0.19.3-cp36-cp36m-macosx_10_14_x86_64.whl.

File metadata

  • Download URL: libsass-0.19.3-cp36-cp36m-macosx_10_14_x86_64.whl
  • Upload date:
  • Size: 983.8 kB
  • Tags: CPython 3.6m, macOS 10.14+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for libsass-0.19.3-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 bc0c80a4e233b6b791a7f6f99415ab877e8a4d3a45085b68981c97d74dbfc8bf
MD5 86ec2dc926d847ed9da0d60e868f3366
BLAKE2b-256 4f0a3894baa9d14dfd724bce7ba1f0d4fc2c8eb1d5e2cc69a81ad6241aad5aeb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libsass-0.19.3-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 911.2 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for libsass-0.19.3-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 607ce32c3b31542e0bf1bc2409627dd7247a3849ba720ec34d23426b96346199
MD5 547586b5175bf0bdf3a20d697918026b
BLAKE2b-256 07721c79320b82e91cfeb09e2de43ca16de93466cd5eefd389b758ad3071861b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libsass-0.19.3-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 767.7 kB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for libsass-0.19.3-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 6129063002fc8337b734f5963ac3eb01ead51e9c88c6d27e73ddc9236cb15b2e
MD5 7b04872bc3619f43b5af6a12d03745cd
BLAKE2b-256 0401544d05b279eb5890685f6e59dbc025c306664abf3205604b60e8f71a8525

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libsass-0.19.3-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 9.1 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for libsass-0.19.3-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 75b38c236be6ca03e3dd3789f3044180fc0836b7c9e4991fcc52a8570f47dc91
MD5 442e1e12f070f814054f488455933137
BLAKE2b-256 6a4fec8d2cfa441737abeafcbb6e3950931051c0fca168dd5d1fc3283d475044

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libsass-0.19.3-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 9.2 MB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for libsass-0.19.3-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3113ef32eaf3662c162c250db6883d7a5f177856bfd8bb632a147cb0a95e4fee
MD5 4775d690836da69d7630172e4bef3567
BLAKE2b-256 8780e3fdfb6bc6b89737e69aac367201bad5938d7e7bf1b95c34a42579aa8219

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libsass-0.19.3-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for libsass-0.19.3-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 9c711d4e4d003fec7f98fe87bb1faf7d88e6d648356413d8b8d9d76bd1844089
MD5 2b35be5ff5c679ec0d574f6e02d2331a
BLAKE2b-256 9a5cd75128695ec945d7ac8904ec7532fbb26fd8a1899db324d0b012b33309f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libsass-0.19.3-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 773.7 kB
  • Tags: CPython 2.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for libsass-0.19.3-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 517324814f81cd2642cb1e9fd772e8e50e336c7c8833d50535a731e5b4c84606
MD5 2d778e2a0947660c359c9ca3ef93ff6a
BLAKE2b-256 2c41434c3f993a4aa9fe9e56ce9328b4691bfdcf8b1165682841cd5769910c9e

See more details on using hashes here.

File details

Details for the file libsass-0.19.3-cp27-cp27m-macosx_10_14_intel.whl.

File metadata

  • Download URL: libsass-0.19.3-cp27-cp27m-macosx_10_14_intel.whl
  • Upload date:
  • Size: 986.8 kB
  • Tags: CPython 2.7m, macOS 10.14+ Intel (x86-64, i386)
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for libsass-0.19.3-cp27-cp27m-macosx_10_14_intel.whl
Algorithm Hash digest
SHA256 175355d74bd040893d539154016153247ea9775d1655a36441c97a453887a0c0
MD5 0c3a1d1c559db0ec256e1ff41108374e
BLAKE2b-256 b9d3be8bab081b607fb546aa74a2290e6d1cde69554a980b55ec194e6e06ef8d

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