lppn


Namelppn JSON
Version 1.0.4 PyPI version JSON
download
home_pageNone
SummaryPrint the latest Python patch number of a given major and minor version
upload_time2024-10-16 22:26:14
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT License Copyright (c) 2024 president-not-sure Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords get latest python patch version
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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 lppn

major = 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
```


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "lppn",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "get, latest, python, patch, version",
    "author": null,
    "author_email": "President Not Sure <144360653+president-not-sure@users.noreply.github.com>",
    "download_url": "https://files.pythonhosted.org/packages/83/bf/10c816fc3b66dd40be89ae3ff559eebe8b533bef4d3e92f4f11ed86fdcf5/lppn-1.0.4.tar.gz",
    "platform": null,
    "description": "# lppn\n| master | dev |\n| :----: | :-: |\n| [![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) |\n\nlppn, 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.\n\n## Install\n```shell\npython3 -m venv venv\n. venv/bin/activate\npip install lppn\n```\n\n## Usage (python)\n```python\nimport lppn\n\nmajor = 3\nminor = 12\npatch = lppn.get(major, minor)\n\nprint(f\"{major}.{minor}.{patch}\")\n```\n\n## Usage (cli)\n```shell\n$ lppn -h\nusage: lppn [-h] [-v] [-f] [-g MAJOR MINOR]\n\nPrint the latest Python patch number of a given major and minor version\n\noptions:\n  -h, --help            show this help message and exit\n  -v, --version         Print lppn version\n  -f, --full-version    Print full python version\n  -g MAJOR MINOR, --get MAJOR MINOR\n                        Major and minor python version e.g. 3 12\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 president-not-sure  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Print the latest Python patch number of a given major and minor version",
    "version": "1.0.4",
    "project_urls": {
        "Homepage": "https://github.com/president-not-sure/lppn",
        "Issues": "https://github.com/president-not-sure/lppn/issues",
        "Repository": "https://github.com/president-not-sure/lppn.git"
    },
    "split_keywords": [
        "get",
        " latest",
        " python",
        " patch",
        " version"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a7276795f4fdecf728d299dc87338fe495b92c33c0c586688fc6849bae39d43c",
                "md5": "392fdb3e76ebfc3b5add447b24a0e689",
                "sha256": "3b6b9d222d6f886cb7d23f62c9b33e488f9646c1619f5e63df42f402452f30b3"
            },
            "downloads": -1,
            "filename": "lppn-1.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "392fdb3e76ebfc3b5add447b24a0e689",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 5705,
            "upload_time": "2024-10-16T22:26:13",
            "upload_time_iso_8601": "2024-10-16T22:26:13.089479Z",
            "url": "https://files.pythonhosted.org/packages/a7/27/6795f4fdecf728d299dc87338fe495b92c33c0c586688fc6849bae39d43c/lppn-1.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "83bf10c816fc3b66dd40be89ae3ff559eebe8b533bef4d3e92f4f11ed86fdcf5",
                "md5": "c2659884038e7e3271eadfcd4ed9250c",
                "sha256": "1769c939f4ae7e367871ca46addf1def76a563820e74d15394061312ca3e4c37"
            },
            "downloads": -1,
            "filename": "lppn-1.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "c2659884038e7e3271eadfcd4ed9250c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 11369,
            "upload_time": "2024-10-16T22:26:14",
            "upload_time_iso_8601": "2024-10-16T22:26:14.315417Z",
            "url": "https://files.pythonhosted.org/packages/83/bf/10c816fc3b66dd40be89ae3ff559eebe8b533bef4d3e92f4f11ed86fdcf5/lppn-1.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-16 22:26:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "president-not-sure",
    "github_project": "lppn",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "lppn"
}
        
Elapsed time: 0.34303s