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-14
print(supported_versions()) # ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
print(eol_versions()) # ['2.7', '3.6', '3.7', '3.8']
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.2.0.tar.gz
(8.3 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.0.tar.gz.
File metadata
- Download URL: py_eol-0.2.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc57fe8550581e1775ad51be0800a1d450925f20df882e6d753e4296a4a920a5
|
|
| MD5 |
0baa9d2a9146cb653665c20df8979a45
|
|
| BLAKE2b-256 |
254e0e28c2dc2f5db33ba2b51292c821b6293194dfdf40047deb333330268330
|
File details
Details for the file py_eol-0.2.0-py3-none-any.whl.
File metadata
- Download URL: py_eol-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.3 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 |
f7922819ee02fdda49ecc800ddb4b137ce47b8ad9a763e4627af7308578d0098
|
|
| MD5 |
406997f61804ec5ef66e95c9eabdd947
|
|
| BLAKE2b-256 |
5308752e85733c97bd2a79a1690f3d71fb8263fe4600243100ed9a1e4328698b
|