__init__.py 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # -*- coding: utf-8 -*-
  2. """
  3. flask
  4. ~~~~~
  5. A microframework based on Werkzeug. It's extensively documented
  6. and follows best practice patterns.
  7. :copyright: 2010 Pallets
  8. :license: BSD-3-Clause
  9. """
  10. # utilities we import from Werkzeug and Jinja2 that are unused
  11. # in the module but are exported as public interface.
  12. from jinja2 import escape
  13. from jinja2 import Markup
  14. from werkzeug.exceptions import abort
  15. from werkzeug.utils import redirect
  16. from . import json
  17. from ._compat import json_available
  18. from .app import Flask
  19. from .app import Request
  20. from .app import Response
  21. from .blueprints import Blueprint
  22. from .config import Config
  23. from .ctx import after_this_request
  24. from .ctx import copy_current_request_context
  25. from .ctx import has_app_context
  26. from .ctx import has_request_context
  27. from .globals import _app_ctx_stack
  28. from .globals import _request_ctx_stack
  29. from .globals import current_app
  30. from .globals import g
  31. from .globals import request
  32. from .globals import session
  33. from .helpers import flash
  34. from .helpers import get_flashed_messages
  35. from .helpers import get_template_attribute
  36. from .helpers import make_response
  37. from .helpers import safe_join
  38. from .helpers import send_file
  39. from .helpers import send_from_directory
  40. from .helpers import stream_with_context
  41. from .helpers import url_for
  42. from .json import jsonify
  43. from .signals import appcontext_popped
  44. from .signals import appcontext_pushed
  45. from .signals import appcontext_tearing_down
  46. from .signals import before_render_template
  47. from .signals import got_request_exception
  48. from .signals import message_flashed
  49. from .signals import request_finished
  50. from .signals import request_started
  51. from .signals import request_tearing_down
  52. from .signals import signals_available
  53. from .signals import template_rendered
  54. from .templating import render_template
  55. from .templating import render_template_string
  56. __version__ = "1.1.2"