PPVC is a simple and efficient command-line utility that queries PyPI (Python Package Index) for available versions of Python packages. It's designed to be fast, reliable, and easy to use.
- List all available versions of a Python package
- Get only the latest version of a package
- Limit the number of versions displayed
- Simple and intuitive command-line interface
- Fast response times
- Error handling for network issues and non-existent packages
- Beautiful colorized output with formatted tables
- Version type classification (Final, Pre-release, Post-release)
You can install PPVC using pip:
pip install ppvcList all available versions of a package:
ppvc requestsShow only the latest version of a package:
ppvc requests --latestShow only the first N versions:
ppvc django --limit 5# List all versions of the requests package
ppvc requests
# Get the latest version of numpy
ppvc numpy --latest
# Check versions of a specific package
ppvc django
# Show only the 10 most recent versions
ppvc flask --limit 10--help: Show help message--version: Show version information--latest: Show only the latest version--limit N: Limit the number of versions shown to N
PPVC provides clear error messages for common issues:
- Package not found on PyPI
- Network connection problems
- Invalid package names
- Python 3.8 or higher
- Internet connection to access PyPI
- packaging>=23.0 (for version parsing)
- rich>=13.0.0 (for terminal formatting)
# Clone the repository
git clone https://github.com/rapidrabbitsoft/ppvc.git
cd ppvc
# Create virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -e .
# Test the package
python test_ppvc.py# Install build tools
pip install build twine
# Build the package
python -m build
# Install locally
pip install dist/*.whlThis package is configured for automated publishing to PyPI using GitHub Actions. See PUBLISHING.md for detailed instructions.
- Update version in
pyproject.tomlandppvc/ppvc.py - Create a new GitHub release with the version tag
- The GitHub Action will automatically build and publish to PyPI
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a new branch for your feature
- Make your changes
- Run tests:
python test_ppvc.py - Submit a pull request
For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the BSD 2-Clause License - see the LICENSE file for details.
Chris McMichael (python@apprabb.it)