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.6, 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.10.1.tar.gz (279.8 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.10.1-cp35-none-win_amd64.whl (728.8 kB view details)

Uploaded CPython 3.5Windows x86-64

libsass-0.10.1-cp35-none-win32.whl (601.9 kB view details)

Uploaded CPython 3.5Windows x86

libsass-0.10.1-cp35-cp35m-manylinux1_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.5m

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

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

libsass-0.10.1-cp34-none-win_amd64.whl (764.9 kB view details)

Uploaded CPython 3.4Windows x86-64

libsass-0.10.1-cp34-none-win32.whl (622.9 kB view details)

Uploaded CPython 3.4Windows x86

libsass-0.10.1-cp34-cp34m-manylinux1_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.4m

libsass-0.10.1-cp34-cp34m-macosx_10_6_intel.whl (1.3 MB view details)

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

libsass-0.10.1-cp27-none-win_amd64.whl (765.5 kB view details)

Uploaded CPython 2.7Windows x86-64

libsass-0.10.1-cp27-none-win32.whl (622.6 kB view details)

Uploaded CPython 2.7Windows x86

libsass-0.10.1-cp27-none-macosx_10_11_intel.whl (1.3 MB view details)

Uploaded CPython 2.7macOS 10.11+ Intel (x86-64, i386)

libsass-0.10.1-cp27-cp27mu-manylinux1_x86_64.whl (7.0 MB view details)

Uploaded CPython 2.7mu

libsass-0.10.1-cp26-none-macosx_10_11_intel.whl (1.3 MB view details)

Uploaded CPython 2.6macOS 10.11+ Intel (x86-64, i386)

libsass-0.10.1-cp26-cp26mu-manylinux1_x86_64.whl (7.0 MB view details)

Uploaded CPython 2.6mu

File details

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

File metadata

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

File hashes

Hashes for libsass-0.10.1.tar.gz
Algorithm Hash digest
SHA256 786af7629402ec50067834be17146fae49b0660c0d43379ccb9f85af7a97b07e
MD5 de8ebe9aabf121db31034515aa2cfe4a
BLAKE2b-256 7b2ea05819e9a0bafff3451fce793c32d796551135a932e5aef85f6828668e7e

See more details on using hashes here.

File details

Details for the file libsass-0.10.1-cp35-none-win_amd64.whl.

File metadata

File hashes

Hashes for libsass-0.10.1-cp35-none-win_amd64.whl
Algorithm Hash digest
SHA256 3f1c43e57eeb8ff36b04841187f2b98724ac23f5af8d0e4e446faf1818ea712c
MD5 07dcdf421fb81beb565117d2cfc3a40a
BLAKE2b-256 a263bd6df875ffd50c39f6fba10349b00a3185a1d9368c82ba694f5916245eb9

See more details on using hashes here.

File details

Details for the file libsass-0.10.1-cp35-none-win32.whl.

File metadata

File hashes

Hashes for libsass-0.10.1-cp35-none-win32.whl
Algorithm Hash digest
SHA256 e1159c82c3ddf7c9a79a3d108ede74d6c81baa57e7ec5eee0df99d7504614b1e
MD5 b2db2e8c9ef94b2932bc76d08b1c00f7
BLAKE2b-256 f96f0dd633c1abc82ed5401f057cfd9f24e3bea6f1cff005c3df03693afd2ea5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.10.1-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fea1220851be1991c22352ac55007b3583c862b7ede8220f4be08d274e41bb00
MD5 faf64e5ab41faa249c12e07ef9a8cc05
BLAKE2b-256 8b99b5cc9225bc2058b716ea2776e433624282b9dfdfe991e4288405b64b7716

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.10.1-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 fd7332e4411caee2330e4558d6346055ec7c01ad2877d52acb447583c76e79bb
MD5 2ea9e686061d7904be1e606e958dddef
BLAKE2b-256 48080d7ac06430bd37ceac5391ff3848e0761fe409964b835085d403533be6bf

See more details on using hashes here.

File details

Details for the file libsass-0.10.1-cp34-none-win_amd64.whl.

File metadata

File hashes

Hashes for libsass-0.10.1-cp34-none-win_amd64.whl
Algorithm Hash digest
SHA256 4943ed09395dfa1a0f48cb2e0436827dab1e3ae62903e4144e5657d5b0f81571
MD5 46ea67e88793e7025a7f0a156e189fc3
BLAKE2b-256 f9247466144a81bf9a4513ff799ceadc156d515dc5598c37f79a383d26029c03

See more details on using hashes here.

File details

Details for the file libsass-0.10.1-cp34-none-win32.whl.

File metadata

File hashes

Hashes for libsass-0.10.1-cp34-none-win32.whl
Algorithm Hash digest
SHA256 19fada125ab3bd7af6bce1fd470c069436d5ef53ae812895881b243c44826543
MD5 75ca7c18a5af65ed03a89ac4cf7fe47f
BLAKE2b-256 b0e5adfd5e97c8d9a103ff840262bce0d417ec19f9f6aefdc12ce7a72f8d4a96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.10.1-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 30d966aa749a36f41bf8ca2db7e333442a17568e8b217498ee9eb09af9c0902a
MD5 1533197bb3017e4daa89575f74ce655b
BLAKE2b-256 cea42ce0556fd78823edd901b7d5672e1b6892e428152426a66ae52a3dfe700c

See more details on using hashes here.

File details

Details for the file libsass-0.10.1-cp34-cp34m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for libsass-0.10.1-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 a8af563f5600ebaf84a3d67fc77784c0136b6abf320da30b2fbeaddb0bcd7b21
MD5 a1ace4ea414e0781b5e99fb1dc11924c
BLAKE2b-256 4511f08e21b471f2cc59145e62768d924e9ed46a6803717da4ab207096bd385d

See more details on using hashes here.

File details

Details for the file libsass-0.10.1-cp27-none-win_amd64.whl.

File metadata

File hashes

Hashes for libsass-0.10.1-cp27-none-win_amd64.whl
Algorithm Hash digest
SHA256 ef49f0992cb9be4fd407c07856b2f5d4b147eecc224931ef441863953d7957a9
MD5 2e16b8ef63e3d85a89db8f7ffc34cea4
BLAKE2b-256 aa6286134da6457e18bf52845d86ceb0fa1f3dd888dbdab521498e85b78ad925

See more details on using hashes here.

File details

Details for the file libsass-0.10.1-cp27-none-win32.whl.

File metadata

File hashes

Hashes for libsass-0.10.1-cp27-none-win32.whl
Algorithm Hash digest
SHA256 5d5a23731b2878f19e22394edd189e145d00cb026fc9b68877c0d5ad796af7d8
MD5 9cd2d143971d05277655d6c6245de984
BLAKE2b-256 280aeeff3566b21f5ee91a237b6be31006c8c85247e2c560b089d8b9905064aa

See more details on using hashes here.

File details

Details for the file libsass-0.10.1-cp27-none-macosx_10_11_intel.whl.

File metadata

File hashes

Hashes for libsass-0.10.1-cp27-none-macosx_10_11_intel.whl
Algorithm Hash digest
SHA256 5a780f1a92177022ecc019c724d309e0a6c59d1810eef81569ac927ef3ca803b
MD5 7cc4e9895ec5f9150db83ebfec6f3228
BLAKE2b-256 cbe2612634e41520471c91e6a1dbaafef2c970f597cbc343e8c83ec6e46620ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.10.1-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8c9b18788b647a0d2f0171014f18954103a9c0527efb262f069d5b2567f9d706
MD5 f87e40fac309c1e710ee33fa7456912d
BLAKE2b-256 ce54cd27fdc701ac146d0141d180f369021905b1055f3d6b798a148baf8d27f1

See more details on using hashes here.

File details

Details for the file libsass-0.10.1-cp26-none-macosx_10_11_intel.whl.

File metadata

File hashes

Hashes for libsass-0.10.1-cp26-none-macosx_10_11_intel.whl
Algorithm Hash digest
SHA256 415e4c6545a3cc87d5c64825ceab97a73645f1e7fc2edb98248504b78b71c872
MD5 bba2a6f4c3ebfdf2726b6d32bcc0cdf5
BLAKE2b-256 74a20ede623520cd8ab54e9197539d940f9f9d981b9276890f77a63935131d4a

See more details on using hashes here.

File details

Details for the file libsass-0.10.1-cp26-cp26mu-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for libsass-0.10.1-cp26-cp26mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 369b93b2d9cba78957edefcde5e738ac6fb4b5163770b9a7f61adb7e9ebd6a4d
MD5 fabdbeb43cf1a3801b5e67794669892d
BLAKE2b-256 ceb3689f77b29a80565237996301b31cdeb08aeed72b2d64a7b06b24a0c3cfed

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