imaginAIry/imaginairy/version.py

11 lines
232 B
Python
Raw Normal View History

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