← pallets/flask

CODEFOSSIL · flask

Config

class in src/flask/config.py:50 · Born 2010-05-18 (DERIVED, confidence 0.90)

16years old
50changes
4fixes
25authors
0callers

Copied here from flask.py; its history is followed back to where it was born.

20112012201320142015201620172018201920202021202220232024202520262010-07-29 778e44e Improved error message for configuration files2010-10-19 405c299 Updated from_pyfile so its dynamic module creation uses the imp module instead of type.2011-03-14 5cc40f4 silent option added to 'from_pyfile' to mirror 'from_envvar'.2011-03-14 34a4947 Documented some changes in config handling.2011-03-15 1a7f579 Improved botched docstring wording for silent failure.2011-03-15 6758179 Improved botched docstring wording for silent failure.2011-05-19 ea77d5e Touch up docs according to user feedback.2012-03-01 76773e1 Fixed silent keyword arg to config.from_envvar.2013-05-18 6caaa8a automated change using python-modernize: use 'as' in except2013-05-18 b52b7b1 automated change using python-modernize: replace execfile2013-05-21 e1d356f ported some more stuff to py 3.32013-05-22 43b6d0a Ensure that config file is closed immediately2013-08-07 b290bf4 Add ability to config from a JSON file2014-01-23 90a50f8 Add `get_namespace` method on `Config` object for convenient access of namespaced config options.2014-02-12 9741129 Add Config.from_json to changelog2014-03-13 ba80e1e Fix Python 3 compat issue in Config.get_namespace2014-03-13 06857c9 Add Config.get_namespace to CHANGES2014-07-27 aa40b17 Add Config.from_mapping2014-07-27 486c108 Base from_json on from_mapping2014-10-24 56a7e83 Update config.py2014-10-24 bbd9c2f Update config.py2014-11-05 8284217 docs: ``True``, ``False`` and ``None``2015-05-02 2de525c importlib deprecated in 3.5.2016-02-03 6d0bbd6 Fix typo2016-05-23 c5900a1 s/1.0/0.11/ in versionadded/versionchanged markers2016-06-02 d88c08e improved documentation for config.from_object (#1870)2016-12-26 789715a Fix config.from_pyfile on Python 3 (#2123)2018-01-05 06f96df silence ENOTDIR when loading config file2019-01-06 830c77c document that Config.from_object uses object as-is2019-05-06 025589e Reformat with black2019-10-18 829aa65 Support loading configuration from text files2019-10-18 aac0f58 clean up config.from_file docs2019-11-13 1feb69d Update `versionadded` for `Config.from_file`2020-03-18 e047dd6 Update deprecated for config.from_json2020-04-04 1263d3b remove deprecated code2020-04-04 662c245 remove _compat module2020-04-04 524fd0b apply pyupgrade2020-04-04 2ae740d f-strings everywhere2021-04-26 7723709 Add initial type hints2021-05-20 10425fb re-add deprecated Config.from_json method2021-08-06 e18ed45 document return value for config loading methods2021-11-12 2bd7aed remove deprecated config.from_json2022-03-25 08a283a Allow loading of environment variables into the config2022-03-25 4eb5e94 more from_prefixed_env features2022-08-21 746455d Fix misrendered docstring2023-02-23 b10b6d4 add text parameter to config.from_file2023-04-20 44ffe6c add __future__ annotations2023-05-14 2abb751 Allow for PathLike types for config file variables2024-01-16 6000e80 address mypy strict findings2024-10-31 1d610e4 drop support for Python 3.82010-07-02 d0dc89e in with the new. i have the bits in places where i think they should be, now i just need to work on the import scheme layout2010-05-18 c4cac0a Improved configuration support.
Every commit that changed it, 2010-05-18 – 2024-10-31. Raised orange dots are fixes.
  1. Changed drop support for Python 3.8

    1d610e4 · David Lord

  2. Changed address mypy strict findings

    6000e80 · David Lord

  3. Changed Allow for PathLike types for config file variables

    2abb751 · pgjones

  4. Changed add __future__ annotations

    44ffe6c · David Lord

  5. Changed add text parameter to config.from_file

    b10b6d4 · AntoineMath

  6. Changed Fix misrendered docstring

    746455d · Thomas Rhines fix · INFERRED

  7. Changed more from_prefixed_env features

    4eb5e94 · David Lord

  8. Changed Allow loading of environment variables into the config

    08a283a · pgjones

  9. Changed remove deprecated config.from_json

    2bd7aed · David Lord

  10. Changed document return value for config loading methods

    e18ed45 · Karuna Tata

  11. Changed re-add deprecated Config.from_json method

    10425fb · David Lord

  12. Changed Add initial type hints

    7723709 · pgjones

  13. Changed f-strings everywhere

    2ae740d · David Lord

  14. Changed apply pyupgrade

    524fd0b · David Lord

  15. Changed remove _compat module

    662c245 · David Lord

  16. Changed remove deprecated code

    1263d3b · David Lord

  17. Changed Update deprecated for config.from_json

    e047dd6 · Shanavas M

  18. Changed Update `versionadded` for `Config.from_file`

    1feb69d · Jochen Kupperschmidt

  19. Changed clean up config.from_file docs

    aac0f58 · David Lord

  20. Changed Support loading configuration from text files

    829aa65 · pgjones

  21. Changed Reformat with black

    025589e · David Baumgold

  22. Changed document that Config.from_object uses object as-is

    830c77c · Douglas Thor

  23. Changed silence ENOTDIR when loading config file

    06f96df · David Lord

  24. Changed Fix config.from_pyfile on Python 3 (#2123)

    789715a · Markus Unterwaditzer fix · INFERRED

  25. Changed improved documentation for config.from_object (#1870)

    d88c08e · Jason Brazeal

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

    c5900a1 · ThiefMaster

  27. Changed Fix typo

    6d0bbd6 · lord63

  28. Changed importlib deprecated in 3.5.

    2de525c · Matthias Bussonnier

  29. Changed docs: ``True``, ``False`` and ``None``

    8284217 · defuz

  30. Changed Update config.py

    bbd9c2f · Bryan Stitt

  31. Changed Update config.py

    56a7e83 · Bryan Stitt

  32. Changed Base from_json on from_mapping

    486c108 · Daniel Neuhäuser

  33. Changed Add Config.from_mapping

    aa40b17 · Daniel Neuhäuser

  34. Changed Add Config.get_namespace to CHANGES

    06857c9 · Daniel Neuhäuser

  35. Changed Fix Python 3 compat issue in Config.get_namespace

    ba80e1e · Daniel Neuhäuser fix · INFERRED

  36. Changed Add Config.from_json to changelog

    9741129 · Daniel Neuhäuser

  37. Changed Add `get_namespace` method on `Config` object for convenient access of namespaced config options.

    90a50f8 · Matt Wright

  38. Changed Add ability to config from a JSON file

    b290bf4 · Matt Wright

  39. Changed Ensure that config file is closed immediately

    43b6d0a · Daniel Neuhäuser

  40. Changed ported some more stuff to py 3.3

    e1d356f · Thomas Waldmann

  41. Changed automated change using python-modernize: replace execfile

    b52b7b1 · Thomas Waldmann

  42. Changed automated change using python-modernize: use 'as' in except

    6caaa8a · Thomas Waldmann

  43. Changed Fixed silent keyword arg to config.from_envvar.

    76773e1 · Dave Shawley fix · INFERRED

  44. Changed Touch up docs according to user feedback.

    ea77d5e · Ron DuPlain

  45. Changed Improved botched docstring wording for silent failure.

    6758179 · Aaron Kavlie

  46. Changed Improved botched docstring wording for silent failure.

    1a7f579 · Aaron Kavlie

  47. Changed Documented some changes in config handling.

    34a4947 · Armin Ronacher

  48. Changed silent option added to 'from_pyfile' to mirror 'from_envvar'.

    5cc40f4 · Aaron Kavlie

  49. Changed Updated from_pyfile so its dynamic module creation uses the imp module instead of type.

    405c299 · Jeff Weber

  50. Changed Improved error message for configuration files

    778e44e · Armin Ronacher

  51. Moved here in with the new. i have the bits in places where i think they should be, now i just need to work on the import scheme layout

    d0dc89e · Justin Quick

  52. Born Improved configuration support.

    c4cac0a · Armin Ronacher