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, 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.3.0.tar.gz (86.2 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.3.0-cp33-none-win_amd64.whl (238.1 kB view details)

Uploaded CPython 3.3Windows x86-64

libsass-0.3.0-cp33-cp33m-macosx_10_6_intel.whl (681.4 kB view details)

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

libsass-0.3.0-cp27-none-win_amd64.whl (238.1 kB view details)

Uploaded CPython 2.7Windows x86-64

libsass-0.3.0-cp27-none-macosx_10_8_intel.whl (682.2 kB view details)

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

libsass-0.3.0-cp26-none-win_amd64.whl (238.3 kB view details)

Uploaded CPython 2.6Windows x86-64

File details

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

File metadata

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

File hashes

Hashes for libsass-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0604e6f8b63da8a331d4320d6de24d0f95dd8b80d554c48f38e04e48bf770999
MD5 3194c33aeb93318002b4d64447894979
BLAKE2b-256 1a0bdc05e61be7f533f9f5889257ce55107e73da11969f8384a88f0dd6e8eec2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.3.0-cp33-none-win_amd64.whl
Algorithm Hash digest
SHA256 dbf5621377d12dfae94b1a005c2959d4fa38e4fe7d332378addc29253259861c
MD5 c5613915f65fb609866c4ec4b305ecfb
BLAKE2b-256 006188f97a756f371781eeea60ca2e5679b56d9f6ada26080ce485a180f4710e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.3.0-cp33-cp33m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 5e781ab533a6774b6b4119f7e6da8053c5f8be601100d745431ac07d3871e565
MD5 b4062591324d21c2b194358af636a762
BLAKE2b-256 e5e9e0415d57ef8652f4a86e3b98c8323454da1651a378284dddf66c430b12cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.3.0-cp27-none-win_amd64.whl
Algorithm Hash digest
SHA256 331bb45aaef79e26f594dae90843ea364b8539287abbd033547ca92a7081db46
MD5 88102358054a76377f240077923e643c
BLAKE2b-256 e321d630a026daf89b62fa70d78b72922b00e59ea20f8d303698e0f483554d04

See more details on using hashes here.

File details

Details for the file libsass-0.3.0-cp27-none-macosx_10_8_intel.whl.

File metadata

File hashes

Hashes for libsass-0.3.0-cp27-none-macosx_10_8_intel.whl
Algorithm Hash digest
SHA256 48ca79fee1b2b170440f19b2f40ac92d8f376e6bdf1c10e9aa4c63102a4856e3
MD5 7587ef7157cb9e4f0c4bbfacddde49d2
BLAKE2b-256 25c084ca0cc3087e84b7898da79ec604a65d79445364313aa4f16b2ed12c0e79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.3.0-cp26-none-win_amd64.whl
Algorithm Hash digest
SHA256 8c0b48d9233d35916a45e9393267eb93a152d3ea2933ac7c11ada6dbb8ba6fea
MD5 da334ca1dc532532c76270afdcc06d1a
BLAKE2b-256 f454af0e47e094feec46946f711b955405ccea6bedd74fcf4a2d7284d41a4917

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