Home / Function/ get_all_paths() — fastapi Function Reference

get_all_paths() — fastapi Function Reference

Architecture documentation for the get_all_paths() function in translation_fixer.py from the fastapi codebase.

Function python FastAPI Routing calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  6904af51_7d5c_0095_f5b2_cf3496b75b03["get_all_paths()"]
  99e3c039_dae8_2ebf_8149_637bcc119c08["translation_fixer.py"]
  6904af51_7d5c_0095_f5b2_cf3496b75b03 -->|defined in| 99e3c039_dae8_2ebf_8149_637bcc119c08
  88c99a39_762e_5baa_a001_836a4fd4f946["fix_all()"]
  88c99a39_762e_5baa_a001_836a4fd4f946 -->|calls| 6904af51_7d5c_0095_f5b2_cf3496b75b03
  d531465d_fafc_0ab1_2c85_e40750490b3b["iter_all_lang_paths()"]
  6904af51_7d5c_0095_f5b2_cf3496b75b03 -->|calls| d531465d_fafc_0ab1_2c85_e40750490b3b
  style 6904af51_7d5c_0095_f5b2_cf3496b75b03 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/translation_fixer.py lines 55–62

def get_all_paths(lang: str):
    res: list[str] = []
    lang_docs_root = Path("docs") / lang / "docs"
    for path in iter_all_lang_paths(lang_docs_root):
        relpath = path.relative_to(lang_docs_root)
        if not str(relpath).startswith(non_translated_sections):
            res.append(str(relpath))
    return res

Domain

Subdomains

Called By

Frequently Asked Questions

What does get_all_paths() do?
get_all_paths() is a function in the fastapi codebase, defined in scripts/translation_fixer.py.
Where is get_all_paths() defined?
get_all_paths() is defined in scripts/translation_fixer.py at line 55.
What does get_all_paths() call?
get_all_paths() calls 1 function(s): iter_all_lang_paths.
What calls get_all_paths()?
get_all_paths() is called by 1 function(s): fix_all.

Analyze Your Own Codebase

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

Try Supermodel Free