{ "info": { "author": "Fusionbox, Inc.", "author_email": "programmers@fusionbox.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Internet :: WWW/HTTP" ], "description": "django-pyscss\n-------------\n\nA collection of tools for making it easier to use pyScss within Django.\n\n.. image:: https://travis-ci.org/fusionbox/django-pyscss.png\n :target: http://travis-ci.org/fusionbox/django-pyscss\n :alt: Build Status\n\n.. image:: https://coveralls.io/repos/fusionbox/django-pyscss/badge.png?branch=master\n :target: https://coveralls.io/r/fusionbox/django-pyscss\n :alt: Coverage Status\n\n\n.. note::\n\n This version only supports pyScss 1.3.4 and greater. For pyScss 1.2 support,\n you can use the 1.x series of django-pyscss.\n\n\nInstallation\n============\n\ndjango-pyscss supports Django 1.4+, and Pythons 2 and 3.\n\nYou may install django-pyscss off of PyPI::\n\n pip install django-pyscss\n\n\nWhy do we need this?\n====================\n\nThis app smooths over a lot of things when dealing with pyScss in Django. It\n\n- Overwrites the import system to use Django's staticfiles app. This way you\n can import SCSS files from any app (or any file that's findable by the\n STATICFILES_FINDERS) with no hassle.\n\n- Configures pyScss to work with the staticfiles app for its image functions\n (e.g. inline-image and sprite-map).\n\n- It provides a django-compressor precompile filter class so that you can\n easily use pyScss with django-compressor without having to bust out to the\n shell. This has the added benefit of removing the need to configure pyScss\n through its command-line arguments AND makes it possible for the exceptions\n and warnings that pyScss emits to bubble up to your process so that you can\n actually know what's going on.\n\n\nRendering SCSS manually\n=======================\n\nYou can render SCSS manually from a string like this:\n\n.. code-block:: python\n\n from django_pyscss import DjangoScssCompiler\n\n compiler = DjangoScssCompiler()\n compiler.compile_string(\".foo { color: green; }\")\n\nYou can render SCSS from a file like this:\n\n.. code-block:: python\n\n from django_pyscss import DjangoScssCompiler\n\n compiler = DjangoScssCompiler()\n compiler.compile('css/styles.scss')\n\nThe file needs to be able to be located by staticfiles finders in order to be\nused.\n\nThe ``DjangoScssCompiler`` class is a subclass of ``scss.Compiler`` that\ninjects the ``DjangoExtension``. ``DjangoExtension`` is what overrides the\nimport mechanism.\n\n``DjangoScssCompiler`` also turns on the CompassExtension by default, if you\nwish to turn this off you do so:\n\n.. code-block:: python\n\n from django_pyscss import DjangoScssCompiler\n from django_pyscss.extensions.django import DjangoExtension\n\n compiler = DjangoScssCompiler(extensions=[DjangoExtension])\n\nFor a list of options that ``DjangoScssCompiler`` accepts, please see the\npyScss `API documentation `_.\n\n\nUsing in conjunction with django-compressor\n===========================================\n\ndjango-pyscss comes with support for django-compressor. All you have to do is\nadd it to your ``COMPRESS_PRECOMPILERS`` setting. :\n\n.. code-block:: python\n\n COMPRESS_PRECOMPILERS = (\n # ...\n ('text/x-scss', 'django_pyscss.compressor.DjangoScssFilter'),\n # ...\n )\n\nThen you can just use SCSS like you would use CSS normally. :\n\n.. code-block:: html+django\n\n {% compress css %}\n \n {% endcompress %}\n\nIf you wish to provide your own compiler instance (for example if you wanted to\nchange some settings on the ``DjangoScssCompiler``), you can subclass\n``DjangoScssFilter``. :\n\n.. code-block:: python\n\n # myproject/scss_filter.py\n from django_pyscss import DjangoScssCompiler\n from django_pyscss.compressor import DjangoScssFilter\n\n class MyDjangoScssFilter(DjangoScssFilter):\n compiler = DjangoScssCompiler(\n # Example configuration\n output_style='compressed',\n )\n\n # settings.py\n COMPRESS_PRECOMPILERS = (\n # ...\n ('text/x-scss', 'myproject.scss_filter.MyDjangoScssFilter'),\n # ...\n )\n\n\nRunning the tests\n=================\n\nYou can run the tests by running.\n\n $ python setup.py test\n\nPlease note that this will collecstatic into ``tmp/static/`` automatically as\nsome of the tests require the staticfiles to have been collected.\n\n\nCHANGELOG\n---------\n\n\n2.0.2 (2015-04-29)\n==================\n\n- Fixed bug with relative imports [#34, #35 r1chardj0n3s]\n\n\n2.0.1 (2015-04-23)\n==================\n\n- Explicitly depend on pathlib, instead of assuming pyScss will require it. [#33]\n- Fixed cases where DEBUG is False but collectstatic hasn't been run (common in tests).\n\n\n2.0.0 (2015-04-22)\n==================\n\n- Added support for pyScss 1.3 and Python 3.\n- Dropped support for pyScss 1.2\n\nUpgrade path\n^^^^^^^^^^^^\n\nIf you are just using the django-compressor integration, you don't have to\nupgrade anything.\n\nIf you were using the ``DjangoScss`` class directly, it has been replaced with\nthe ``DjangoScssCompiler`` class. The API for compiling CSS has changed as\nwell, for example, to compile from a string, previously you would do it like\nthis:\n\n.. code-block:: python\n\n >>> from django_pyscss.scss import DjangoScss\n >>> compiler = DjangoScss()\n >>> compiler.compile(\".foo { color: red; }\")\n\nNow the interface is like this:\n\n.. code-block:: python\n\n >>> from django_pyscss import DjangoScssCompiler\n >>> compiler = DjangoScssCompiler()\n >>> compiler.compile_string(\".foo { color: red; }\")\n\nYou read more about the new API on the `pyScss API documentation\n`_.\n\n\n1.0.0 - 2014-02-11\n==================\n\nReleased django-pyscss.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fusionbox/django-pyscss", "keywords": "django css scss sass pyscss compressor", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-pyscss", "package_url": "https://pypi.org/project/django-pyscss/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-pyscss/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/fusionbox/django-pyscss" }, "release_url": "https://pypi.org/project/django-pyscss/2.0.2/", "requires_dist": null, "requires_python": null, "summary": "Makes it easier to use PySCSS in Django.", "version": "2.0.2" }, "last_serial": 1526495, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "09e10ffbfb5d0edf21295b8a83218e98", "sha256": "316808c1bc530fbfc68a628a423cfb7182ce2fa7ac027750b2726aa3f1be2c23" }, "downloads": -1, "filename": "django-pyscss-1.0.0.tar.gz", "has_sig": false, "md5_digest": "09e10ffbfb5d0edf21295b8a83218e98", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7009, "upload_time": "2014-02-12T06:32:29", "url": "https://files.pythonhosted.org/packages/e6/00/7d05eb3742e0a3d7543ed941c98686a9552d192e49cd062adc9642a25c9f/django-pyscss-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "e6ec5c8165ff98d5ef5d660106843924", "sha256": "9cfa2ac0a28df27b539ad00559dbc3a1b833057bb7f0ca302ac37b0d3a060bd5" }, "downloads": -1, "filename": "django-pyscss-1.0.1.tar.gz", "has_sig": false, "md5_digest": "e6ec5c8165ff98d5ef5d660106843924", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6880, "upload_time": "2014-06-04T09:51:34", "url": "https://files.pythonhosted.org/packages/d1/42/a69f977bb25f6018aedb1fb6dd900e872ee8e2ea0463db37aaa4ecf40264/django-pyscss-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "3cf85815cef094eb95d1c4bcd83fce0e", "sha256": "d205df9f3d7afbcab72f87445c5ebacef155c4831cfa0d90effa6cecb15baa62" }, "downloads": -1, "filename": "django-pyscss-1.0.2.tar.gz", "has_sig": false, "md5_digest": "3cf85815cef094eb95d1c4bcd83fce0e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6964, "upload_time": "2014-08-04T14:00:18", "url": "https://files.pythonhosted.org/packages/3e/6b/0c93dcfa931081b2925518f21363d86976218b9972e1903f8fb91e01f008/django-pyscss-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "edc449f7fbe375cdf7f6079d67fe41da", "sha256": "255a097fa9c14a4a8b6b1bd1e2d775babb5814fd664d6e9dad399fca14ab9018" }, "downloads": -1, "filename": "django-pyscss-1.0.3.tar.gz", "has_sig": false, "md5_digest": "edc449f7fbe375cdf7f6079d67fe41da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6985, "upload_time": "2014-09-15T10:14:53", "url": "https://files.pythonhosted.org/packages/43/3e/b108f7127c195ed135cc94cd331d9df003d53aa5395a03d5beb8ac24e820/django-pyscss-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "e5503b9be0111e4e283fcc915f4a21c3", "sha256": "67b1f27ce1a7b63937c9a7229e0b99b3350ad86e0d4ea3d34631c49b342ca9e2" }, "downloads": -1, "filename": "django-pyscss-1.0.4.tar.gz", "has_sig": false, "md5_digest": "e5503b9be0111e4e283fcc915f4a21c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6924, "upload_time": "2014-10-16T20:55:44", "url": "https://files.pythonhosted.org/packages/6f/0d/9dc09d5cc9d25b16a73c017c61bc16cc8ea66336fa902541e4da0b7278e1/django-pyscss-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "3739de60f7daf61357b7e69972ef04d4", "sha256": "a377ed9b3e5532b9b9d0bba6c967cac3ca16807648ac5c29624f3e1e484481b3" }, "downloads": -1, "filename": "django-pyscss-1.0.5.tar.gz", "has_sig": false, "md5_digest": "3739de60f7daf61357b7e69972ef04d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6933, "upload_time": "2014-10-16T21:06:21", "url": "https://files.pythonhosted.org/packages/97/5e/58764e112142e321c179e8e1910720cf9a13d8f7a40addac6ce46338ca9b/django-pyscss-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "dd96a50f663d4e079f4e6ac043ca5022", "sha256": "4575e65fa1a28529211ba22d7009e62d4f25a4ab2e7d7de14abea2e5b1c9f8f6" }, "downloads": -1, "filename": "django-pyscss-1.0.6.tar.gz", "has_sig": false, "md5_digest": "dd96a50f663d4e079f4e6ac043ca5022", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6951, "upload_time": "2014-10-17T15:41:50", "url": "https://files.pythonhosted.org/packages/a0/90/47b16119fa38ef7cdc439eb8de7d8e9113988e36efc32bce3fa1b35db397/django-pyscss-1.0.6.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "9d89cca339b03b84acd92536825bddbf", "sha256": "644339d8b06d267a642ea681811d6c7b309ca7842320ff3d446910af01fe63ed" }, "downloads": -1, "filename": "django-pyscss-2.0.0.tar.gz", "has_sig": false, "md5_digest": "9d89cca339b03b84acd92536825bddbf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17278, "upload_time": "2015-04-22T22:35:43", "url": "https://files.pythonhosted.org/packages/2b/62/8effe96acff897e3592d21a313168e30c8c0d3937b8376b032ef9a9b4a02/django-pyscss-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "4df1b89942f41b8e8bde8704efcfe6c2", "sha256": "03fa4d7e483d87eaa4df0e91b337d078a39fcca897952e8d65ebdca7f759a822" }, "downloads": -1, "filename": "django-pyscss-2.0.1.tar.gz", "has_sig": false, "md5_digest": "4df1b89942f41b8e8bde8704efcfe6c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16279, "upload_time": "2015-04-23T20:37:01", "url": "https://files.pythonhosted.org/packages/1e/7a/f95849c421500afe82137642491193c112bea4e622f26f54d35c6ec9c6a3/django-pyscss-2.0.1.tar.gz" } ], "2.0.2": [ { "comment_text": "", "digests": { "md5": "f8dbcc4d314c8e220aa311ec6561b06d", "sha256": "0f4844f8fd3f69f4d428a616fdcf2b650a24862dd81443ae3fba14980c7b0615" }, "downloads": -1, "filename": "django-pyscss-2.0.2.tar.gz", "has_sig": false, "md5_digest": "f8dbcc4d314c8e220aa311ec6561b06d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17791, "upload_time": "2015-04-29T17:43:05", "url": "https://files.pythonhosted.org/packages/4b/7f/d771802305184aac6010826f60a0b2ecaa3f57d19ab0e405f0c8db07e809/django-pyscss-2.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f8dbcc4d314c8e220aa311ec6561b06d", "sha256": "0f4844f8fd3f69f4d428a616fdcf2b650a24862dd81443ae3fba14980c7b0615" }, "downloads": -1, "filename": "django-pyscss-2.0.2.tar.gz", "has_sig": false, "md5_digest": "f8dbcc4d314c8e220aa311ec6561b06d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17791, "upload_time": "2015-04-29T17:43:05", "url": "https://files.pythonhosted.org/packages/4b/7f/d771802305184aac6010826f60a0b2ecaa3f57d19ab0e405f0c8db07e809/django-pyscss-2.0.2.tar.gz" } ] }