Skip to content

Commit 412f6f4

Browse files
committedMar 29, 2024
utility to help admin library versions
1 parent 783be75 commit 412f6f4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎show_version

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
: Returns the version of Python libraries.
3+
: <<DOCUMENTATIONXX
4+
use like this:
5+
> ./show_version numpy
6+
numpy==1.26.4
7+
DOCUMENTATIONXX
8+
9+
python -c "from importlib.metadata import version; print(\"$1\" + '==' + version(\"$1\"))"

0 commit comments

Comments
 (0)
Please sign in to comment.