Check if a Python version is End-Of-Life (EOL).
Project description
py-eol
Check if a Python version is End-Of-Life (EOL).
Installation
pip install py-eol
Usage
Use the py_eol package as a 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
Use the py-eol as a command-line tool
py-eol --help
usage: py-eol [-h] [--list] [--json] [--check-self] [--refresh] [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
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
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.1.1.post1.dev1.tar.gz.
File metadata
- Download URL: py_eol-0.1.1.post1.dev1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ea55a22a86f6b1a6e727c315fdaff9e5d2507a1e30953a9933d7ae2578e7649
|
|
| MD5 |
a4111d34cdeb5b69d7cc4e6c797314d0
|
|
| BLAKE2b-256 |
3124d1630d4953350528f357504b6c81a498955b81188868acf5fe01257c4adf
|
File details
Details for the file py_eol-0.1.1.post1.dev1-py3-none-any.whl.
File metadata
- Download URL: py_eol-0.1.1.post1.dev1-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bc93f0accd4d0c8bbd7e5088aea91c6735b358b5ac18982d28445f59f05a959
|
|
| MD5 |
bb6f1beb192903e915cb5e24035b3499
|
|
| BLAKE2b-256 |
6ceb2e520fe2c6fb36542a04b220a109344509877f20ecc7c2b6ead2a4202da4
|