CLI to show end-of-life dates for a number of products.
Project description
norwegianblue
Python interface to endoflife.date to show end-of-life dates for a number of products.
Installation
From PyPI
python3 -m pip install --upgrade norwegianblue
From source
git clone https://github.com/hugovk/norwegianblue
cd norwegianblue
python3 -m pip install .
Example command-line use
Run norwegianblue
or eol
, they do the same thing.
Top-level help:
$ eol --help
usage: eol [-h] [-f {html,json,markdown,rst,tsv}] [-c {yes,no,auto}]
[--clear-cache] [-v] [-V]
[product ...]
CLI to show end-of-life dates for a number of products, from https://endoflife.date
For example:
* `eol python` to see Python EOLs
* `eol ubuntu` to see Ubuntu EOLs
* `eol centos fedora` to see CentOS and Fedora EOLs
* `eol all` to list all available products
Something missing? Please contribute! https://endoflife.date/contribute
positional arguments:
product Product to check, or 'all' to list all available
(default: ['all'])
options:
-h, --help show this help message and exit
-f {html,json,markdown,rst,tsv}, --format {html,json,markdown,rst,tsv}
The format of output (default: markdown)
-c {yes,no,auto}, --color {yes,no,auto}
color terminal output (default: auto)
--clear-cache Clear cache before running (default: False)
-v, --verbose Print debug messages to stderr (default: False)
-V, --version show program's version number and exit
List all available products with end-of-life dates:
$ # eol all
$ # or:
$ eol
almalinux
alpine
amazon-eks
amazon-linux
android
...
Show end-of-life dates:
$ norwegianblue python
| cycle | latest | release | eol |
|:------|:-------|:----------:|:----------:|
| 3.10 | 3.10.4 | 2021-10-04 | 2026-10-04 |
| 3.9 | 3.9.12 | 2020-10-05 | 2025-10-05 |
| 3.8 | 3.8.13 | 2019-10-14 | 2024-10-14 |
| 3.7 | 3.7.13 | 2018-06-27 | 2023-06-27 |
| 3.6 | 3.6.15 | 2016-12-23 | 2021-12-23 |
| 3.5 | 3.5.10 | 2015-09-13 | 2020-09-13 |
| 3.4 | 3.4.10 | 2014-03-16 | 2019-03-18 |
| 3.3 | 3.3.7 | 2012-09-29 | 2017-09-29 |
| 2.7 | 2.7.18 | 2010-07-03 | 2020-01-01 |
The table is Markdown, ready for pasting in GitHub issues and PRs:
cycle | latest | release | eol |
---|---|---|---|
3.10 | 3.10.4 | 2021-10-04 | 2026-10-04 |
3.9 | 3.9.12 | 2020-10-05 | 2025-10-05 |
3.8 | 3.8.13 | 2019-10-14 | 2024-10-14 |
3.7 | 3.7.13 | 2018-06-27 | 2023-06-27 |
3.6 | 3.6.15 | 2016-12-23 | 2021-12-23 |
3.5 | 3.5.10 | 2015-09-13 | 2020-09-13 |
3.4 | 3.4.10 | 2014-03-16 | 2019-03-18 |
3.3 | 3.3.7 | 2012-09-29 | 2017-09-29 |
2.7 | 2.7.18 | 2010-07-03 | 2020-01-01 |
With options:
$ eol nodejs --format rst
.. table::
======== ========== ============ ============ ============
cycle latest release support eol
======== ========== ============ ============ ============
17 17.8.0 2021-10-19 2022-04-01 2022-06-01
16 LTS 16.14.2 2021-04-20 2022-10-18 2024-04-30
15 15.14.0 2020-10-20 2021-04-01 2021-06-01
14 LTS 14.19.1 2020-04-21 2021-10-19 2023-04-30
12 LTS 12.22.11 2019-04-23 2020-10-20 2022-04-30
10 LTS 10.24.1 2018-04-24 2020-05-19 2021-04-30
======== ========== ============ ============ ============
Example programmatic use
Return values are from the JSON responses documented in the API: https://endoflife.date/docs/api/
import norwegianblue
# Call the API
print(norwegianblue.norwegianblue())
print(norwegianblue.norwegianblue(product="ubuntu"))
print(norwegianblue.norwegianblue(format="json"))
Why "Norwegian Blue"?
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
norwegianblue-0.8.0.tar.gz
(34.2 kB
view hashes)
Built Distribution
Close
Hashes for norwegianblue-0.8.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0fe2bb407e3fceed35e9e18a28e9646d655446308ab37d98ef4d94334edf275 |
|
MD5 | 43e9e39f5b9f9536441b3605cff861ff |
|
BLAKE2b-256 | 7628043cc608b8d2e08a23c3d850dc62e7f6079eed9a0e85cd343b51b90b5e05 |