{"id":28101,"library":"pyScss","title":"pyScss (SCSS compiler for Python)","description":"A Scss (Sassy CSS) compiler for Python. Version 1.4.0, with irregular releases. Implements the SCSS syntax (a CSS preprocessor) and outputs CSS.","status":"maintenance","version":"1.4.0","language":"python","source_language":"en","source_url":"https://github.com/Kronuz/pyScss","tags":["scss","css","preprocessor","compiler"],"install":[{"cmd":"pip install pyScss","lang":"bash","label":"Standard install"}],"dependencies":[{"reason":"Used for Python 2/3 compatibility","package":"six","optional":false}],"imports":[{"note":"The top package is 'scss', not 'pyScss'.","wrong":"from pyScss import Scss","symbol":"Scss","correct":"from scss import Scss"}],"quickstart":{"code":"from scss import Scss\n\nscss = Scss()\ncss = scss.compile('''\n$color: #ff0000;\nbody { color: $color; }\n''')\nprint(css)","lang":"python","description":"Compile SCSS to CSS using the Scss class."},"warnings":[{"fix":"Use 'from scss import Scss'.","message":"Import from 'scss' not 'pyScss'.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade to 1.4.0 (Python 3 compatible) and ensure Python 3.6+.","message":"Python 2 support ending; Python 3.6+ required in future.","severity":"deprecated","affected_versions":"<=1.3.7"},{"fix":"Test your SCSS; prefer libsass (pysass) for compatibility.","message":"pyScss uses its own non-standard SCSS syntax; not fully compatible with Ruby Sass or LibSass.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Install 'pyScss' but import as 'scss': 'pip install pyScss' then 'from scss import Scss'.","cause":"Package installed but imported incorrectly as 'pyScss'.","error":"ModuleNotFoundError: No module named 'scss'"},{"fix":"Upgrade pyScss to 1.4.0 (fixes Python 3 compatibility).","cause":"Using Python 3.9+ with older pyScss that relies on deprecated 'collections' imports from 'six'.","error":"SyntaxError: invalid syntax (file.py line X) ... pyScss uses six"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}