Skip to main content

Display Python version, executable path, and script path when run with uv

Project description

whoruv

PyPI - Version PyPI - Python Version Last Commit License: MIT

English | 日本語

Overview

A package that displays the following information when installed and executed with Astral's uv using uvx or uv tool install:

  • Python version
  • Python executable path
  • Script path

Created to understand the effects of uv's --python option.

Usage Examples

Basic Usage

$ uvx whoruv

Installed 1 package in 3ms
Python Version: 3.12.12 (main, Oct 28 2025, 12:10:49) [Clang 20.1.4 ]
Executable Path: /home/user1/.cache/uv/archive-v0/VEm-1_LGBHubU7SZHYbs2/bin/python
Script Path: /home/user1/.cache/uv/archive-v0/VEm-1_LGBHubU7SZHYbs2/lib/python3.12/site-packages/whoruv/whoruv.py

$ uvx --python 3.10 whoruv

Installed 1 package in 3ms
Python Version: 3.10.12 (main, Aug 15 2025, 14:32:43) [GCC 11.4.0]
Executable Path: /home/user1/.cache/uv/archive-v0/Vcsgj4kD85VznE7HmFNsb/bin/python
Script Path: /home/user1/.cache/uv/archive-v0/Vcsgj4kD85VznE7HmFNsb/lib/python3.10/site-packages/whoruv/whoruv.py

$ uv tool install whoruv && whoruv

Resolved 1 package in 1ms
Installed 1 package in 3ms
 + whoruv==0.0.1
Installed 1 executable: whoruv
Python Version: 3.12.12 (main, Oct 28 2025, 12:10:49) [Clang 20.1.4 ]
Executable Path: /home/user1/.local/share/uv/tools/whoruv/bin/python
Script Path: /home/user1/.local/share/uv/tools/whoruv/lib/python3.12/site-packages/whoruv/whoruv.py

$ uv tool install --python 3.10 whoruv && whoruv

Ignoring existing environment for `whoruv`: the requested Python interpreter does not match the environment interpreter
Resolved 1 package in 1ms
Installed 1 package in 4ms
 + whoruv==0.0.1
Installed 1 executable: whoruv
Python Version: 3.10.12 (main, Aug 15 2025, 14:32:43) [GCC 11.4.0]
Executable Path: /home/user1/.local/share/uv/tools/whoruv/bin/python
Script Path: /home/user1/.local/share/uv/tools/whoruv/lib/python3.10/site-packages/whoruv/whoruv.py

Command Line Options

$ whoruv --help
usage: whoruv [-h] [-V]

Display Python version, executable path, and script path

options:
  -h, --help     show this help message and exit
  -V, --version  show program's version number and exit

$ whoruv --version
whoruv v0.0.1

Development

Setup

uv sync

Task Execution

# Run tests
poe test

# Lint and format
poe check
poe format

# Type check
poe mypy

# Run all checks & build & smoke test
poe build

Development Requirements

  • Python >= 3.12
  • uv

License

MIT

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

whoruv-0.0.10.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

whoruv-0.0.10-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file whoruv-0.0.10.tar.gz.

File metadata

  • Download URL: whoruv-0.0.10.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for whoruv-0.0.10.tar.gz
Algorithm Hash digest
SHA256 a7bdb948333d5d4b703eabf065f98ac3f6d62c7026c3cd293d129c01074d3e32
MD5 8203e7202948d0f2887175b9591dc517
BLAKE2b-256 3af683fdb811553b78df1b2061609b33dee44cbfc6bb64a7d8e338fe78073538

See more details on using hashes here.

Provenance

The following attestation bundles were made for whoruv-0.0.10.tar.gz:

Publisher: publish-pypi.yml on heiwa4126/whoruv

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

File details

Details for the file whoruv-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: whoruv-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for whoruv-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 2687666162d6a710ce21ca771e2d1b86a8e4519dbcbe097f5a04d73d7e39377e
MD5 3040dd61c5d58cbb8f56f27a7627c79a
BLAKE2b-256 2202ddfbbe46443281addaeecf05a252747da5e7079a1bfaec3df66925d4c702

See more details on using hashes here.

Provenance

The following attestation bundles were made for whoruv-0.0.10-py3-none-any.whl:

Publisher: publish-pypi.yml on heiwa4126/whoruv

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