Skip to main content

Check if a Python version is End-Of-Life (EOL).

Project description

py-eol

main PyPI - Version

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

MIT

Project details


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.1.2.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_eol-0.1.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file py_eol-0.1.2.tar.gz.

File metadata

  • Download URL: py_eol-0.1.2.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

Hashes for py_eol-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8677f4c2c22fe7e603654adc2aecda0ed22456d154a475bc55dae99290a9309b
MD5 c52276ae05daaf9adff4cd9727e5b519
BLAKE2b-256 8dc5fc0d3e1e5ad59461983aef9b91b8acd228f8e4c7e682c9b41b3162f7cba3

See more details on using hashes here.

File details

Details for the file py_eol-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: py_eol-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for py_eol-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d5d65365375d5eb2060013c526cd023f60d3aa47c482ac3188bf60b493e24fe7
MD5 f311f62875606e906fa7219704de2091
BLAKE2b-256 94e8e3034b4576408198c1ada49010d921f6396561c5d91832434eee8a949953

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page