imaginAIry/imaginairy/version.py

8 lines
184 B
Python
Raw Normal View History

def get_version():
from importlib.metadata import PackageNotFoundError, version
try:
return version("imaginairy")
except PackageNotFoundError:
return None