uv-oneliners

Create ephemeral Python environments with uv run and --with package specs.

60|13|Updated Dec 22, 2025
One-click install
npx skills add https://github.com/plurigrid/asi --skill uv-oneliners
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uv-oneliners
Source: https://github.com/plurigrid/asi/tree/main/skills/uv-oneliners
Command: npx skills add https://github.com/plurigrid/asi --skill uv-oneliners

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

UV Oneliners enables zero-install Python execution by creating ephemeral environments on demand with a chosen set of packages, letting you run multi-package scripts without managing virtual environments or dependencies.

Core Features & Use Cases

  • Ephemeral environments: Run scripts with --with pkg1 --with pkg2 without setup.
  • Diverse stacks: Includes AI/ML, visualization, data processing, development tools, and web/api stacks.
  • Rapid experimentation: Quickly prototype ideas across stacks without installation overhead.

Quick Start

uv run --with matplotlib --with numpy -c "import matplotlib.pyplot as plt; plt.plot([1,2,3]); plt.savefig('/tmp/plot.png')"

Frequently Asked Questions about uv-oneliners

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Python scripts with multiple packages without installing them first?

Ephemeral environments let you execute Python code with arbitrary package combinations on demand using uv run --with pkg1 --with pkg2, creating isolated contexts that disappear after execution without virtualenv or requirements.txt overhead.

Can I use uv to quickly prototype scripts across different package stacks?

Yes. uv run supports composing diverse stacks—AI/ML, data processing, visualization, and development tools—on the fly, letting you experiment rapidly by specifying packages directly in the command without setup or installation.

What's the best way to run one-off Python scripts with dependencies I don't want to install globally?

Use uv run with --with flags to provision packages for that execution only. This approach isolates dependencies per run, avoiding pollution of your system or project environment while maintaining reproducibility.

Do I need a virtual environment or requirements.txt to run multi-package Python code?

No. Ephemeral environments created via uv run --with eliminate the need for virtualenv setup or dependency files, letting you execute complex multi-package workflows directly from the command line with on-demand provisioning.

How do I create reproducible Python execution contexts for quick experiments without installation overhead?

Specify packages inline with uv run --with pkg1 --with pkg2 to build reproducible ephemeral contexts on demand. Each invocation provisions an isolated environment, runs your script, and cleans up automatically.