Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/president-not-sure/lppn
Print the latest Python patch number of a given major and minor version
https://github.com/president-not-sure/lppn
download ftp latest major minor patch print python semantic version
Last synced: 8 days ago
JSON representation
Print the latest Python patch number of a given major and minor version
- Host: GitHub
- URL: https://github.com/president-not-sure/lppn
- Owner: president-not-sure
- License: mit
- Created: 2024-09-30T19:15:30.000Z (about 1 month ago)
- Default Branch: master
- Last Pushed: 2024-10-16T22:25:05.000Z (28 days ago)
- Last Synced: 2024-10-19T07:07:54.713Z (26 days ago)
- Topics: download, ftp, latest, major, minor, patch, print, python, semantic, version
- Language: Python
- Homepage:
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lppn
| master | dev |
| :----: | :-: |
| [![CI](https://github.com/president-not-sure/lppn/actions/workflows/CI.yaml/badge.svg?branch=master)](https://github.com/president-not-sure/lppn/actions/workflows/CD.yaml) | [![CI](https://github.com/president-not-sure/lppn/actions/workflows/CI.yaml/badge.svg?branch=dev)](https://github.com/president-not-sure/lppn/actions/workflows/CD.yaml) |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
```shell
python3 -m venv venv
. venv/bin/activate
pip install lppn
```## Usage (python)
```python
import lppnmajor = 3
minor = 12
patch = lppn.get(major, minor)print(f"{major}.{minor}.{patch}")
```## Usage (cli)
```shell
$ 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
```