mirror of
https://github.com/hwchase17/langchain
synced 2024-11-04 06:00:26 +00:00
c9bce5bbfb
Add version to langchain experimental
9 lines
271 B
Python
9 lines
271 B
Python
from importlib import metadata
|
|
|
|
try:
|
|
__version__ = metadata.version(__package__)
|
|
except metadata.PackageNotFoundError:
|
|
# Case where package metadata is not available.
|
|
__version__ = ""
|
|
del metadata # optional, avoids polluting the results of dir(__package__)
|