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. 3 imports, 0 dependents.

File python CoreAbstractions Serialization 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  38620092_cc3f_3181_f3f0_b41ff1ae9dd0["check_imports.py"]
  d76a28c2_c3ab_00a8_5208_77807a49449d["sys"]
  38620092_cc3f_3181_f3f0_b41ff1ae9dd0 --> d76a28c2_c3ab_00a8_5208_77807a49449d
  bfa79181_b1e6_eba2_0d8e_9ddb8d3b949c["traceback"]
  38620092_cc3f_3181_f3f0_b41ff1ae9dd0 --> bfa79181_b1e6_eba2_0d8e_9ddb8d3b949c
  2acfe0b8_5002_f60d_8c72_d2f95e51daeb["importlib.machinery"]
  38620092_cc3f_3181_f3f0_b41ff1ae9dd0 --> 2acfe0b8_5002_f60d_8c72_d2f95e51daeb
  style 38620092_cc3f_3181_f3f0_b41ff1ae9dd0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import sys
import traceback
from importlib.machinery import SourceFileLoader

if __name__ == "__main__":
    files = sys.argv[1:]
    has_failure = False
    for file in files:
        try:
            SourceFileLoader("x", file).load_module()
        except Exception:  # noqa: BLE001
            has_failure = True
            traceback.print_exc()

    sys.exit(1 if has_failure else 0)

Subdomains

Functions

Dependencies

  • importlib.machinery
  • sys
  • traceback

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 CoreAbstractions domain, Serialization 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 3 module(s): importlib.machinery, sys, traceback.
Where is check_imports.py in the architecture?
check_imports.py is located at libs/partners/qdrant/scripts/check_imports.py (domain: CoreAbstractions, subdomain: Serialization, directory: libs/partners/qdrant/scripts).

Analyze Your Own Codebase

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

Try Supermodel Free