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 LangChainCore ApiManagement 3 imports 1 functions

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

"""Script to check imports in Nomic partner integration."""

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
            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

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

Analyze Your Own Codebase

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

Try Supermodel Free