Home / File/ tutorial010_py39.py — fastapi Source File

tutorial010_py39.py — fastapi Source File

Architecture documentation for tutorial010_py39.py, a python file in the fastapi codebase. 0 imports, 1 dependents.

File python FastAPI Applications 1 dependents 1 functions 1 classes

Entity Profile

Dependency Diagram

graph LR
  6cfacb3b_8c48_2f4e_4b08_ce243e5897ec["tutorial010_py39.py"]
  946e7769_9306_de18_7f88_3c96c9905fd7["test_tutorial010.py"]
  946e7769_9306_de18_7f88_3c96c9905fd7 --> 6cfacb3b_8c48_2f4e_4b08_ce243e5897ec
  style 6cfacb3b_8c48_2f4e_4b08_ce243e5897ec fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

class MySuperContextManager:
    def __init__(self):
        self.db = DBSession()

    def __enter__(self):
        return self.db

    def __exit__(self, exc_type, exc_value, traceback):
        self.db.close()


async def get_db():
    with MySuperContextManager() as db:
        yield db

Domain

Subdomains

Functions

Frequently Asked Questions

What does tutorial010_py39.py do?
tutorial010_py39.py is a source file in the fastapi codebase, written in python. It belongs to the FastAPI domain, Applications subdomain.
What functions are defined in tutorial010_py39.py?
tutorial010_py39.py defines 1 function(s): get_db.
What files import tutorial010_py39.py?
tutorial010_py39.py is imported by 1 file(s): test_tutorial010.py.
Where is tutorial010_py39.py in the architecture?
tutorial010_py39.py is located at docs_src/dependencies/tutorial010_py39.py (domain: FastAPI, subdomain: Applications, directory: docs_src/dependencies).

Analyze Your Own Codebase

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

Try Supermodel Free