Skip to main content

Run Python scripts with inline metadata directly from URLs

Project description

uvrun

Run Python scripts with inline metadata directly from URLs. This simple tool integrates with uv to provide a seamless experience for running Python scripts from GitHub repositories.

Features

  • Run Python scripts directly from GitHub repositories
  • Manage multiple script repositories
  • Smart script discovery with inline metadata
  • Pass arguments directly to scripts and uv
  • List available scripts with a nice directory structure

Installation

pip install uvrun

Usage

Add a repository:

uvrun --add https://github.com/username/repo

List available scripts:

uvrun --list

Run a script:

uvrun script_name arg1 arg2

(Note: both script_name and script_name.py are valid)

With specific Python version:

uvrun script_name --uv-args "--refresh"

Script Metadata

To make a script discoverable by uvrun, add the following inline metadata at the top of the file:

# /// script
# requires-python = ">=3.12"
# dependencies = [
#     "flask>=2.0.0",
#     "requests>=2.31.0",
# ]
# ///

License

MIT License

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

uvrun-0.1.5.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

uvrun-0.1.5-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file uvrun-0.1.5.tar.gz.

File metadata

  • Download URL: uvrun-0.1.5.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for uvrun-0.1.5.tar.gz
Algorithm Hash digest
SHA256 29e884df51b276e480d8055d261da42809d88ea68e831d4a14fe7efc05176f7f
MD5 a6318186c0fef14c7f4e3fef8c722ea2
BLAKE2b-256 4b0a294fef565b89b1e8a2f2f6238d51a8424eaa04cfcf6d5ae609e1e7030c93

See more details on using hashes here.

Provenance

The following attestation bundles were made for uvrun-0.1.5.tar.gz:

Publisher: publish.yml on SimonB97/uvrun

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

File details

Details for the file uvrun-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: uvrun-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for uvrun-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4c2f0e5cadc6e0f89560d2d2ea87e812c8a178693a1ab97e9bb57be77493a8b8
MD5 3873fb49e0813d5f0c6c7be60922e4b4
BLAKE2b-256 c2a02c9d26c37a166bc30acf2106e5087a7728851742cfb9b8eb62cb2a0a9c2f

See more details on using hashes here.

Provenance

The following attestation bundles were made for uvrun-0.1.5-py3-none-any.whl:

Publisher: publish.yml on SimonB97/uvrun

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