Skip to main content

Print the latest Python patch number of a given major and minor version

Project description

lppn

master dev
CI CI

lppn, or Latest Python Patch Number, parses the Python FTP download page for the latest Python patch number of a given major and minor version. It can be used as a cli command or imported as a library. This was developped as a way to automate the download of the most recent python of an older, but still supported version.

Install

python3 -m venv venv
. venv/bin/activate
pip install lppn

Usage (python)

import lppn

major = 3
minor = 12
patch = lppn.get(major, minor)

print(f"{major}.{minor}.{patch}")

Usage (cli)

$ lppn -h
usage: lppn [-h] [-v] [-f] [-g MAJOR MINOR]

Print the latest Python patch number of a given major and minor version

options:
  -h, --help            show this help message and exit
  -v, --version         Print lppn version
  -f, --full-version    Print full python version
  -g MAJOR MINOR, --get MAJOR MINOR
                        Major and minor python version e.g. 3 12

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

lppn-1.0.4.tar.gz (11.4 kB view hashes)

Uploaded Source

Built Distribution

lppn-1.0.4-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

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