pip install versiongit==2.1

Tool for adding version from git to a python project without adding dependencies

Source
Among top 50% packages on PyPI.
Over 2.2K downloads in the last 90 days.

Version usage of versiongit

Proportion of downloaded versions in the last 3 months (only versions over 1%).

2.1

23.06%

2.0

21.27%

1.0

10.72%

0.6

9.29%

0.5

8.00%

0.2

7.82%

0.4

7.64%

0.3

7.60%

0.2b3

4.60%