{"id":13502249,"url":"https://github.com/sass/libsass-python","last_synced_at":"2025-12-12T01:04:57.301Z","repository":{"id":37561902,"uuid":"5433677","full_name":"sass/libsass-python","owner":"sass","description":"A straightforward binding of libsass for Python.  Compile Sass/SCSS in Python with no Ruby stack at all!","archived":false,"fork":false,"pushed_at":"2025-03-31T20:52:27.000Z","size":8253,"stargazers_count":569,"open_issues_count":10,"forks_count":54,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-04-19T07:19:07.572Z","etag":null,"topics":["python","sass","scss"],"latest_commit_sha":null,"homepage":"https://sass.github.io/libsass-python/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sass.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-08-16T01:31:33.000Z","updated_at":"2025-04-09T04:13:15.000Z","dependencies_parsed_at":"2024-03-17T03:27:53.171Z","dependency_job_id":"71503c18-3b47-4658-b623-5ff7cf3a4ff4","html_url":"https://github.com/sass/libsass-python","commit_stats":{"total_commits":2195,"total_committers":95,"mean_commits":"23.105263157894736","dds":0.5603644646924829,"last_synced_commit":"e468db2b7d744a45c1ff831a7a619b2d6c8d6a11"},"previous_names":["dahlia/libsass-python"],"tags_count":66,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sass%2Flibsass-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sass%2Flibsass-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sass%2Flibsass-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sass%2Flibsass-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sass","download_url":"https://codeload.github.com/sass/libsass-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250563612,"owners_count":21450864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python","sass","scss"],"created_at":"2024-07-31T22:02:07.620Z","updated_at":"2025-12-12T01:04:52.259Z","avatar_url":"https://github.com/sass.png","language":"Python","readme":"libsass-python: Sass_/SCSS for Python\n=====================================\n\n.. image:: https://badge.fury.io/py/libsass.svg\n   :alt: PyPI\n   :target: https://pypi.org/pypi/libsass/\n\n.. image:: https://github.com/sass/libsass-python/actions/workflows/main.yml/badge.svg\n   :target: https://github.com/sass/libsass-python/actions/workflows/main.yml\n   :alt: Build Status\n\n.. image:: https://results.pre-commit.ci/badge/github/sass/libsass-python/main.svg\n   :target: https://results.pre-commit.ci/latest/github/sass/libsass-python/main\n   :alt: pre-commit.ci status\n\nThis package provides a simple Python extension module ``sass`` which is\nbinding LibSass_ (written in C/C++ by Hampton Catlin and Aaron Leung).\nIt's very straightforward and there isn't any headache related to Python\ndistribution/deployment.  That means you can add just ``libsass`` into\nyour ``setup.py``'s ``install_requires`` list or ``requirements.txt`` file.\nNo need for Ruby nor Node.js.\n\n.. _Sass: https://sass-lang.com/\n.. _LibSass: https://github.com/sass/libsass\n\n\nFeatures\n--------\n\n- You don't need any Ruby/Node.js stack at all, for development or deployment\n  either.\n- Fast. (LibSass_ is written in C++.)\n- Simple API.  See the below example code for details.\n- Custom functions.\n- ``@import`` callbacks.\n- Support both tabbed (Sass) and braces (SCSS) syntax.\n- WSGI middleware for ease of development.\n  It automatically compiles Sass/SCSS files for each request.\n- ``setuptools``/``distutils`` integration.\n  You can build all Sass/SCSS files using\n  ``setup.py build_sass`` command.\n- Works also on PyPy.\n- Provides prebuilt wheel_ binaries for Linux, Windows, and Mac.\n\n.. _wheel: https://www.python.org/dev/peps/pep-0427/\n\n\nInstall\n-------\n\nIt's available on PyPI_, so you can install it using ``pip`` (or\n``easy_install``):\n\n.. code-block:: console\n\n   $ pip install libsass\n\n.. note::\n\n   libsass requires some features introduced by the recent C++ standard.\n   You need a C++ compiler that support those features.\n   See also libsass project's README_ file.\n\n.. _PyPI: https://pypi.org/pypi/libsass/\n.. _README: https://github.com/sass/libsass#readme\n\n\n.. _example:\n\nExample\n-------\n\n.. code-block:: pycon\n\n   \u003e\u003e\u003e import sass\n   \u003e\u003e\u003e print sass.compile(string='a { b { color: blue; } }')\n   a b {\n     color: blue; }\n\n\nDocs\n----\n\nThere's the user guide manual and the full API reference for ``libsass``:\n\nhttps://sass.github.io/libsass-python/\n\nYou can build the docs by yourself:\n\n.. code-block:: console\n\n   $ cd docs/\n   $ make html\n\nThe built docs will go to ``docs/_build/html/`` directory.\n\n\nCredit\n------\n\nHong Minhee wrote this Python binding of LibSass_.\n\nHampton Catlin and Aaron Leung wrote LibSass_, which is portable C/C++\nimplementation of Sass_.\n\nHampton Catlin originally designed Sass_ language and wrote the first\nreference implementation of it in Ruby.\n\nThe above three are all distributed under `MIT license`_.\n\n.. _MIT license: https://mit-license.org/\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsass%2Flibsass-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsass%2Flibsass-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsass%2Flibsass-python/lists"}