imaginAIry/imaginairy/version.py
Bryce 316114e660 docs: add docstrings
Wrote an openai script and custom prompt to generate them.
2023-12-15 14:32:01 -08:00

11 lines
232 B
Python

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