Skip to main content

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

Project description

The latest PyPI release 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.4, and PyPy 2.3+!

Install

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

$ pip install libsass

Every release of libsass-python uses the most recent release of Libsass. If you want bleeding edge features of libsass master, try installing libsass-unstable package instead:

$ pip install libsass-unstable

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.

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.6.2.tar.gz (159.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.6.2-cp34-none-win_amd64.whl (318.0 kB view details)

Uploaded CPython 3.4Windows x86-64

libsass-0.6.2-cp34-none-win32.whl (235.3 kB view details)

Uploaded CPython 3.4Windows x86

libsass-0.6.2-cp34-cp34m-macosx_10_6_intel.whl (481.6 kB view details)

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

libsass-0.6.2-cp33-none-win_amd64.whl (316.9 kB view details)

Uploaded CPython 3.3Windows x86-64

libsass-0.6.2-cp33-none-win32.whl (237.3 kB view details)

Uploaded CPython 3.3Windows x86

libsass-0.6.2-cp33-cp33m-macosx_10_6_intel.whl (479.5 kB view details)

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

libsass-0.6.2-cp27-none-win_amd64.whl (317.1 kB view details)

Uploaded CPython 2.7Windows x86-64

libsass-0.6.2-cp27-none-win32.whl (236.8 kB view details)

Uploaded CPython 2.7Windows x86

libsass-0.6.2-cp27-none-macosx_10_9_intel.whl (465.1 kB view details)

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

libsass-0.6.2-cp26-none-win_amd64.whl (317.4 kB view details)

Uploaded CPython 2.6Windows x86-64

libsass-0.6.2-cp26-none-win32.whl (237.0 kB view details)

Uploaded CPython 2.6Windows x86

libsass-0.6.2-cp26-none-macosx_10_9_x86_64.whl (465.1 kB view details)

Uploaded CPython 2.6macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for libsass-0.6.2.tar.gz
Algorithm Hash digest
SHA256 67fb39ea73a06629d9e496b8c4b9851e0ee00882899a2bd418fadf3e4c1119ff
MD5 0dda1114a1f2ec1acb51cb1dd78fe7a0
BLAKE2b-256 5ba3bd38c55220ca18b7c5a200aa39bb7d4868281ff1e28f4096606a955ee96d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.6.2-cp34-none-win_amd64.whl
Algorithm Hash digest
SHA256 f0535de96b45d8e6e3e91d29d961dff0e35faea2a925a65af0678de204b913b1
MD5 16836491c74d4e61164bdbc3ae12116b
BLAKE2b-256 32daed4abb5e3046f6a1a5e5af8088aa21f81754aad955a30a8c8fa301fac04c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.6.2-cp34-none-win32.whl
Algorithm Hash digest
SHA256 2692491dc2d3d88efe9d7057ef3a1d0f896e710bf5ad159ecab707d10b7a3649
MD5 5ce983f5c45d49ef846e86aa50b32408
BLAKE2b-256 cb1d04be1b22456ed56aaac890ea4c120d5da1e56778f0848faa573ea25374dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.6.2-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 cd14273b83fb4f38f82503c65dfebb92ba42aef2517780da9123a2578272e5c7
MD5 6f4a3244632fc8e04b38cc04e0f91b1b
BLAKE2b-256 966f2106d4ed94c861203bd4b09aa4de55c4620555c3b1be3f4b60837bc45186

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.6.2-cp33-none-win_amd64.whl
Algorithm Hash digest
SHA256 2fea0a77dbd6abb05a7ce4f319a544ff3e1785caca3431e046e1463f5282026a
MD5 393f3fe09fe278360d7576425903e15e
BLAKE2b-256 1b73163d97d67084d95d974daa3f2ed25e84d1d1eac9e33ac3f037aa2c400a99

See more details on using hashes here.

File details

Details for the file libsass-0.6.2-cp33-none-win32.whl.

File metadata

File hashes

Hashes for libsass-0.6.2-cp33-none-win32.whl
Algorithm Hash digest
SHA256 b8f862cdb7f1d2dc0efb41628148c8f15d346f11967af710ac20a4245225015b
MD5 68da038c7abcdbb34d9fa0f57023550a
BLAKE2b-256 3d13a8c8f7cc85e66823b435de17eaa8aa8ba82d5801fd7f18fc85ff97d2f735

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.6.2-cp33-cp33m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 78cadd376d2c28a5b3cf848c86660cf241f5b5a1541d61caece5f1b48b584b2c
MD5 fd2ffe5d329802a5c7003c2281520263
BLAKE2b-256 39fddc7a48ffefb3e8dbf49886a6a6567075e596ce8e365b8d0878af9d5a7af0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.6.2-cp27-none-win_amd64.whl
Algorithm Hash digest
SHA256 0620e5fe518d7002408cd382c94ef8b0e209f081a6759e144a984feb5a47d743
MD5 e9eff2cdd4b87148f97bbaeb8fd083c2
BLAKE2b-256 e6db3e077ecba39d2a7671728148e510a592544c1088327d2c24ac09853b48a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.6.2-cp27-none-win32.whl
Algorithm Hash digest
SHA256 55058a2a2d61d429aa229eb1bb9a09fcb018f2e1d32306c603407f263042d89e
MD5 c24bdff2db863b036cb04798208bd108
BLAKE2b-256 e175cd9d6e53a1f9ddec083fab89c47e89ceb6af260af79650b5cb0c4f793f87

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.6.2-cp27-none-macosx_10_9_intel.whl
Algorithm Hash digest
SHA256 b048a5ff91a74ed0597a5817c8e39afb03c8e0596b9c1931b5740225e761838e
MD5 622e9ff5434291fe3febca6164f2897a
BLAKE2b-256 bc1472678d07263f1e7731d77fdc67e1ce9dd8e8064fd308694ebc6ae9f0f768

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.6.2-cp26-none-win_amd64.whl
Algorithm Hash digest
SHA256 01618dc5bc8fa7febf63dbf3feb995cd4216ad1e5e61d1c1ec320fd3a4c14cb1
MD5 3908b8cb5ec400f4301eaae58fb975b7
BLAKE2b-256 dfd411f6eba0fd3aa9a328ddf592aa2cc60ad0935ff4a7496ad39190116a6583

See more details on using hashes here.

File details

Details for the file libsass-0.6.2-cp26-none-win32.whl.

File metadata

File hashes

Hashes for libsass-0.6.2-cp26-none-win32.whl
Algorithm Hash digest
SHA256 afbdba70e4d959c7505d5f6ad2b5aa9edfd55c2b6953b1858371916ab877f272
MD5 e31e79797b34638ee19f9abe8817cc51
BLAKE2b-256 610a02f9fd13f6d8088aca089f2a29f6a5102f24fe2d16c992db6e96877c61c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libsass-0.6.2-cp26-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8af46e83f36988916085b66d2ec2e9234d11f6b09beeac7cc6689d0c71e5b013
MD5 900c9d13f707adf40396295d68c62293
BLAKE2b-256 c9fbe57da8a6e23a7702ad5081ed2a14ccee8ec3eeb3f6081cb9ed6b43fc95bf

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