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