Python library for extracting version from poetry pyproject.toml file
To install poetry-version
from PyPI run:
$ pip install poetry-version
Put these lines somewhere in the main module:
import poetry_version
__version__ = poetry_version.extract(source_file=__file__)