"Fossies" - the Fresh Open Source Software Archive

Member "versions-1.5.5/README.md" (27 Oct 2021, 4162 Bytes) of package /linux/misc/versions-1.5.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field. See also the latest Fossies "Diffs" side-by-side code changes report for "README.md": 1.5.4_vs_1.5.5.

Scrutinizer Code Quality Scrutinizer Build Status Travis Build Status Scrutinizer Code Coverage

Description

Versions is an open source (GPL v3) software that checks releases and versions of your favourite programs through RSS or Atom feeds and tells you which one has been released since last check.

It can check projects from :

Projects must be added to a YAML file (named by default ~/.config/versions/versions.yaml). One can use --file=FILENAME option to specify an alternative YAML file. The structure of this YAML file is explained below.

Versions uses and produces text files. Those files are cache files written into ~/.local/versions directory. *.cache are cache files containing the project list and their associated version (the latest). *.feed are information feed cache files containing on each line the latest parsed post of the feed.

YAML file structure

sitename:
  url: "https://the.url/to/theglobalfeed"
  type: list
  projects:
    - list
    - of
    - projects

othersitename:
  url: "https://by.projects.site/{}.atom"
  type: byproject
  projects:
    - list
    - name: of
      regex: '([\d.]+)'
      entry: last checked
    - projects

There is two types of sites :

A real life example file is provided: versions/versions.yaml

Installation

Installation of versions is not mandatory and you can invoke it directly from the command line provided you have already installed its requirements.

Pypi

In pypi the project is named program_versions but is still invoked by the command versions :

$ sudo pip install program_versions
$ versions -v

From source

$ git clone https://github.com/dupgit/versions.git
$ cd versions
$ sudo pip install -r requirements.txt
$ sudo python setup.py install
$ versions -v

Tip : One may want to test versions without messing its installation and may use miniconda to do so.

Usage

./version.py should be enough to bring you the list of updated programs since last run. To verify each day one can use the following command in a persistent terminal (tmux, screen…):

$ watch -n 86400 ./versions.py

Links of interest