python

Create and manage Python projects with uv inline metadata and virtual environments.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/pascalandy/dotfiles --skill python-pascalandy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python
Source: https://github.com/pascalandy/dotfiles/tree/main/dot_config/opencode/skill/std-python
Command: npx skills add https://github.com/pascalandy/dotfiles --skill python-pascalandy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill streamlines Python project development by leveraging uv's single-file script format, inline metadata, and integrated environment management to reduce setup time and friction.

Core Features & Use Cases

  • Single-file scripting: Create self-contained Python scripts with PEP 723 inline metadata for easy sharing and execution.
  • Project scaffolding: Manage multi-file projects with virtual environments, pinned Python versions, and dependency handling.
  • Use Case: When starting a new automation or CLI tool, use uv to quickly prototype, test, and run scripts in isolated environments.

Quick Start

Use the uv workflow to create and run Python scripts, pin a Python version, and manage a virtual environment without manual setup.

Frequently Asked Questions about python

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

FAQPage Schema
What is uv's single-file script format and how does it handle Python dependencies?

Uv's single-file script format uses PEP 723 inline metadata to declare dependencies directly within the script. This allows uv to automatically create isolated environments and install required packages, making scripts self-contained and easy to share.

How do I create a Python project with a pinned Python version and virtual environment using uv?

To create a Python project with uv, use its CLI commands to scaffold a multi-file project. Uv manages virtual environment creation and pins specific Python versions, handling dependency installation automatically within the isolated project environment.

Do I need Python 3.10 or uv installed to use PEP 723 inline metadata?

Yes, this workflow requires both the uv CLI and Python 3.10 or higher installed. These prerequisites are necessary to define PEP 723 inline metadata, pin Python versions, and execute scripts within isolated environments.

What's the best way to manage Python project automation and reduce environment setup friction?

Using uv for Python project automation streamlines development by integrating single-file script execution and venv management. This approach reduces setup friction by handling dependency resolution and environment isolation automatically.

Can I use uv for both single-file Python scripts and multi-file project scaffolding?

Yes, uv supports both single-file scripts with PEP 723 inline metadata and multi-file project scaffolding. It handles venv creation, dependency management, and project tooling across both use cases.

Why does my uv Python script fail to execute in an isolated environment?

If a uv Python script fails to execute, it may be due to incorrect inline metadata formatting or missing Python 3.10+ and uv CLI prerequisites. Ensure dependencies are properly declared using PEP 723 syntax for isolated environment execution.