{"id":17233283,"url":"https://github.com/marianoguerra/sasspython","last_synced_at":"2025-10-19T17:10:11.643Z","repository":{"id":4096320,"uuid":"5204487","full_name":"marianoguerra/SassPython","owner":"marianoguerra","description":"python bindings for libsass","archived":false,"fork":false,"pushed_at":"2012-12-18T07:41:28.000Z","size":140,"stargazers_count":19,"open_issues_count":5,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T09:02:28.110Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marianoguerra.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-27T12:52:35.000Z","updated_at":"2019-04-16T13:48:01.000Z","dependencies_parsed_at":"2022-09-17T15:01:28.924Z","dependency_job_id":null,"html_url":"https://github.com/marianoguerra/SassPython","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianoguerra%2FSassPython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianoguerra%2FSassPython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianoguerra%2FSassPython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianoguerra%2FSassPython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marianoguerra","download_url":"https://codeload.github.com/marianoguerra/SassPython/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248809024,"owners_count":21164895,"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":[],"created_at":"2024-10-15T05:02:29.912Z","updated_at":"2025-10-19T17:10:06.612Z","avatar_url":"https://github.com/marianoguerra.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"SassPython - bindings for libsass\n=================================\n\nwhy?\n----\n\n* the guy on this talk asqued for it: http://www.confreaks.com/videos/859-railsconf2012-the-future-of-sass\n* I wanted to play with ctypes\n\nwho?\n----\n\nmarianoguerra\n\nhow?\n----\n\nfirst of all download, compile and install libsass::\n\n        git clone https://github.com/hcatlin/libsass.git\n        cd libsass\n        ./configure\n        make\n        sudo make install\n\nthen you can play with this project in two ways\n\ncommand line\n............\n\nif no options provided read from stdin::\n\n        ➜  src  ./sass.py                           \n        table.hl td.ln {\n          text-align: right;\n        }\n\n        table.hl td.ln {\n          text-align: right; }\n\nfrom a file::\n\n        ➜  src  ./sass.py -f ../examples/simple.scss\n\n        .content-navigation {\n          border-color: #3bbfce;\n          color: darken(#3bbfce, 9%); }\n\n        .border {\n          padding: 8px;\n          margin: 8px;\n          border-color: #3bbfce; }\n\nfrom a folder:\n\n.. image:: http://chzscience.files.wordpress.com/2011/11/funny-science-news-experiments-memes-dog-science-fuzzy-logic.jpg\n\n::\n\n        # I think it doesn't work, never used sass before and don't know what\n        # this means :)\n        ➜  src  ./sass.py -d ../examples/\n\nyou can't chew gum and walk at the same time::\n\n        ➜  src  ./sass.py -f ../examples/simple.scss -d ~\n        usage: sass.py [-h] [-f FILE_PATH | -d DIR_PATH]\n        sass.py: error: argument -d/--dir: not allowed with argument -f/--file\n\ncode\n....\n\nfrom a string::\n\n        Python 2.7.3 (default, Apr 20 2012, 22:44:07) \n\n        \u003e\u003e\u003e import sass\n        \u003e\u003e\u003e STYLE = \"\"\"\n        ... table.hl td.ln {\n        ...   text-align: right;\n        ... }\n        ... \"\"\"\n\n        \u003e\u003e\u003e ok, style = sass.compile(STYLE)\n\n        \u003e\u003e\u003e ok\n        True\n\n        \u003e\u003e\u003e print style\n        table.hl td.ln {\n          text-align: right; }\n\nfrom a file::\n\n        \u003e\u003e\u003e ok, style = sass.compile_path(\"../examples/simple.scss\")\n\n        \u003e\u003e\u003e ok\n        True\n\n        \u003e\u003e\u003e print style\n        .content-navigation {\n          border-color: #3bbfce;\n          color: darken(#3bbfce, 9%); }\n\n        .border {\n          padding: 8px;\n          margin: 8px;\n          border-color: #3bbfce; }\n\nfrom a folder::\n\n        \u003e\u003e\u003e ok, style = sass.compile_folder(\"../examples/\")\n        \n        # ???\n        # Profit!\n\nhow to install?\n---------------\n\nfrom sources\n............\n\npython 2::\n\n        sudo python2 setup.py install\n\npython 3::\n\n        sudo python3 setup.py install\n\nusing pip\n.........\n\n::\n\n        sudo pip install SassPython\n\nlicense?\n--------\n\nMIT + optional beer for the creator\n\nwhat's left to do?\n------------------\n\n* make the folder stuff work\n* add command line options to specify option styles\n* see what the return value of the compile_* means and use it if needed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarianoguerra%2Fsasspython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarianoguerra%2Fsasspython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarianoguerra%2Fsasspython/lists"}