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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file lppn-1.0.4.tar.gz.

File metadata

  • Download URL: lppn-1.0.4.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for lppn-1.0.4.tar.gz
Algorithm Hash digest
SHA256 1769c939f4ae7e367871ca46addf1def76a563820e74d15394061312ca3e4c37
MD5 c2659884038e7e3271eadfcd4ed9250c
BLAKE2b-256 83bf10c816fc3b66dd40be89ae3ff559eebe8b533bef4d3e92f4f11ed86fdcf5

See more details on using hashes here.

File details

Details for the file lppn-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: lppn-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for lppn-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3b6b9d222d6f886cb7d23f62c9b33e488f9646c1619f5e63df42f402452f30b3
MD5 392fdb3e76ebfc3b5add447b24a0e689
BLAKE2b-256 a7276795f4fdecf728d299dc87338fe495b92c33c0c586688fc6849bae39d43c

See more details on using hashes here.

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