Metadata-Version: 2.5
Name: norwegianblue
Version: 0.27.0
Summary: CLI to show end-of-life dates for a number of products
Project-URL: Issue tracker, https://github.com/hugovk/norwegianblue/issues
Project-URL: Changelog, https://github.com/hugovk/norwegianblue/releases
Project-URL: Homepage, https://github.com/hugovk/norwegianblue
Project-URL: Source, https://github.com/hugovk/norwegianblue
Author: Hugo van Kemenade
License-Expression: MIT
License-File: LICENSE.txt
Keywords: cli,end-of-life,endoflife,eol
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Programming Language :: Python :: 3.16
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.11
Requires-Dist: argcomplete>=3.4; platform_system != 'Windows'
Requires-Dist: platformdirs
Requires-Dist: prettytable>=3.18
Requires-Dist: pyyaml
Requires-Dist: termcolor>=3.2
Requires-Dist: urllib3>=2
Requires-Dist: yaspin
Provides-Extra: tests
Requires-Dist: freezegun; extra == 'tests'
Requires-Dist: pytest-cov; extra == 'tests'
Requires-Dist: pytest>=9; extra == 'tests'
Description-Content-Type: text/markdown

# norwegianblue

[![PyPI version](https://img.shields.io/pypi/v/norwegianblue.svg?logo=pypi&logoColor=FFE873)](https://pypi.org/project/norwegianblue/)
[![Supported Python versions](https://img.shields.io/pypi/pyversions/norwegianblue.svg?logo=python&logoColor=FFE873)](https://pypi.org/project/norwegianblue/)
[![PyPI downloads](https://img.shields.io/pypi/dm/norwegianblue.svg)](https://pypistats.org/packages/norwegianblue)
[![GitHub Actions status](https://github.com/hugovk/norwegianblue/actions/workflows/test.yml/badge.svg)](https://github.com/hugovk/norwegianblue/actions)
[![Codecov](https://codecov.io/gh/hugovk/norwegianblue/branch/main/graph/badge.svg)](https://codecov.io/gh/hugovk/norwegianblue)
[![Licence](https://img.shields.io/github/license/hugovk/norwegianblue.svg)](LICENSE.txt)
[![Code style: Black](https://img.shields.io/badge/code%20style-Black-000000.svg)](https://github.com/psf/black)

<p align="center"><img src="https://raw.githubusercontent.com/hugovk/norwegianblue/main/img/eol-python.png" width="606" height="311"></p>

Python interface to [endoflife.date](https://endoflife.date/docs/api/) to show
end-of-life dates for a number of products.

## Installation

### From PyPI

```bash
python3 -m pip install --upgrade norwegianblue
```

### With [pipx][pipx]

```bash
pipx install norwegianblue
```

[pipx]: https://github.com/pypa/pipx

### From [conda-forge][conda-forge]

#### With [Pixi][pixi]

```bash
pixi add norwegianblue
```

#### With [conda][conda]

```bash
conda install --channel conda-forge norwegianblue
```

[conda-forge]: https://github.com/conda-forge/norwegianblue-feedstock
[pixi]: https://pixi.sh/
[conda]: https://docs.conda.io/projects/conda/

### With [`pixi global`][pixi-global]

```bash
pixi global install norwegianblue
```

[pixi-global]: https://pixi.sh/latest/global_tools/introduction/

### From source

```bash
git clone https://github.com/hugovk/norwegianblue
cd norwegianblue
python3 -m pip install .
```

To install tab completion on supported Linux and macOS shells, see
https://kislyuk.github.io/argcomplete/

## Example command-line use

Run `norwegianblue` or `eol`, they do the same thing.

Top-level help:

<!-- [[[cog
from scripts.run_command import run
run("eol --help")
]]] -->

```console
$ eol --help
usage: eol [-h] [-c {yes,no,auto}] [--clear-cache] [--show-title {yes,no,auto}] [-v]
           [-V] [-w] [--pretty | --md | --rst | --json | --csv | --tsv | --html |
           --yaml]
           [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` or `eol` 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
  -c, --color {yes,no,auto}
                        colour the output (default: auto)
  --clear-cache         clear cache before running
  --show-title {yes,no,auto}
                        show or hide product title, 'auto' to show title only for
                        multiple products (default: auto)
  -v, --verbose         print extra messages to stderr
  -V, --version         show program's version number and exit
  -w, --web             open product page in web browser

formatters:
  --pretty              output in pretty (default)
  --md                  output in Markdown
  --rst                 output in reStructuredText
  --json                output in JSON
  --csv                 output in CSV
  --tsv                 output in TSV
  --html                output in HTML
  --yaml                output in YAML
```

<!-- [[[end]]] -->

List all available products with end-of-life dates:

```console
$ # eol all
$ # or:
```

<!-- [[[cog
run("eol", line_limit=5)
]]] -->

```console
$ eol
adonisjs
akeneo-pim
alibaba-ack
alibaba-dragonwell
almalinux
...
```

<!-- [[[end]]] -->

Show end-of-life dates:

<!-- [[[cog
run("norwegianblue python")
]]] -->

```console
$ norwegianblue python
┌───────┬────────────┬─────────┬────────────────┬────────────┬────────────┬─────────┐
│ cycle │  release   │ latest  │ latest release │  support   │    eol     │   pep   │
├───────┼────────────┼─────────┼────────────────┼────────────┼────────────┼─────────┤
│ 3.15  │ 2026-10-09 │ 3.15.2  │   2026-10-25   │ 2028-10-09 │ 2031-10-31 │ PEP 790 │
│ 3.14  │ 2025-10-07 │ 3.14.10 │   2026-10-25   │ 2027-10-01 │ 2030-10-31 │ PEP 745 │
│ 3.13  │ 2024-10-07 │ 3.13.18 │   2026-10-25   │ 2026-10-01 │ 2029-10-31 │ PEP 719 │
│ 3.12  │ 2023-10-02 │ 3.12.16 │   2026-10-25   │ 2025-04-02 │ 2028-10-31 │ PEP 693 │
│ 3.11  │ 2022-10-24 │ 3.11.18 │   2026-10-25   │ 2024-04-01 │ 2027-10-31 │ PEP 664 │
│ 3.10  │ 2021-10-04 │ 3.10.22 │   2026-10-01   │ 2023-04-05 │ 2026-10-01 │ PEP 619 │
│ 3.9   │ 2020-10-05 │ 3.9.25  │   2025-10-31   │ 2022-05-17 │ 2025-10-31 │ PEP 596 │
│ 3.8   │ 2019-10-14 │ 3.8.20  │   2024-09-06   │ 2021-05-03 │ 2024-10-07 │ PEP 569 │
│ 3.7   │ 2018-06-27 │ 3.7.17  │   2023-06-05   │ 2020-06-27 │ 2023-06-27 │ PEP 537 │
│ 3.6   │ 2016-12-23 │ 3.6.15  │   2021-09-03   │ 2018-12-24 │ 2021-12-23 │ PEP 494 │
│ 3.5   │ 2015-09-13 │ 3.5.10  │   2020-09-05   │   False    │ 2020-09-30 │ PEP 478 │
│ 3.4   │ 2014-03-16 │ 3.4.10  │   2019-03-18   │   False    │ 2019-03-18 │ PEP 429 │
│ 3.3   │ 2012-09-29 │ 3.3.7   │   2017-09-19   │   False    │ 2017-09-29 │ PEP 398 │
│ 3.2   │ 2011-02-20 │ 3.2.6   │   2014-10-12   │   False    │ 2016-02-20 │ PEP 392 │
│ 2.7   │ 2010-07-03 │ 2.7.18  │   2020-04-19   │   False    │ 2020-01-01 │ PEP 373 │
│ 3.1   │ 2009-06-27 │ 3.1.5   │   2012-04-06   │   False    │ 2012-04-09 │ PEP 375 │
│ 3.0   │ 2008-12-03 │ 3.0.1   │   2009-02-12   │   False    │ 2009-06-27 │ PEP 361 │
│ 2.6   │ 2008-10-01 │ 2.6.9   │   2013-10-29   │   False    │ 2013-10-29 │ PEP 361 │
│ 2.5   │ 2006-09-19 │ 2.5.6   │   2011-05-28   │   False    │ 2011-05-26 │ PEP 356 │
│ 2.4   │ 2004-11-30 │ 2.4.6   │   2008-12-19   │   False    │ 2008-12-19 │ PEP 320 │
│ 2.3   │ 2003-07-29 │ 2.3.7   │   2008-03-11   │   False    │ 2008-03-11 │ PEP 283 │
│ 2.2   │ 2001-12-21 │ 2.2.3   │   2003-05-30   │   False    │ 2003-05-30 │ PEP 251 │
│ 2.1   │ 2001-04-17 │ 2.1.3   │   2002-04-09   │   False    │ 2002-04-09 │ PEP 226 │
└───────┴────────────┴─────────┴────────────────┴────────────┴────────────┴─────────┘
```

<!-- [[[end]]] -->

You can format in Markdown, ready for pasting in GitHub issues and PRs:

<!-- [[[cog
run("eol python --md", with_console=False)
]]] -->

| cycle |  release   | latest  | latest release |  support   |    eol     |                     pep                      |
| :---- | :--------: | :------ | :------------: | :--------: | :--------: | :------------------------------------------: |
| 3.15  | 2026-10-09 | 3.15.2  |   2026-10-25   | 2028-10-09 | 2031-10-31 | [PEP 790](https://peps.python.org/pep-0790/) |
| 3.14  | 2025-10-07 | 3.14.10 |   2026-10-25   | 2027-10-01 | 2030-10-31 | [PEP 745](https://peps.python.org/pep-0745/) |
| 3.13  | 2024-10-07 | 3.13.18 |   2026-10-25   | 2026-10-01 | 2029-10-31 | [PEP 719](https://peps.python.org/pep-0719/) |
| 3.12  | 2023-10-02 | 3.12.16 |   2026-10-25   | 2025-04-02 | 2028-10-31 | [PEP 693](https://peps.python.org/pep-0693/) |
| 3.11  | 2022-10-24 | 3.11.18 |   2026-10-25   | 2024-04-01 | 2027-10-31 | [PEP 664](https://peps.python.org/pep-0664/) |
| 3.10  | 2021-10-04 | 3.10.22 |   2026-10-01   | 2023-04-05 | 2026-10-01 | [PEP 619](https://peps.python.org/pep-0619/) |
| 3.9   | 2020-10-05 | 3.9.25  |   2025-10-31   | 2022-05-17 | 2025-10-31 | [PEP 596](https://peps.python.org/pep-0596/) |
| 3.8   | 2019-10-14 | 3.8.20  |   2024-09-06   | 2021-05-03 | 2024-10-07 | [PEP 569](https://peps.python.org/pep-0569/) |
| 3.7   | 2018-06-27 | 3.7.17  |   2023-06-05   | 2020-06-27 | 2023-06-27 | [PEP 537](https://peps.python.org/pep-0537/) |
| 3.6   | 2016-12-23 | 3.6.15  |   2021-09-03   | 2018-12-24 | 2021-12-23 | [PEP 494](https://peps.python.org/pep-0494/) |
| 3.5   | 2015-09-13 | 3.5.10  |   2020-09-05   |   False    | 2020-09-30 | [PEP 478](https://peps.python.org/pep-0478/) |
| 3.4   | 2014-03-16 | 3.4.10  |   2019-03-18   |   False    | 2019-03-18 | [PEP 429](https://peps.python.org/pep-0429/) |
| 3.3   | 2012-09-29 | 3.3.7   |   2017-09-19   |   False    | 2017-09-29 | [PEP 398](https://peps.python.org/pep-0398/) |
| 3.2   | 2011-02-20 | 3.2.6   |   2014-10-12   |   False    | 2016-02-20 | [PEP 392](https://peps.python.org/pep-0392/) |
| 2.7   | 2010-07-03 | 2.7.18  |   2020-04-19   |   False    | 2020-01-01 | [PEP 373](https://peps.python.org/pep-0373/) |
| 3.1   | 2009-06-27 | 3.1.5   |   2012-04-06   |   False    | 2012-04-09 | [PEP 375](https://peps.python.org/pep-0375/) |
| 3.0   | 2008-12-03 | 3.0.1   |   2009-02-12   |   False    | 2009-06-27 | [PEP 361](https://peps.python.org/pep-0361/) |
| 2.6   | 2008-10-01 | 2.6.9   |   2013-10-29   |   False    | 2013-10-29 | [PEP 361](https://peps.python.org/pep-0361/) |
| 2.5   | 2006-09-19 | 2.5.6   |   2011-05-28   |   False    | 2011-05-26 | [PEP 356](https://peps.python.org/pep-0356/) |
| 2.4   | 2004-11-30 | 2.4.6   |   2008-12-19   |   False    | 2008-12-19 | [PEP 320](https://peps.python.org/pep-0320/) |
| 2.3   | 2003-07-29 | 2.3.7   |   2008-03-11   |   False    | 2008-03-11 | [PEP 283](https://peps.python.org/pep-0283/) |
| 2.2   | 2001-12-21 | 2.2.3   |   2003-05-30   |   False    | 2003-05-30 | [PEP 251](https://peps.python.org/pep-0251/) |
| 2.1   | 2001-04-17 | 2.1.3   |   2002-04-09   |   False    | 2002-04-09 | [PEP 226](https://peps.python.org/pep-0226/) |

<!-- [[[end]]] -->

Or in other formats such as reStructuredText:

<!-- [[[cog
run("eol python --rst")
]]] -->

```console
$ eol python --rst
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| cycle |  release   | latest  | latest release |  support   |    eol     |                       pep                       |
+=======+============+=========+================+============+============+=================================================+
| 3.15  | 2026-10-09 | 3.15.2  |   2026-10-25   | 2028-10-09 | 2031-10-31 | `PEP 790 <https://peps.python.org/pep-0790/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 3.14  | 2025-10-07 | 3.14.10 |   2026-10-25   | 2027-10-01 | 2030-10-31 | `PEP 745 <https://peps.python.org/pep-0745/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 3.13  | 2024-10-07 | 3.13.18 |   2026-10-25   | 2026-10-01 | 2029-10-31 | `PEP 719 <https://peps.python.org/pep-0719/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 3.12  | 2023-10-02 | 3.12.16 |   2026-10-25   | 2025-04-02 | 2028-10-31 | `PEP 693 <https://peps.python.org/pep-0693/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 3.11  | 2022-10-24 | 3.11.18 |   2026-10-25   | 2024-04-01 | 2027-10-31 | `PEP 664 <https://peps.python.org/pep-0664/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 3.10  | 2021-10-04 | 3.10.22 |   2026-10-01   | 2023-04-05 | 2026-10-01 | `PEP 619 <https://peps.python.org/pep-0619/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 3.9   | 2020-10-05 | 3.9.25  |   2025-10-31   | 2022-05-17 | 2025-10-31 | `PEP 596 <https://peps.python.org/pep-0596/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 3.8   | 2019-10-14 | 3.8.20  |   2024-09-06   | 2021-05-03 | 2024-10-07 | `PEP 569 <https://peps.python.org/pep-0569/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 3.7   | 2018-06-27 | 3.7.17  |   2023-06-05   | 2020-06-27 | 2023-06-27 | `PEP 537 <https://peps.python.org/pep-0537/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 3.6   | 2016-12-23 | 3.6.15  |   2021-09-03   | 2018-12-24 | 2021-12-23 | `PEP 494 <https://peps.python.org/pep-0494/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 3.5   | 2015-09-13 | 3.5.10  |   2020-09-05   |   False    | 2020-09-30 | `PEP 478 <https://peps.python.org/pep-0478/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 3.4   | 2014-03-16 | 3.4.10  |   2019-03-18   |   False    | 2019-03-18 | `PEP 429 <https://peps.python.org/pep-0429/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 3.3   | 2012-09-29 | 3.3.7   |   2017-09-19   |   False    | 2017-09-29 | `PEP 398 <https://peps.python.org/pep-0398/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 3.2   | 2011-02-20 | 3.2.6   |   2014-10-12   |   False    | 2016-02-20 | `PEP 392 <https://peps.python.org/pep-0392/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 2.7   | 2010-07-03 | 2.7.18  |   2020-04-19   |   False    | 2020-01-01 | `PEP 373 <https://peps.python.org/pep-0373/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 3.1   | 2009-06-27 | 3.1.5   |   2012-04-06   |   False    | 2012-04-09 | `PEP 375 <https://peps.python.org/pep-0375/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 3.0   | 2008-12-03 | 3.0.1   |   2009-02-12   |   False    | 2009-06-27 | `PEP 361 <https://peps.python.org/pep-0361/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 2.6   | 2008-10-01 | 2.6.9   |   2013-10-29   |   False    | 2013-10-29 | `PEP 361 <https://peps.python.org/pep-0361/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 2.5   | 2006-09-19 | 2.5.6   |   2011-05-28   |   False    | 2011-05-26 | `PEP 356 <https://peps.python.org/pep-0356/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 2.4   | 2004-11-30 | 2.4.6   |   2008-12-19   |   False    | 2008-12-19 | `PEP 320 <https://peps.python.org/pep-0320/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 2.3   | 2003-07-29 | 2.3.7   |   2008-03-11   |   False    | 2008-03-11 | `PEP 283 <https://peps.python.org/pep-0283/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 2.2   | 2001-12-21 | 2.2.3   |   2003-05-30   |   False    | 2003-05-30 | `PEP 251 <https://peps.python.org/pep-0251/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
| 2.1   | 2001-04-17 | 2.1.3   |   2002-04-09   |   False    | 2002-04-09 | `PEP 226 <https://peps.python.org/pep-0226/>`__ |
+-------+------------+---------+----------------+------------+------------+-------------------------------------------------+
```

<!-- [[[end]]] -->

## Example programmatic use

Return values are from the JSON responses documented in the API:
https://endoflife.date/docs/api/

```python
import norwegianblue

# Call the API
print(norwegianblue.norwegianblue())
print(norwegianblue.norwegianblue(product="ubuntu"))
print(norwegianblue.norwegianblue(format="json"))
```

## Why "Norwegian Blue"?

[The Norwegian Blue has reached end-of-life.](https://youtu.be/vnciwwsvNcc)
