Skip to main content

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

Project description

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.4, and PyPy 1.9+!

Build Status

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://dahlia.kr/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.

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

libsass-0.4.0.tar.gz (89.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.4.0-cp34-none-win_amd64.whl (202.2 kB view details)

Uploaded CPython 3.4Windows x86-64

libsass-0.4.0-cp34-cp34m-macosx_10_6_intel.whl (341.7 kB view details)

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

libsass-0.4.0-cp33-none-win_amd64.whl (202.4 kB view details)

Uploaded CPython 3.3Windows x86-64

libsass-0.4.0-cp33-cp33m-macosx_10_6_intel.whl (341.7 kB view details)

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

libsass-0.4.0-cp32-none-win_amd64.whl (202.4 kB view details)

Uploaded CPython 3.2Windows x86-64

libsass-0.4.0-cp32-cp32m-macosx_10_6_intel.whl (341.5 kB view details)

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

libsass-0.4.0-cp27-none-win_amd64.whl (202.4 kB view details)

Uploaded CPython 2.7Windows x86-64

libsass-0.4.0-cp27-none-macosx_10_9_intel.whl (311.1 kB view details)

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

libsass-0.4.0-cp26-none-win_amd64.whl (202.6 kB view details)

Uploaded CPython 2.6Windows x86-64

libsass-0.4.0-cp26-none-macosx_10_9_x86_64.whl (310.5 kB view details)

Uploaded CPython 2.6macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for libsass-0.4.0.tar.gz
Algorithm Hash digest
SHA256 724b869c55c619b69ee8962e7a2e130e4e2eaa92a13a288d9093203dfdc16c41
MD5 775eaddef193e3ab711017af7cd0f41b
BLAKE2b-256 415c991389ab37aa7c7dfb4bef0ed814e039fb7a4973353a48fda3942ee91edb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.4.0-cp34-none-win_amd64.whl
Algorithm Hash digest
SHA256 d320583fedf6bde94afe317eedeaef81999e7197ca6822245046e6e871bbb340
MD5 457dcf5c6fb7e09e6b226afef3062c36
BLAKE2b-256 22d5aff5adca5d8351def5439a5c101eac881294ec683e45adb8141aeb30718a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.4.0-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 deedc2e595af52cce5ef983a13c187bd99c2f4842d93c92a5036933bef4b9876
MD5 14070af89859e80ccd76746b34023fe3
BLAKE2b-256 0816b3cbd6a3c2da75e533aa4819d3d9235d92dc9d1c2ee5e04d47141d275aa8

See more details on using hashes here.

File details

Details for the file libsass-0.4.0-cp33-none-win_amd64.whl.

File metadata

File hashes

Hashes for libsass-0.4.0-cp33-none-win_amd64.whl
Algorithm Hash digest
SHA256 d013fb4b30a76f454843dbae8bd0435d32cdf5f8196dfa49117bac0b430fb3cc
MD5 16aa6bad9f6fd7e21d2789104f885eae
BLAKE2b-256 4055d0d817bc40e845a28214a4b3494aadc9806c70af757c82d25aa23308315c

See more details on using hashes here.

File details

Details for the file libsass-0.4.0-cp33-cp33m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for libsass-0.4.0-cp33-cp33m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 bd71f51514907d9d6058ea5537cb1a0f7158c19b0dbdf14307981f3d1e6d770f
MD5 b77e49da939ddd6bbd4de1a17e101cca
BLAKE2b-256 90de071c23f70664df62a00895037eba0c5beab617d641efb9b210d79182d0c1

See more details on using hashes here.

File details

Details for the file libsass-0.4.0-cp32-none-win_amd64.whl.

File metadata

File hashes

Hashes for libsass-0.4.0-cp32-none-win_amd64.whl
Algorithm Hash digest
SHA256 2ec6fa6408f6090b5b667afb4558200f1f1e8f3df839f89ede502d257c1bf1a3
MD5 a66e129e6a41f4336adc4034b8a900d7
BLAKE2b-256 f20c0f53d9101b1b22e3da932b848e9f4c47f20a4a63e8c8f05b15e1625c9c2a

See more details on using hashes here.

File details

Details for the file libsass-0.4.0-cp32-cp32m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for libsass-0.4.0-cp32-cp32m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 7e6137a1b03833702e867608a8e9462ad8582cb43fb810ac5dbdbce0eaeac019
MD5 03acf39b9382a209a71874fc678c2f6b
BLAKE2b-256 3abd34841b4831fe8ada8afb8723b6cb12ebd910adf2a229679597e195b1f015

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.4.0-cp27-none-win_amd64.whl
Algorithm Hash digest
SHA256 19c40904a5c20c3ffec68509b389a4658f13e2596965861278b468b959de4b8e
MD5 8c87792ba73bdebebefe71e30c8e234e
BLAKE2b-256 a790aefe067ae837490481f69348e67f60c0a1d98f905ea25b36fcd250832ea2

See more details on using hashes here.

File details

Details for the file libsass-0.4.0-cp27-none-macosx_10_9_intel.whl.

File metadata

File hashes

Hashes for libsass-0.4.0-cp27-none-macosx_10_9_intel.whl
Algorithm Hash digest
SHA256 3e7458afcd9f6b2ba435f8fe50a457a2ce0ed7adac6e1064cdcec8117522cd7c
MD5 480e31fb4d737a90d0b939b0826f2dfc
BLAKE2b-256 b6cd166c4db5d98bd5d82fdf1c3f5a30d607af8b43069d04e6b7ec69940f79b2

See more details on using hashes here.

File details

Details for the file libsass-0.4.0-cp26-none-win_amd64.whl.

File metadata

File hashes

Hashes for libsass-0.4.0-cp26-none-win_amd64.whl
Algorithm Hash digest
SHA256 7533f4787ee2dc57cca223f53af1e5924dbc225949575a6cf12807fbb0fa5843
MD5 cf2ebde85003b593a612a62231fc914b
BLAKE2b-256 1aff092c090188fc5a6c46ed603ba5e3faffeee48b587f0d7a8931e7000c5d09

See more details on using hashes here.

File details

Details for the file libsass-0.4.0-cp26-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for libsass-0.4.0-cp26-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d32a38ea3abb4a6bcc57503880733ed80e82da29ad497330c6f9fe085049f727
MD5 ac6b1ed7794c37c689ebf0367ada6f46
BLAKE2b-256 a8cfcd788f837a5ca14b60dbe558575be5f7c2747163908e1442e85ed2dc19f1

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