Skip to content

fabiencelier/universions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2bd652d · Nov 24, 2019

History

58 Commits
Nov 20, 2019
Nov 24, 2019
Nov 10, 2019
Nov 24, 2019
Nov 24, 2019
Nov 18, 2019
Nov 6, 2019
Oct 30, 2019
Nov 10, 2019
Oct 30, 2019
Nov 2, 2019
Nov 6, 2019
Nov 6, 2019
Nov 24, 2019
Nov 1, 2019
Oct 28, 2019
Oct 28, 2019
Nov 9, 2019
Oct 28, 2019

Repository files navigation

universions

Python library to get the version of other tools

PyPI pyversions
PyPI version
Anaconda-Server Badge
Code style: black

Read the documentation

Install

with pip

pip install universions

with conda

conda install -c conda-forge universions

Examples

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

Languages and other tools supported

Open an issue if you want more ! If you want to contribute read the contributing guide.