PageRenderTime 37ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 1ms

/scss/__init__.py

http://github.com/Kronuz/pyScss
Python | 63 lines | 32 code | 2 blank | 29 comment | 2 complexity | 0667403cc3c5c7dcde89f36e886dd4bb MD5 | raw file
Possible License(s): MIT
  1. #-*- coding: utf-8 -*-
  2. """
  3. pyScss, a Scss compiler for Python
  4. @author German M. Bravo (Kronuz) <german.mb@gmail.com>
  5. @version 1.2.0 alpha
  6. @see https://github.com/Kronuz/pyScss
  7. @copyright (c) 2012-2013 German M. Bravo (Kronuz)
  8. @license MIT License
  9. http://www.opensource.org/licenses/mit-license.php
  10. pyScss compiles Scss, a superset of CSS that is more powerful, elegant and
  11. easier to maintain than plain-vanilla CSS. The library acts as a CSS source code
  12. preprocesor which allows you to use variables, nested rules, mixins, andhave
  13. inheritance of rules, all with a CSS-compatible syntax which the preprocessor
  14. then compiles to standard CSS.
  15. Scss, as an extension of CSS, helps keep large stylesheets well-organized. It
  16. borrows concepts and functionality from projects such as OOCSS and other similar
  17. frameworks like as Sass. It's build on top of the original PHP xCSS codebase
  18. structure but it's been completely rewritten, many bugs have been fixed and it
  19. has been extensively extended to support almost the full range of Sass' Scss
  20. syntax and functionality.
  21. Bits of code in pyScss come from various projects:
  22. Compass:
  23. (c) 2009 Christopher M. Eppstein
  24. http://compass-style.org/
  25. Sass:
  26. (c) 2006-2009 Hampton Catlin and Nathan Weizenbaum
  27. http://sass-lang.com/
  28. xCSS:
  29. (c) 2010 Anton Pawlik
  30. http://xcss.antpaw.org/docs/
  31. """
  32. from __future__ import absolute_import
  33. from __future__ import print_function
  34. from __future__ import unicode_literals
  35. from __future__ import division
  36. from scss.scss_meta import BUILD_INFO, PROJECT, VERSION, REVISION, URL, AUTHOR, AUTHOR_EMAIL, LICENSE
  37. __project__ = PROJECT
  38. __version__ = VERSION
  39. __author__ = AUTHOR + ' <' + AUTHOR_EMAIL + '>'
  40. __license__ = LICENSE
  41. import logging
  42. log = logging.getLogger(__name__)
  43. # Helpful re-exports
  44. from scss.compiler import Compiler
  45. # Backwards compatibility
  46. from scss.legacy import Scss
  47. # TODO surely there are others. what do our own django docs say...?
  48. __all__ = ['Compiler']