# Install from TestPyPIpip install -i https://test.pypi.org/simple/ motorbridge==0.5.0a1
Pre-release versions may have breaking changes and are not recommended for production.
Git Installation
# Install from Gitpip install git+https://github.com/motorbridge/motorbridge@v0.5.0# Install specific branchpip install git+https://github.com/motorbridge/motorbridge@main
Checking Installed Version
Command Line
# Using pippip show motorbridge# Using the Python CLImotorbridge-cli -v# Using the Rust CLImotor_cli -v# Using Pythonpython3 -c "import importlib.metadata; print(importlib.metadata.version('motorbridge'))"python3 -c "import motorbridge; print(motorbridge.get_version())"
Programmatically
import motorbridgeimport importlib.metadataprint(f"motorbridge version: {importlib.metadata.version('motorbridge')}")print(f"motorbridge API version: {motorbridge.get_version()}")
Upgrade Strategies
Conservative Upgrade
Stay on stable versions, upgrade for bug fixes:
# Current: any older 0.x release# Upgrade to latest stable: 0.5.0pip install --upgrade motorbridge# Or specific patchpip install motorbridge==0.5.0
Early Adopter
Test pre-releases in development:
# Development environmentpip install -i https://test.pypi.org/simple/ motorbridge==0.5.0b1# Test your codepython3 -m pytest tests/# Production stays on stablepip install motorbridge==0.5.0
Never reuse the same package version for a second upload.Once a version is uploaded to PyPI, it cannot be overwritten. Always increment the version number for new uploads.
If Upload Fails
# Bad: Trying to re-upload same versiontwine upload dist/motorbridge-0.5.0.tar.gz# Error: File already exists# Solution: Increment version# Update the shared version sources to the next patch version# Rebuild and upload