Metadata-Version: 2.1
Name: get-pypi-latest-version
Version: 0.0.6
Summary: Get the latest version of the specified python package name in the pypi.
Home-page: https://github.com/SWHL/GetPyPiLatestVersion
Author: SWHL
Author-email: liekkaskono@163.com
License: Apache-2.0
Download-URL: https://github.com/SWHL/GetPyPiLatestVersion.git
Keywords: pypi,latest_version
Platform: Any
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Description-Content-Type: text/markdown
Requires-Dist: html5lib (>=1.1)
Requires-Dist: requests (>=2.28.1)

## get_pypi_latest_version
<p>
    <a href=""><img src="https://img.shields.io/badge/Python->=3.7,<=3.10-aff.svg"></a>
    <a href=""><img src="https://img.shields.io/badge/OS-Linux%2C%20Win%2C%20Mac-pink.svg"></a>
    <a href="https://pypi.org/project/get_pypi_latest_version/"><img alt="PyPI" src="https://img.shields.io/pypi/v/get_pypi_latest_version"></a>
    <a href="https://pepy.tech/project/get-pypi-latest-version"><img src="https://static.pepy.tech/personalized-badge/get-pypi-latest-version?period=total&units=abbreviation&left_color=grey&right_color=blue&left_text=Downloads"></a>
    <a href="https://semver.org/"><img alt="SemVer2.0" src="https://img.shields.io/badge/SemVer-2.0-brightgreen"></a>
<a href='https://getpypilatestversion.readthedocs.io/en/latest/?badge=latest'>
    <img src='https://readthedocs.org/projects/getpypilatestversion/badge/?version=latest' alt='Documentation Status' />
</a>
</p>


### 1. Install package by pypi.
```bash
$ pip install get_pypi_latest_version
```
### 2. Run by command line.
- Usage:
    ```bash
    $ get_pypi_latest_version -h
    usage: get_pypi_latest_version [-h] package_name

    positional arguments:
    package_name  The specified python package name. e.g. opencv-python.

    optional arguments:
    -h, --help    show this help message and exit
    ```
- Example:
    ```bash
    $ get_pypi_latest_version opencv-python
    # 4.7.0.72
    ```
### 3. Use by python script.
```python
from get_pypi_latest_version import GetPyPiLatestVersion

obtainer = GetPyPiLatestVersion()

package_name = 'opencv-python'
latest_version = obtainer(package_name)
print(latest_version)
```

### Change log
- 2023-03-26 v0.0.4~5 update:
  - Add [docs](https://getpypilatestversion.readthedocs.io/en/latest/)

### Reference
- [poetry](https://github.com/python-poetry/poetry/blob/master/src/poetry/repositories/pypi_repository.py#L36)


