from_mapping() — flask Function Reference
Architecture documentation for the from_mapping() function in config.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 78c05fd2_59f8_47ae_0cf0_811efaed6c49["from_mapping()"] 1e067a59_9e9f_8edb_0434_65b5c5690e36["Config"] 78c05fd2_59f8_47ae_0cf0_811efaed6c49 -->|defined in| 1e067a59_9e9f_8edb_0434_65b5c5690e36 55ea84cc_e473_fddf_9541_660cc445cb55["from_file()"] 55ea84cc_e473_fddf_9541_660cc445cb55 -->|calls| 78c05fd2_59f8_47ae_0cf0_811efaed6c49 style 78c05fd2_59f8_47ae_0cf0_811efaed6c49 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/flask/config.py lines 304–321
def from_mapping(
self, mapping: t.Mapping[str, t.Any] | None = None, **kwargs: t.Any
) -> bool:
"""Updates the config like :meth:`update` ignoring items with
non-upper keys.
:return: Always returns ``True``.
.. versionadded:: 0.11
"""
mappings: dict[str, t.Any] = {}
if mapping is not None:
mappings.update(mapping)
mappings.update(kwargs)
for key, value in mappings.items():
if key.isupper():
self[key] = value
return True
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does from_mapping() do?
from_mapping() is a function in the flask codebase, defined in src/flask/config.py.
Where is from_mapping() defined?
from_mapping() is defined in src/flask/config.py at line 304.
What calls from_mapping()?
from_mapping() is called by 1 function(s): from_file.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free