https://github.com/shenxianpeng/py-eol
Check if a Python version is End-Of-Life (EOL)
https://github.com/shenxianpeng/py-eol
end-of-life eol python
Last synced: 27 days ago
JSON representation
Check if a Python version is End-Of-Life (EOL)
- Host: GitHub
- URL: https://github.com/shenxianpeng/py-eol
- Owner: shenxianpeng
- License: mit
- Created: 2025-04-26T18:55:21.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-09-01T10:56:21.000Z (about 1 month ago)
- Last Synced: 2025-09-06T21:15:07.753Z (about 1 month ago)
- Topics: end-of-life, eol, python
- Language: Python
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# py-eol
[](https://github.com/shenxianpeng/py-eol/actions/workflows/ci.yml)
Check if a Python version is End-Of-Life (EOL).
## Installation
```bash
pip install py-eol
```## Usage
Use the `py_eol` package as a module
```python
from py_eol import is_eol, get_eol_date, supported_versions, eol_versions, latest_supported_versionprint(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
```bash
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.12options:
-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
```bash
# 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
[MIT](https://github.com/shenxianpeng/py-eol/blob/main/LICENSE)