Skip to main content

Detect how uv was installed and get upgrade instructions

Project description

uvhow

Detect how uv was installed and get upgrade instructions.

Usage

Run with uvx (recommended):

uvx uvhow

Or install and run:

uv add uvhow
uvhow

Example Output

🔍 uv installation detected

✅ Found uv: uv 0.8.0 (0b2357294 2025-07-17)
📍 Location: /Users/user/.local/bin/uv

🎯 Installation method: Standalone installer
💡 To upgrade: uv self update

Supported Installation Methods

  • Standalone installer (~/.local/bin/uv) -> uv self update
  • Cargo (~/.cargo/bin/uv) -> cargo install --git https://github.com/astral-sh/uv uv --force
  • Homebrew (/opt/homebrew/bin/uv) -> brew upgrade uv
  • pipx (~/.local/share/pipx/venvs/uv/bin/uv) -> pipx upgrade uv
  • pip (virtual environment) -> pip install --upgrade uv
  • pip (system) -> sudo pip install --upgrade uv
  • pip (user) -> pip install --upgrade --user uv

Programmatic Usage

from uvhow import detect_uv_installation

installation = detect_uv_installation()
if installation:
    print(f"Method: {installation.method}")
    print(f"Upgrade: {installation.upgrade_command}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uvhow-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uvhow-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file uvhow-0.1.0.tar.gz.

File metadata

  • Download URL: uvhow-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for uvhow-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c3b0b865764f62b25eded2aee156413503888c5ac026938acafdf993b68fc927
MD5 27fc3eb6f08cc4fc4a3a7637039bdb65
BLAKE2b-256 569b7a7ba1155d1861200071fa554f6c7ce24c5c77b7f6fe76c33796fd014eed

See more details on using hashes here.

Provenance

The following attestation bundles were made for uvhow-0.1.0.tar.gz:

Publisher: publish.yml on python-developer-tooling-handbook/uvhow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file uvhow-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: uvhow-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for uvhow-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa154b44250b523b68ee428af4d40d5f4e8fe97b7d6b95edabe4a089ef212962
MD5 be0ee1171f43320f00802462a3ac05e3
BLAKE2b-256 d280e21c1c4aec7a768ba6d084eaa6acddb6fab6dd9cfd46f87f99b11225ce85

See more details on using hashes here.

Provenance

The following attestation bundles were made for uvhow-0.1.0-py3-none-any.whl:

Publisher: publish.yml on python-developer-tooling-handbook/uvhow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page