Python library to get the version of other tools
pip install universions
conda install -c conda-forge universions
In python code :
>>> from universions.java import get_java_version
>>> get_java_version()
Version(major=10, minor=0, patch=2, prerelease=None, build=None)
>>> get_java_version() > (1, 8)
True
In the command line :
>>> universions java
11.0
>>> universions node -v
12.6.0
Open an issue if you want more ! If you want to contribute read the contributing guide.