LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph-cliconfigLocalDeps
    Class●Since v0.1

    LocalDeps

    Copy
    LocalDeps()

    Bases

    NamedTuple

    Attributes

    View source on GitHub
    attribute
    pip_reqs: list[tuple[pathlib.Path, str]]
    attribute
    real_pkgs: dict[pathlib.Path, tuple[str, str]]
    attribute
    faux_pkgs: dict[pathlib.Path, tuple[str, str]]
    attribute
    working_dir: str | None
    attribute
    additional_contexts: list[pathlib.Path]

    A container for referencing and managing local Python dependencies.

    A "local dependency" is any entry in the config's dependencies list that starts with "." (dot), denoting a relative path to a local directory containing Python code.

    For each local dependency, the system inspects its directory to determine how it should be installed inside the Docker container.

    Specifically, we detect:

    • Real packages: Directories containing a pyproject.toml or a setup.py. These can be installed with pip as a regular Python package.
    • Faux packages: Directories that do not include a pyproject.toml or setup.py but do contain Python files and possibly an __init__.py. For these, the code dynamically generates a minimal pyproject.toml in the Docker image so that they can still be installed with pip.
    • Requirements files: If a local dependency directory has a requirements.txt, it is tracked so that those dependencies can be installed within the Docker container before installing the local package.