__init__.py 927 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. """
  2. prompt_toolkit
  3. ==============
  4. Author: Jonathan Slenders
  5. Description: prompt_toolkit is a Library for building powerful interactive
  6. command lines in Python. It can be a replacement for GNU
  7. Readline, but it can be much more than that.
  8. See the examples directory to learn about the usage.
  9. Probably, to get started, you might also want to have a look at
  10. `prompt_toolkit.shortcuts.prompt`.
  11. """
  12. from .application import Application
  13. from .formatted_text import ANSI, HTML
  14. from .shortcuts import PromptSession, print_formatted_text, prompt
  15. # Don't forget to update in `docs/conf.py`!
  16. __version__ = "3.0.29"
  17. # Version tuple.
  18. VERSION = tuple(__version__.split("."))
  19. __all__ = [
  20. # Application.
  21. "Application",
  22. # Shortcuts.
  23. "prompt",
  24. "PromptSession",
  25. "print_formatted_text",
  26. # Formatted text.
  27. "HTML",
  28. "ANSI",
  29. # Version info.
  30. "__version__",
  31. "VERSION",
  32. ]