1"""Module for accessing the version"""
2
3from pkg_resources import resource_stream
4
5
6def _get_version() -> str:
7 """Returns a version string"""
8 with resource_stream("tubthumper", "VERSION") as version_file:
9 return version_file.read().decode("utf-8").strip()
10
11
12version = _get_version()