Print the latest Python patch number of a given major and minor version
Project description
lppn
| master | dev |
|---|---|
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1769c939f4ae7e367871ca46addf1def76a563820e74d15394061312ca3e4c37
|
|
| MD5 |
c2659884038e7e3271eadfcd4ed9250c
|
|
| BLAKE2b-256 |
83bf10c816fc3b66dd40be89ae3ff559eebe8b533bef4d3e92f4f11ed86fdcf5
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b6b9d222d6f886cb7d23f62c9b33e488f9646c1619f5e63df42f402452f30b3
|
|
| MD5 |
392fdb3e76ebfc3b5add447b24a0e689
|
|
| BLAKE2b-256 |
a7276795f4fdecf728d299dc87338fe495b92c33c0c586688fc6849bae39d43c
|