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.

It currently supports CPython 2.5, 2.6, 2.7, and PyPy 1.9!

Install

It’s available on PyPI, so you can install it using easy_install or pip:

$ easy_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.2.3.tar.gz (61.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.2.3-py2.7-win-amd64.egg (142.8 kB view details)

Uploaded Egg

libsass-0.2.3-py2.6-win-amd64.egg (143.3 kB view details)

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for libsass-0.2.3.tar.gz
Algorithm Hash digest
SHA256 76c109a09e587d624024d5a6b0d805427989b8962a0f69c44c63f5b095130869
MD5 1d33356e53e9bfe079379404b29beaea
BLAKE2b-256 eb89d94586fdd9b55e9a1eb6165a1851202962e0e11692736b13c0efcaf88207

See more details on using hashes here.

File details

Details for the file libsass-0.2.3-py2.7-win-amd64.egg.

File metadata

File hashes

Hashes for libsass-0.2.3-py2.7-win-amd64.egg
Algorithm Hash digest
SHA256 78fa2ab760b27e29d78754569bb72a33ec938063cd79ae66188c888737ef9079
MD5 e7c152933995dc929f9ced31a06d4d93
BLAKE2b-256 3a4198645e1067e9206281fca5572c37aeb67ff446f42339adde523f8647cee5

See more details on using hashes here.

File details

Details for the file libsass-0.2.3-py2.6-win-amd64.egg.

File metadata

File hashes

Hashes for libsass-0.2.3-py2.6-win-amd64.egg
Algorithm Hash digest
SHA256 5aecff993dc53bebfcffc691c85db79eed467dc7ce3a3907472cf8cf6de1876d
MD5 50f68f919f73140f0edf7906e9a48375
BLAKE2b-256 fed5e80c088e8209076582f83deeb59d0b5815da2eded2747b18fa3e6787e6f3

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