← pallets/flask

CODEFOSSIL · flask

Blueprint

class in src/flask/sansio/blueprints.py:119 · Born 2011-05-29 (DERIVED, confidence 1.00)

15years old
92changes
17fixes
32authors
0callers
2012201320142015201620172018201920202021202220232024202520262011-05-29 f7e71b5 Register most stuff only once2011-05-29 5da1fc2 Started work on URL value preprocessors2011-06-05 f5ec995 Added blueprint specific error handling2011-06-07 bfd6776 Started documentation for blueprints2011-06-08 3d6e3e4 Replace 'module' with 'blueprint' in docstrings.2011-06-16 abe1378 Chnaged a bunch of behavior in blueprints for it to be more flexible. Improved backwards compat.2011-06-17 e17e74d Started work on testcases for blueprints2011-06-17 8617505 More docstrings for blueprints.2011-06-27 7e6c70a Add teardown request decorators to blueprints.2011-07-06 bd473c1 Fixed an issue that broke url processors for blueprints. Added testcases2011-08-07 02a1317 Added the ability to trigger functions before the first request to the application2011-08-25 68ec5a3 Allow passing the endpoint to the route decorators on Flask's `application` and `blueprints`.2011-08-25 03a71e0 Deny dot's in blueprint endpoints. Add tests for that too.2011-09-16 f8caa54 Fixed Blueprint.app_url_value_preprocessor.2012-01-16 2a4d3ef Added a template filter decorator to blueprints.2012-01-17 ce4d589 Add non-decorator template filter methods.2012-10-07 f034d8d Add @template_test() decorator for creating custom jinja2 tests, like existing @template_filter() for filters. Fixes #3322013-01-27 3b393f8 Added template_global, fixes #6572013-06-14 dfdcac2 Fixed some embarrassing grammar2013-09-04 b031813 Add a non-decorator version of the error handler register function2013-10-02 5ecca4c Fix a typo on blueprints module name.2014-03-21 2aa26ff Revert "Merge pull request #859 from wvh/register_error_handler"2014-03-21 d4fec14 Revert "Revert "Merge pull request #859 from wvh/register_error_handler""2014-04-11 d4b3d16 Better support for namespace packages.2015-06-06 2446ca6 0.11 => 1.02015-06-13 554c5b9 Fix #14772016-05-23 c5900a1 s/1.0/0.11/ in versionadded/versionchanged markers2016-06-08 501b859 Allow per blueprint json encoder decoder re #17102017-04-24 46f8366 clean up blueprint json support add changelog for #18982017-06-06 235c830 document inherited attributes for Flask and Blueprint closes #480 [ci skip]2017-06-14 0f7b3a4 document `Flask.register_blueprint` arguments closes #18092017-10-09 2f57a0b Blueprint view function name should not contain dots2018-04-27 6663bf1 Fix registering partials as view functions2019-05-06 025589e Reformat with black2019-05-19 2039e2e Remove ending slash from static_url_path2019-05-24 ec1ccd7 Add Blueprint level cli command registration2019-05-25 ed9ab2d strip static url trailing slash at assignment2019-05-31 f25b500 Do not register empty CLI groups from Blueprint2020-04-04 2ae740d f-strings everywhere2020-04-04 171aabc remove unused ref directives2020-08-01 b146a13 extract common Flask/Blueprint API to Scaffold base class2020-08-23 1f1b65a fixed #3738 typo in src/flask/blueprints.py2020-10-07 bdf7083 refer to encoder instead of decoder2020-11-01 373f0dd update requirements (#3823)2021-03-08 fd62210 Utilise defaultdicts2021-03-10 7029674 rewrite Scaffold docs2021-03-10 3dfc12e only extend on first registration2021-04-06 00f5a3e Alter ensure_sync implementation to support extensions2021-04-06 dc3e9c0 update async docs2021-04-14 f92e820 Nested blueprints2021-04-26 7723709 Add initial type hints2021-05-03 7f87f3d Simplify the async handling code2021-05-13 7c52614 blueprint name may not contain a dot2021-05-13 e93704f fix url_prefix argument when nesting blueprints2021-05-17 6fbdeb8 Fix nested blueprint url_prefix2021-05-21 bf98271 Make add_url_rule() signature consistent2021-05-21 10a36cb Improve decorator factory type signatures2021-05-21 99afbb2 Fix blueprint nested url_prefix2021-05-21 141fde1 Bugfix blueprint naming2021-05-21 c2920e2 Bugfix allow blueprints to be registered with a different name2021-05-21 63b3067 changelog for blueprint registered name2021-05-21 9409be6 warn when registering same blueprint with same name2021-05-21 714b0a4 Fix blueprint self registration2021-05-25 a960236 Fix type annotation for `before_request` and `before_app_request` decorators2021-06-01 6a4e7e9 improve typing for `app.errorhandler` decorator2021-06-14 a44c722 Fix registering a blueprint twice with differing names2021-08-06 9a2adfb static_folder can be a pathlib.Path2021-11-12 48f2afb same blueprint cannot be registered with same name2022-03-15 8886328 relax errorhandler function arg type2022-05-23 eb36135 always warn on blueprint setupmethod after registration2022-05-23 a406c29 apply setupmethod consistently2022-05-23 61f62e6 access flask types through namespace alias2022-06-05 81be290 view function is actually type checked2022-06-05 3351a86 add errorhandler type check tests2022-06-06 96c97de deprecate before_first_request2022-07-06 9b44bf2 Improve decorator typing (#4676)2022-07-13 69f9845 add json provider interface2022-08-03 714ccef show deprecation warning on json_encoder/decoder access2022-11-25 d178653 update requirements2022-12-24 09112cf template_folder type allows pathlib2023-01-04 d7b6c1f Fix subdomain inheritance for nested blueprints.2023-01-04 cabda59 Ensure that blueprint subdomains suffix-chain2023-02-10 ab93222 point to app-scoped blueprint methods2023-02-23 6650764 remove previously deprecated code2023-02-23 fc03d0d setup method on registered blueprint is error2023-03-11 b8b4100 require a non-empty name for blueprints2023-04-20 44ffe6c add __future__ annotations2023-08-19 0ec7f71 Split the App and Blueprint into Sansio and IO parts2023-08-19 72c85e8 Provide an extendable merge blueprint funcs method2024-01-16 6000e80 address mypy strict findings2025-08-19 daf1510 use template_filter without parens2025-08-19 edebd37 rewrite docs, clean up typing for template decorators2011-05-29 7a08331 Latest iteration of the blueprint code. Far from being done
Every commit that changed it, 2011-05-29 – 2025-08-19. Raised orange dots are fixes.
  1. Changed rewrite docs, clean up typing for template decorators

    edebd37 · David Lord

  2. Changed use template_filter without parens

    daf1510 · kadai0308

  3. Changed address mypy strict findings

    6000e80 · David Lord

  4. Changed Provide an extendable merge blueprint funcs method

    72c85e8 · pgjones

  5. Changed Split the App and Blueprint into Sansio and IO parts

    0ec7f71 · pgjones

  6. Changed add __future__ annotations

    44ffe6c · David Lord

  7. Changed require a non-empty name for blueprints

    b8b4100 · Evgeny Mozhaev

  8. Changed setup method on registered blueprint is error

    fc03d0d · David Lord

  9. Changed remove previously deprecated code

    6650764 · David Lord

  10. Changed point to app-scoped blueprint methods

    ab93222 · David Lord

  11. Changed Ensure that blueprint subdomains suffix-chain

    cabda59 · pgjones

  12. Changed Fix subdomain inheritance for nested blueprints.

    d7b6c1f · Josh Michael Karamuth fix · INFERRED

  13. Changed template_folder type allows pathlib

    09112cf · Maxim G. Ivanov

  14. Changed update requirements

    d178653 · David Lord

  15. Changed show deprecation warning on json_encoder/decoder access

    714ccef · David Lord

  16. Changed add json provider interface

    69f9845 · David Lord

  17. Changed Improve decorator typing (#4676)

    9b44bf2 · Phil Jones

  18. Changed deprecate before_first_request

    96c97de · David Lord

  19. Changed add errorhandler type check tests

    3351a86 · David Lord

  20. Changed view function is actually type checked

    81be290 · David Lord

  21. Changed access flask types through namespace alias

    61f62e6 · David Lord

  22. Changed apply setupmethod consistently

    a406c29 · David Lord

  23. Changed always warn on blueprint setupmethod after registration

    eb36135 · Chris Hallacy

  24. Changed relax errorhandler function arg type

    8886328 · David Lord

  25. Changed same blueprint cannot be registered with same name

    48f2afb · David Lord

  26. Changed static_folder can be a pathlib.Path

    9a2adfb · Yourun-Proger

  27. Changed Fix registering a blueprint twice with differing names

    a44c722 · pgjones fix · INFERRED

  28. Changed improve typing for `app.errorhandler` decorator

    6a4e7e9 · Pascal Corpet

  29. Changed Fix type annotation for `before_request` and `before_app_request` decorators

    a960236 · Marat Sharafutdinov

  30. Changed Fix blueprint self registration

    714b0a4 · pgjones fix · INFERRED

  31. Changed warn when registering same blueprint with same name

    9409be6 · David Lord

  32. Changed changelog for blueprint registered name

    63b3067 · David Lord

  33. Changed Bugfix allow blueprints to be registered with a different name

    c2920e2 · pgjones fix · INFERRED

  34. Changed Bugfix blueprint naming

    141fde1 · pgjones fix · INFERRED

  35. Changed Fix blueprint nested url_prefix

    99afbb2 · pgjones fix · INFERRED

  36. Changed Improve decorator factory type signatures

    10a36cb · Alex Hedges

  37. Changed Make add_url_rule() signature consistent

    bf98271 · Alex Hedges

  38. Changed Fix nested blueprint url_prefix

    6fbdeb8 · pgjones fix · INFERRED

  39. Changed fix url_prefix argument when nesting blueprints

    e93704f · Grey Li fix · INFERRED

  40. Changed blueprint name may not contain a dot

    7c52614 · David Lord

  41. Changed Simplify the async handling code

    7f87f3d · pgjones

  42. Changed Add initial type hints

    7723709 · pgjones

  43. Changed Nested blueprints

    f92e820 · pgjones

  44. Changed update async docs

    dc3e9c0 · David Lord

  45. Changed Alter ensure_sync implementation to support extensions

    00f5a3e · pgjones

  46. Changed only extend on first registration

    3dfc12e · David Lord

  47. Changed rewrite Scaffold docs

    7029674 · David Lord

  48. Changed Utilise defaultdicts

    fd62210 · pgjones

  49. Changed update requirements (#3823)

    373f0dd · David Lord

  50. Changed refer to encoder instead of decoder

    bdf7083 · Matěj Volf

  51. Changed fixed #3738 typo in src/flask/blueprints.py

    1f1b65a · WolframAlph

  52. Changed extract common Flask/Blueprint API to Scaffold base class

    b146a13 · yk396

  53. Changed remove unused ref directives

    171aabc · David Lord

  54. Changed f-strings everywhere

    2ae740d · David Lord

  55. Changed Do not register empty CLI groups from Blueprint

    f25b500 · Daniel Pope

  56. Changed strip static url trailing slash at assignment

    ed9ab2d · David Lord

  57. Changed Add Blueprint level cli command registration

    ec1ccd7 · Anthony Plunkett

  58. Changed Remove ending slash from static_url_path

    2039e2e · Frankie Liu

  59. Changed Reformat with black

    025589e · David Baumgold

  60. Changed Fix registering partials as view functions

    6663bf1 · ThiefMaster fix · INFERRED

  61. Changed Blueprint view function name should not contain dots

    2f57a0b · Caratpine

  62. Changed document `Flask.register_blueprint` arguments closes #1809

    0f7b3a4 · David Lord

  63. Changed document inherited attributes for Flask and Blueprint closes #480 [ci skip]

    235c830 · David Lord

  64. Changed clean up blueprint json support add changelog for #1898

    46f8366 · David Lord

  65. Changed Allow per blueprint json encoder decoder re #1710

    501b859 · RamiC

  66. Changed s/1.0/0.11/ in versionadded/versionchanged markers

    c5900a1 · ThiefMaster

  67. Changed Fix #1477

    554c5b9 · Markus Unterwaditzer fix · INFERRED

  68. Changed 0.11 => 1.0

    2446ca6 · Markus Unterwaditzer

  69. Changed Better support for namespace packages.

    d4b3d16 · Armin Ronacher

  70. Changed Revert "Revert "Merge pull request #859 from wvh/register_error_handler""

    d4fec14 · Kenneth Reitz fix · INFERRED

  71. Changed Revert "Merge pull request #859 from wvh/register_error_handler"

    2aa26ff · Kenneth Reitz fix · INFERRED

  72. Changed Fix a typo on blueprints module name.

    5ecca4c · Hyunjun Kim

  73. Changed Add a non-decorator version of the error handler register function

    b031813 · Wouter Van Hemel

  74. Changed Fixed some embarrassing grammar

    dfdcac2 · Armin Ronacher fix · INFERRED

  75. Changed Added template_global, fixes #657

    3b393f8 · Armin Ronacher fix · INFERRED

  76. Changed Add @template_test() decorator for creating custom jinja2 tests, like existing @template_filter() for filters. Fixes #332

    f034d8d · Armin Ronacher fix · INFERRED

  77. Changed Add non-decorator template filter methods.

    ce4d589 · Ron DuPlain

  78. Changed Added a template filter decorator to blueprints.

    2a4d3ef · Reisen

  79. Changed Fixed Blueprint.app_url_value_preprocessor.

    f8caa54 · Michał Bartoszkiewicz fix · INFERRED

  80. Changed Deny dot's in blueprint endpoints. Add tests for that too.

    03a71e0 · Pedro Algarvio

  81. Changed Allow passing the endpoint to the route decorators on Flask's `application` and `blueprints`.

    68ec5a3 · Pedro Algarvio

  82. Changed Added the ability to trigger functions before the first request to the application

    02a1317 · Armin Ronacher

  83. Changed Fixed an issue that broke url processors for blueprints. Added testcases

    bd473c1 · Armin Ronacher fix · INFERRED

  84. Changed Add teardown request decorators to blueprints.

    7e6c70a · Ron DuPlain

  85. Changed More docstrings for blueprints.

    8617505 · Armin Ronacher

  86. Changed Started work on testcases for blueprints

    e17e74d · Armin Ronacher

  87. Changed Chnaged a bunch of behavior in blueprints for it to be more flexible. Improved backwards compat.

    abe1378 · Armin Ronacher

  88. Changed Replace 'module' with 'blueprint' in docstrings.

    3d6e3e4 · Ron DuPlain

  89. Changed Started documentation for blueprints

    bfd6776 · Armin Ronacher

  90. Changed Added blueprint specific error handling

    f5ec995 · Armin Ronacher

  91. Changed Started work on URL value preprocessors

    5da1fc2 · Armin Ronacher

  92. Changed Register most stuff only once

    f7e71b5 · Armin Ronacher

  93. Born Latest iteration of the blueprint code. Far from being done

    7a08331 · Armin Ronacher