get_version_py_version() — langchain Function Reference
Architecture documentation for the get_version_py_version() function in check_version.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 87ca2de9_10e6_aef7_c39a_8fd298a2a3a1["get_version_py_version()"] 90a69730_b824_7e80_91bd_250a432f202f["check_version.py"] 87ca2de9_10e6_aef7_c39a_8fd298a2a3a1 -->|defined in| 90a69730_b824_7e80_91bd_250a432f202f 2411311a_00a0_170d_20d5_a8e3b6af05eb["main()"] 2411311a_00a0_170d_20d5_a8e3b6af05eb -->|calls| 87ca2de9_10e6_aef7_c39a_8fd298a2a3a1 style 87ca2de9_10e6_aef7_c39a_8fd298a2a3a1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/scripts/check_version.py lines 20–24
def get_version_py_version(version_path: Path) -> str | None:
"""Extract `VERSION` from `version.py`."""
content = version_path.read_text()
match = re.search(r'^VERSION\s*=\s*"([^"]+)"', content, re.MULTILINE)
return match.group(1) if match else None
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does get_version_py_version() do?
get_version_py_version() is a function in the langchain codebase, defined in libs/core/scripts/check_version.py.
Where is get_version_py_version() defined?
get_version_py_version() is defined in libs/core/scripts/check_version.py at line 20.
What calls get_version_py_version()?
get_version_py_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