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.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.13
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.2.1.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.2.1.tar.gz.
File metadata
- Download URL: py_eol-0.2.1.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 |
138f57550fe9e4794dc8d59b4956cd81bf3a4bad7324f9e009ee3c8c1adc920f
|
|
| MD5 |
65787aa8cbccb8552ded827fe187f734
|
|
| BLAKE2b-256 |
0dc1800a3eb6e1e7d5e06e54e766c42dd6553e5a8afcdebef418a87ebb0f5e56
|
File details
Details for the file py_eol-0.2.1-py3-none-any.whl.
File metadata
- Download URL: py_eol-0.2.1-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 |
dc80135fef079753882213654f1af4472c2cef6f82ad18fd3fc0d44e966d6e8e
|
|
| MD5 |
bd16a4344fbb9cc4d0d98f0e90aada54
|
|
| BLAKE2b-256 |
c31ae08ab01e25c7cafec3b025728486cdb3fe6215ce55cc4aa3f91cf765b33c
|