Home / File/ check_imports.py — langchain Source File

check_imports.py — langchain Source File

Architecture documentation for check_imports.py, a python file in the langchain codebase. 4 imports, 0 dependents.

File python LangChainCore ApiManagement 4 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  ca7dd73f_4cef_1635_1476_4e38fa6dd519["check_imports.py"]
  02625e10_fb78_7ecd_1ee2_105ee470faf5["sys"]
  ca7dd73f_4cef_1635_1476_4e38fa6dd519 --> 02625e10_fb78_7ecd_1ee2_105ee470faf5
  442f7132_b1f7_9013_9836_ccf94893efcd["traceback"]
  ca7dd73f_4cef_1635_1476_4e38fa6dd519 --> 442f7132_b1f7_9013_9836_ccf94893efcd
  02f66451_d2a9_e7c3_9765_c3a7594721ad["uuid"]
  ca7dd73f_4cef_1635_1476_4e38fa6dd519 --> 02f66451_d2a9_e7c3_9765_c3a7594721ad
  e179ee96_53c6_c731_4490_6ac8a2fb2137["importlib.machinery"]
  ca7dd73f_4cef_1635_1476_4e38fa6dd519 --> e179ee96_53c6_c731_4490_6ac8a2fb2137
  style ca7dd73f_4cef_1635_1476_4e38fa6dd519 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import sys
import traceback
import uuid
from importlib.machinery import SourceFileLoader

if __name__ == "__main__":
    files = sys.argv[1:]
    has_failure = False
    for file in files:
        try:
            module_name = f"test_module_{uuid.uuid4().hex[:20]}"
            SourceFileLoader(module_name, file).load_module()
        except Exception:  # noqa: BLE001
            has_failure = True
            print(file)  # noqa: T201
            traceback.print_exc()
            print()  # noqa: T201

    sys.exit(1 if has_failure else 0)

Domain

Subdomains

Functions

Dependencies

  • importlib.machinery
  • sys
  • traceback
  • uuid

Frequently Asked Questions

What does check_imports.py do?
check_imports.py is a source file in the langchain codebase, written in python. It belongs to the LangChainCore domain, ApiManagement subdomain.
What functions are defined in check_imports.py?
check_imports.py defines 1 function(s): files.
What does check_imports.py depend on?
check_imports.py imports 4 module(s): importlib.machinery, sys, traceback, uuid.
Where is check_imports.py in the architecture?
check_imports.py is located at libs/text-splitters/scripts/check_imports.py (domain: LangChainCore, subdomain: ApiManagement, directory: libs/text-splitters/scripts).

Analyze Your Own Codebase

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

Try Supermodel Free