coveo-pypi-cli
A very simple pypi cli that can be used to obtain the latest version of a package, or calculate the next one.
Serves our automatic pypi push github action.
pypi current-version
Display the current version of a package from pypi.org
pypi next-version
Compute the next version of a package.
- Can be given a minimum version
- e.g.: pypi is
0.0.3and mininum set to0.1: next version will be0.1
- e.g.: pypi is
- Supports computing pre-release versions
private index support
You can target a private pypi server through a switch or an environment variable.
Using the --index switch
$ pypi current-version secret-package --index https://my.pypi.server.org
1.0.0
$ pypi current-version secret-package --index https://my.pypi.server.org:51800/urlprefix
1.0.0
Using the environment variable:
$ PYPI_CLI_INDEX="https://my.pypi.server.org" pypi current-version secret-package
Note: Unlike pip --index-url, you must omit the /simple url prefix.
The API used by coveo-pypi-cli is served by the /pypi endpoint and should not be specified either!
pypi-cli in action
The best example comes from the github action, which computes the next version based on the current release and what's in the pyproject.toml.
Here's what you can expect from the tool:
$ pypi current-version coveo-functools
0.2.1
$ pypi next-version coveo-functools
0.2.2
$ pypi next-version coveo-functools --prerelease
0.2.2a1
$ pypi next-version coveo-functools --minimum-version 0.2
0.2.2
$ pypi next-version coveo-functools --minimum-version 0.3
0.3
$ pypi next-version coveo-functools --minimum-version 0.3 --prerelease
0.3a1
# Here's an example of how we use it in the github action
$ poetry version
coveo-pypi-cli 0.1.0
$ minimum_version=$(poetry version | cut --fields 2 --delimiter ' ' )
0.1.0
# when left unattended, the next-version increments the patch number
$ pypi next-version coveo-pypi-cli --minimum-version $minimum_version
0.2.2
# in order to change the minor or major, because the script uses `poetry version` to obtain the minimum version,
# just set it in `pyproject.toml` manually or by calling `poetry version <new-version>` (and commit!)
$ poetry version 0.3
Bumping version from 0.1.0 to 0.3
$ minimum_version=$(poetry version | cut --fields 2 --delimiter ' ' )
0.3
$ pypi next-version coveo-pypi-cli --minimum-version $minimum_version
0.3
# IMPORTANT: the publish step MUST set the computed version for poetry before publishing!
$ poetry version $minimum_version
0.3
$ poetry publish
...
# after publishing the above, repeating the steps would yield:
$ pypi next-version coveo-pypi-cli --minimum-version $minimum_version
0.3.1
# for completeness, you can also publish pre-releases:
$ pypi next-version coveo-pypi-cli --minimum-version $minimum_version --prerelease
0.3.1a1
Metadata
Release files for coveo-pypi-cli 3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| coveo_pypi_cli-3.0.tar.gz | 9.8 kB | With provenance | Details for coveo_pypi_cli-3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| coveo_pypi_cli-3.0-py3-none-any.whl | Python 3 | none | any | Details for coveo_pypi_cli-3.0-py3-none-any.whl |
Total release size: 21.0 kB
Release files / coveo_pypi_cli-3.0.tar.gz
| Download URL | coveo_pypi_cli-3.0.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9b6b04bc3153eff5a87c05cc87016082894dd38f7499784ec93d39e8f915134
|
|
BLAKE2b-256 checksum How to use checksums |
bccc442398252fa3962be47b1d553bea7bc2e889adaf93c2ad2007e9a6bd456c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.
Transparency logRelease files / coveo_pypi_cli-3.0-py3-none-any.whl
| Download URL | coveo_pypi_cli-3.0-py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e59597a9f2ba074365c14bd859d4a97bff98734f0f180f0bcc02e51ce0f947f5
|
|
BLAKE2b-256 checksum How to use checksums |
34e46fc573a60af2f7638b9d36a10665ca2a743ac52ea11608b3361a3ffc2644
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.
Transparency logSecurity for coveo-pypi-cli 3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for coveo_pypi_cli-3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.