__init__.py 504 B

123456789101112131415161718192021
  1. """
  2. Styling for prompt_toolkit applications.
  3. """
  4. from __future__ import unicode_literals
  5. from .base import *
  6. from .defaults import *
  7. from .from_dict import *
  8. from .from_pygments import *
  9. from .utils import *
  10. #: The default built-in style.
  11. #: (For backwards compatibility, when Pygments is installed, this includes the
  12. #: default Pygments style.)
  13. try:
  14. import pygments
  15. except ImportError:
  16. DEFAULT_STYLE = style_from_dict(DEFAULT_STYLE_EXTENSIONS)
  17. else:
  18. DEFAULT_STYLE = style_from_pygments()