Home / Function/ make_shell_context() — flask Function Reference

make_shell_context() — flask Function Reference

Architecture documentation for the make_shell_context() function in app.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  17ee5a72_b893_3ddb_5a29_fac91324b3ea["make_shell_context()"]
  9f8cc56e_d5c4_e7a8_438a_3124c0dd5de5["Flask"]
  17ee5a72_b893_3ddb_5a29_fac91324b3ea -->|defined in| 9f8cc56e_d5c4_e7a8_438a_3124c0dd5de5
  d647a91f_21b8_ae35_eaba_e5cd7a4b6e5b["shell_command()"]
  d647a91f_21b8_ae35_eaba_e5cd7a4b6e5b -->|calls| 17ee5a72_b893_3ddb_5a29_fac91324b3ea
  style 17ee5a72_b893_3ddb_5a29_fac91324b3ea fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/flask/app.py lines 619–629

    def make_shell_context(self) -> dict[str, t.Any]:
        """Returns the shell context for an interactive shell for this
        application.  This runs all the registered shell context
        processors.

        .. versionadded:: 0.11
        """
        rv = {"app": self, "g": g}
        for processor in self.shell_context_processors:
            rv.update(processor())
        return rv

Subdomains

Defined In

Called By

Frequently Asked Questions

What does make_shell_context() do?
make_shell_context() is a function in the flask codebase, defined in src/flask/app.py.
Where is make_shell_context() defined?
make_shell_context() is defined in src/flask/app.py at line 619.
What calls make_shell_context()?
make_shell_context() is called by 1 function(s): shell_command.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free