Skip to main content

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

Project description

py-eol

main

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

Installation

pip install git+https://github.com/shenxianpeng/py-eol.git

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.0.post1.dev7.tar.gz (6.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.0.post1.dev7-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file py_eol-0.0.post1.dev7.tar.gz.

File metadata

  • Download URL: py_eol-0.0.post1.dev7.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for py_eol-0.0.post1.dev7.tar.gz
Algorithm Hash digest
SHA256 a04f8254e4be9c9f026c97238b9f3c398536bf7582e214320acbd8f330d80324
MD5 79f35c383d6c449c771b51d24438d75a
BLAKE2b-256 f7c0759be4d9aeedb24b807c3d99f17f224e066c8a87898068b9e1c2ed1800e6

See more details on using hashes here.

File details

Details for the file py_eol-0.0.post1.dev7-py3-none-any.whl.

File metadata

File hashes

Hashes for py_eol-0.0.post1.dev7-py3-none-any.whl
Algorithm Hash digest
SHA256 2f061a8603ff5aca77be1e3f156ff6809d0a61703581b819c7ef3faf928a64d2
MD5 af06ad5ee618e97b2bf057ace558dfc8
BLAKE2b-256 ab80988727fdcce3c3112cd540ed32c18f8e4eea8c93220b119c6d4af1701b57

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