Home / Function/ langs_json() — fastapi Function Reference

langs_json() — fastapi Function Reference

Architecture documentation for the langs_json() function in docs.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  ae9d9be8_b16c_b80f_bebb_9664305ded21["langs_json()"]
  089911a1_02c3_0f6b_d62d_71c980ade67e["docs.py"]
  ae9d9be8_b16c_b80f_bebb_9664305ded21 -->|defined in| 089911a1_02c3_0f6b_d62d_71c980ade67e
  7057f227_6b9c_6d7e_0958_8e852a5a06e4["get_lang_paths()"]
  ae9d9be8_b16c_b80f_bebb_9664305ded21 -->|calls| 7057f227_6b9c_6d7e_0958_8e852a5a06e4
  style ae9d9be8_b16c_b80f_bebb_9664305ded21 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/docs.py lines 404–409

def langs_json():
    langs = []
    for lang_path in get_lang_paths():
        if lang_path.is_dir() and lang_path.name in SUPPORTED_LANGS:
            langs.append(lang_path.name)
    print(json.dumps(langs))

Domain

Subdomains

Defined In

Frequently Asked Questions

What does langs_json() do?
langs_json() is a function in the fastapi codebase, defined in scripts/docs.py.
Where is langs_json() defined?
langs_json() is defined in scripts/docs.py at line 404.
What does langs_json() call?
langs_json() calls 1 function(s): get_lang_paths.

Analyze Your Own Codebase

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

Try Supermodel Free