Get version of any tools
Project description
- Python version:
Python 3.8, 3.9, 3.10, 3.11
- Source:
- Issues:
Please fill a report on github
Overview
Versionix is a simple tool that attemps to print on screen the version of a given standalone.
Installation
If you are in a hurry, just type:
pip install versionix --upgrade
This is pure Python so no need for fancy libraries.
Then, just type e.g:
versionix fastqc
This tool uses a registry so it will work only with resgistered tools, which list can be obtained with:
versionix --registered
DESCRIPTION
The first difficulty is that standalone applications have different ways to obtain their version information. Some require the use of a long or short argument (–version or -v), while others do not require any argument at all. In addition, display channels (stdout or stderr) and formats of the version output differs between applications. To handle these various cases, we define a dictionnary of metadata related to the different standalones. These metadata helps in the identification of the command to run, the options to use, if the information is directed to stdout or stderr and the method to parse the output to obtain the version number.
Versionix is designed to be used with all Sequana pipelines and is not intended to be universal. It will only work for tools that are registered. You can add your own standalone version in the versionix/register.py file and provide a Pull Request.
Changelog
Version |
Description |
---|---|
0.2.2 |
add all tools required by sequana pipelines (oct 2023) |
0.2.1 |
More tools added. |
0.2 |
simplification. Add tests. Add more tools |
0.1 |
first draft |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file versionix-0.2.2.tar.gz
.
File metadata
- Download URL: versionix-0.2.2.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0c215b827b17213ab3bc8980c55ccd4b0f5a5bc42e61cda6338cdf6fd61b6b9 |
|
MD5 | f6b0b4bd722448aaf4093f9dd0e4df0e |
|
BLAKE2b-256 | 708eedb979a01555d5de0dee79eb0c01e7355820b622c6a68fc717f41286614a |