Check if a Python version is End-Of-Life (EOL)
Project description
py-eol
Check if a Python version is End-Of-Life (EOL).
Why py-eol?
- Programmatically check if a Python version is supported or EOL
- Works both as a Python module and a CLI tool
- Useful for local checks, automation scripts, and CI/CD pipelines
- Helps teams avoid using unsupported Python versions
Installation
pip install py-eol
Usage
As a Python module
from py_eol import is_eol, get_eol_date, supported_versions, eol_versions, latest_supported_version
print(is_eol("3.7")) # True
print(get_eol_date("3.8")) # 2024-10-07
print(supported_versions()) # ['3.14', '3.13', '3.12', '3.11', '3.10', '3.9']
print(eol_versions()) # ['3.8', '3.7', '3.6', '3.5', '3.4', '3.3', '3.2', '2.7', '3.1', '3.0', '2.6']
print(latest_supported_version()) # 3.14
As a CLI tool
py-eol --help
usage: py-eol [-h] [--list] [--json] [--check-self] [--refresh] [--version] [versions ...]
Check if a Python version is EOL (End Of Life).
positional arguments:
versions Python versions to check, e.g., 3.11 3.12
options:
-h, --help show this help message and exit
--list List all supported Python versions
--json Output result in JSON format
--check-self Check the current Python interpreter version
--refresh Refresh the EOL data from endoflife.date
--version Show the version of the tool
Examples
# Check a specific version
py-eol 3.9
# Check multiple versions
py-eol 3.7 3.8 3.11
# Check current Python interpreter
py-eol --check-self
# List all currently supported versions
py-eol --list
# Output result in JSON format
py-eol 3.8 3.9 --json
# Refresh the latest EOL data
py-eol --refresh
License
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
py_eol-0.3.0.tar.gz
(10.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_eol-0.3.0.tar.gz.
File metadata
- Download URL: py_eol-0.3.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46bc69c38ca928398b14415a9513164fa7693dc46f4d4cf21f41a104534f5109
|
|
| MD5 |
4471a7d77319c9882c7edc06347689e1
|
|
| BLAKE2b-256 |
73ea2bba9d321de05c6df000e2e5345a01776c12aa840e5d05636510d66846c5
|
File details
Details for the file py_eol-0.3.0-py3-none-any.whl.
File metadata
- Download URL: py_eol-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c53383100bfedb3c725b7fcbe2178004409da29af8817849bca2c4ead598576
|
|
| MD5 |
c6563b0a8f289fb68500636c92d698be
|
|
| BLAKE2b-256 |
0a4ee00e2ba8e154918f222003432ff2710237c9113d3db4e017f5a2b05e3128
|