Skip to main content

Get version of any tools

Project description

https://badge.fury.io/py/versionix.svg https://github.com/sequana/versionix/actions/workflows/main.yml/badge.svg https://coveralls.io/repos/github/sequana/versionix/badge.svg?branch=master Documentation Status https://zenodo.org/badge/282275608.svg
Python version:

Python 3.8, 3.9, 3.10

Source:

See http://github.com/sequana/versionix.

Issues:

Please fill a report on github

Platform:

This is currently only available for Linux distribution with bash shell (contributions are welcome to port the tool on MacOSX and other platforms)

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 of fancy environment.

Then, just type e.g:

versionix  fastqc

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/versioniux.py file and provide a Pull Request.

Changelog

Version

Description

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

versionix-0.2.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

versionix-0.2.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file versionix-0.2.0.tar.gz.

File metadata

  • Download URL: versionix-0.2.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.8.9 Linux/5.11.15-100.fc32.x86_64

File hashes

Hashes for versionix-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3adc399700e1dceadd411b587de0cc0f6018d66c072e6946b98aaad5664cd78d
MD5 ef252b2651cd2eb408efe36ea5cf523c
BLAKE2b-256 006f96ef95903d498c5b37c49e6cb5eefa6db79f2a20df9d5cd1f8fb450e0b7e

See more details on using hashes here.

File details

Details for the file versionix-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: versionix-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.8.9 Linux/5.11.15-100.fc32.x86_64

File hashes

Hashes for versionix-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e38532196d305aed9d08b107a8807bfc5ba2757f2fb2cefb33b8cfee03410f6
MD5 59a1a926b0c07659d3a4797ac548b5c3
BLAKE2b-256 d298bdd64aa39aae8a88e147edc98043c510c45601798c13995157b83cf09803

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page