Programmatically determine version, a la `perfplot.__version__`
Closed this issue · 2 comments
christian-cahig commented
Hi, this is a nice work. Just out of curiosity, is there a way to determine the version knowing only that I have imported perfplot? In most packages, we can do this with package.__version__
; this is not available in perfplot.
nschloe commented
The modern way of doing this is via importlib
, e.g.,
from importlib import metadata
print(metadata.version("perfplot"))
0.9.13
christian-cahig commented
@nschloe thank you very much!