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+!
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for libsass-0.4.1-cp34-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a543752601305bb16ba80923974f47c2b143092496a41a28341e782bdabd837 |
|
MD5 | 9ea9ebaeb8df800eda5f8cde179235ec |
|
BLAKE2b-256 | 3f4394db476210e7dd765f1e65487cdefb923734e34a0bf5a4b7a899ac270fed |
Hashes for libsass-0.4.1-cp34-cp34m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 217e7773b77ea7533f3b362ce142bb6ac4777deb1ea51d987d197aea3a33d827 |
|
MD5 | fff5ea89cabae6e0b6b106e35cc00391 |
|
BLAKE2b-256 | de55e3736a8b864d89c658d091293a69018f0bd4f5766fe5a9f4c03010d63266 |
Hashes for libsass-0.4.1-cp33-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18f0c61a135a922f7eaad2a6c1a840067768a60d295295fb4ea4a9cfe4bc968c |
|
MD5 | 995a638acfce9eb35a3daf4f8fbabdc6 |
|
BLAKE2b-256 | 12f12d5dfaca8606060cc60511ff39d60077aa574efb20e9093e1211117f4a8f |
Hashes for libsass-0.4.1-cp33-cp33m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b141d91ba32907bcedfb700502a3b693dbcc998de15b7a1609fed369ca8c6e6e |
|
MD5 | 312d4fa8605ba1d09c2d02faf1be53f2 |
|
BLAKE2b-256 | ff8a400ee0545746c82caf17b77328126156f30f4edda13490d5f25b268d24b3 |
Hashes for libsass-0.4.1-cp27-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8837c1b7f085005a86f5339ea810d40ac81477ff503a92d6c41e020cb3fedf29 |
|
MD5 | fa6489dd1234395e760e9a8723cf26c8 |
|
BLAKE2b-256 | d240f11b70f7dc090aeba40dac19f6382f4c448aa0f6c73e45260db44dd2dc62 |
Hashes for libsass-0.4.1-cp27-none-macosx_10_9_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ebb243605783eee20424bfc411cd68d85b5b0a6dddc9862ff0fa1b3fe8d511c |
|
MD5 | 82f8113f974ec7f8ea34a3725e098e30 |
|
BLAKE2b-256 | 1143fe0830368dd4a370efe6228fcf1e41f426d8021549ac49402cc2e0cb8c07 |
Hashes for libsass-0.4.1-cp26-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e155c69079b90341292e300da8b82b3e1debf213d32387aa1ad244d974400bd |
|
MD5 | e75dcd2502e906232b15017a68f087dd |
|
BLAKE2b-256 | 2a8c031abacf5abe5e7cf5285ce4c3f1231832343ba89f2b2900b56cd5befade |
Hashes for libsass-0.4.1-cp26-none-macosx_10_9_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ab78bd562262e89541537c492a12bb10bfeaee1c7b4cc9e390cea85e0d6c029 |
|
MD5 | 1aca84b64ddffeab27d20d4bc391d2cf |
|
BLAKE2b-256 | 2ea9af124b80eef0735f60be5d444daff7d9ab1a39c73eb6599a0b8e8a6fe646 |