Home / Function/ get_pyproject_version() — langchain Function Reference

get_pyproject_version() — langchain Function Reference

Architecture documentation for the get_pyproject_version() function in check_version.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  3bf46656_01e8_29bf_28c2_0a2b6164bcc8["get_pyproject_version()"]
  38914e20_32e7_35e1_71af_1a3b2e7d5416["check_version.py"]
  3bf46656_01e8_29bf_28c2_0a2b6164bcc8 -->|defined in| 38914e20_32e7_35e1_71af_1a3b2e7d5416
  06661442_038e_b46d_78bf_48e3415d8d56["main()"]
  06661442_038e_b46d_78bf_48e3415d8d56 -->|calls| 3bf46656_01e8_29bf_28c2_0a2b6164bcc8
  style 3bf46656_01e8_29bf_28c2_0a2b6164bcc8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain_v1/scripts/check_version.py lines 13–17

def get_pyproject_version(pyproject_path: Path) -> str | None:
    """Extract version from pyproject.toml."""
    content = pyproject_path.read_text()
    match = re.search(r'^version\s*=\s*"([^"]+)"', content, re.MULTILINE)
    return match.group(1) if match else None

Domain

Subdomains

Called By

Frequently Asked Questions

What does get_pyproject_version() do?
get_pyproject_version() is a function in the langchain codebase, defined in libs/langchain_v1/scripts/check_version.py.
Where is get_pyproject_version() defined?
get_pyproject_version() is defined in libs/langchain_v1/scripts/check_version.py at line 13.
What calls get_pyproject_version()?
get_pyproject_version() is called by 1 function(s): main.

Analyze Your Own Codebase

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

Try Supermodel Free