Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

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()