Skip to main content

CLI to show end-of-life dates for tools and technologies.

Project description

norwegianblue

PyPI version Supported Python versions PyPI downloads Test codecov GitHub Code style: Black

Python 3.9+ interface to endoflife.date to show end-of-life dates for tools and technologies.

Installation

From PyPI

python -m pip install --upgrade norwegianblue

From source

git clone https://github.com/hugovk/norwegianblue
cd norwegianblue
pip install .

Example command-line use

Run norwegianblue or eol, they do the same thing.

Top-level help:

usage: norwegianblue [-h] [-t TOOL] [-f {html,json,markdown,rst,tsv}] [-c {yes,no}] [-v] [-V]

CLI to show end-of-life dates for tools and technologies.

positional arguments:
  tool                  Tool to check (default: python)

optional arguments:
  -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}, --color {yes,no}
                        color terminal output (default: yes)
  -v, --verbose         Print debug messages to stderr (default: False)
  -V, --version         show program's version number and exit

Show end-of-life dates:

$ norwegianblue
| cycle | latest |  release   |    eol     |                                 link                                 |
| ----- | ------ | ---------- | ---------- | -------------------------------------------------------------------- |
| 3.9   | 3.9.5  | 2020-10-05 | 2025-10-05 | https://www.python.org/downloads/release/python-395/                 |
| 3.8   | 3.8.10 | 2019-10-14 | 2024-10-14 | https://www.python.org/downloads/release/python-3810/                |
| 3.7   | 3.7.10 | 2018-06-27 | 2023-06-27 | https://www.python.org/downloads/release/python-3710/                |
| 3.6   | 3.6.13 | 2016-12-23 | 2021-12-23 | https://www.python.org/downloads/release/python-3613/                |
| 3.5   | 3.5.10 | 2015-09-30 | 2020-09-13 | https://www.python.org/downloads/release/python-3510/                |
| 3.4   | 3.4.10 | 2014-03-16 | 2019-03-18 | https://www.python.org/downloads/release/python-3410/                |
| 3.3   | 3.3.7  | 2012-09-29 | 2017-09-29 | https://www.python.org/downloads/release/python-337/                 |
| 2.7   | 2.7.18 | 2010-07-03 | 2020-01-01 | https://github.com/python/cpython/blob/2.7/Misc/NEWS.d/2.7.18rc1.rst |

The table is Markdown, ready for pasting in GitHub issues and PRs:

cycle latest release eol link
3.9 3.9.5 2020-10-05 2025-10-05 https://www.python.org/downloads/release/python-395/
3.8 3.8.10 2019-10-14 2024-10-14 https://www.python.org/downloads/release/python-3810/
3.7 3.7.10 2018-06-27 2023-06-27 https://www.python.org/downloads/release/python-3710/
3.6 3.6.13 2016-12-23 2021-12-23 https://www.python.org/downloads/release/python-3613/
3.5 3.5.10 2015-09-30 2020-09-13 https://www.python.org/downloads/release/python-3510/
3.4 3.4.10 2014-03-16 2019-03-18 https://www.python.org/downloads/release/python-3410/
3.3 3.3.7 2012-09-29 2017-09-29 https://www.python.org/downloads/release/python-337/
2.7 2.7.18 2010-07-03 2020-01-01 https://github.com/python/cpython/blob/2.7/Misc/NEWS.d/2.7.18rc1.rst

With options:

$ eol ubuntu --format rst
.. table::

    ===========  =========  ============  ============  ============  =====================================================
       cycle      latest      release       support         eol                               link
    ===========  =========  ============  ============  ============  =====================================================
     21.04 LTS    21.04      2021-04-22    2022-01-01    2022-01-01    https://wiki.ubuntu.com/HirsuteHippo/ReleaseNotes/
     20.10 LTS    20.10      2020-10-22    2021-07-07    2021-07-07    https://wiki.ubuntu.com/GroovyGorilla/ReleaseNotes/
     20.04 LTS    20.04.2    2020-04-23    2022-10-01    2025-04-02
     19.10        19.10      2019-10-17    2020-07-06    2020-07-06
     18.04 LTS    18.04.5    2018-04-26    2020-09-30    2023-04-02
     16.04 LTS    16.04.7    2016-04-21    2018-10-01    2021-04-02
     14.04 LTS    14.04.6    2014-04-17    2016-09-30    2019-04-02
    ===========  =========  ============  ============  ============  =====================================================

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(tool="ubuntu"))
print(norwegianblue.norwegianblue(format="json"))

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

norwegianblue-0.1.0.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

norwegianblue-0.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file norwegianblue-0.1.0.tar.gz.

File metadata

  • Download URL: norwegianblue-0.1.0.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for norwegianblue-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e4638c5e05a8d8284882146bcc69cd1bbb7aefedea7dd568a42696c125636c77
MD5 67c09a2d14922b4d0aaa349811b29b23
BLAKE2b-256 6342651954478b72893d2c7839a178258dc694ffc5dd4300fb9c36e74f000fb9

See more details on using hashes here.

File details

Details for the file norwegianblue-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: norwegianblue-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for norwegianblue-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 432addbeb51ceebd0a9b3a519017091757c33a158bf9fbed1074826d30d2d214
MD5 1b106800824298b34b2c129888290b69
BLAKE2b-256 55654eea1634e231303ce90f723b93280b177d69c7d15315a3cb79c33ff3c7d2

See more details on using hashes here.

Supported by

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