mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +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__)
|