Home / Function/ add_missing() — fastapi Function Reference

add_missing() — fastapi Function Reference

Architecture documentation for the add_missing() function in translate.py from the fastapi codebase.

Function python FastAPI Routing calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  1197b802_6f25_2a74_88df_75858855484e["add_missing()"]
  6dda5e35_b655_8af3_cd89_8c1584a092c4["translate.py"]
  1197b802_6f25_2a74_88df_75858855484e -->|defined in| 6dda5e35_b655_8af3_cd89_8c1584a092c4
  96a30f99_ac75_385b_8ee8_e54a8a6c3ea6["update_and_add()"]
  96a30f99_ac75_385b_8ee8_e54a8a6c3ea6 -->|calls| 1197b802_6f25_2a74_88df_75858855484e
  352a3f05_1774_2335_4f6a_d2183182663e["list_missing()"]
  1197b802_6f25_2a74_88df_75858855484e -->|calls| 352a3f05_1774_2335_4f6a_d2183182663e
  fde1dac0_2ec7_f895_3237_c5b8350a5417["translate_page()"]
  1197b802_6f25_2a74_88df_75858855484e -->|calls| fde1dac0_2ec7_f895_3237_c5b8350a5417
  style 1197b802_6f25_2a74_88df_75858855484e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/translate.py lines 363–372

def add_missing(
    language: Annotated[str, typer.Option(envvar="LANGUAGE")],
    max: Annotated[int, typer.Option(envvar="MAX")] = 10,
) -> None:
    missing_paths = list_missing(language)
    for path in missing_paths[:max]:
        print(f"Adding lang: {language} path: {path}")
        translate_page(language=language, en_path=path)
        print(f"Done adding: {path}")
    print("Done adding all missing paths")

Domain

Subdomains

Called By

Frequently Asked Questions

What does add_missing() do?
add_missing() is a function in the fastapi codebase, defined in scripts/translate.py.
Where is add_missing() defined?
add_missing() is defined in scripts/translate.py at line 363.
What does add_missing() call?
add_missing() calls 2 function(s): list_missing, translate_page.
What calls add_missing()?
add_missing() is called by 1 function(s): update_and_add.

Analyze Your Own Codebase

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

Try Supermodel Free