Files
recflare/.agents/skills/python-inline-scripts/SKILL.md
T
Devin Zuczek 8e644a5c20 Initial commit
2026-06-08 18:23:40 -04:00

556 B

name, description
name description
python-inline-scripts Guide for running inline Python scripts with uv

Python Inline Scripts with uv

IMPORTANT

  • NEVER add stdlib modules like json, os, re, etc. to dependencies OR THE SCRIPT WILL FAIL
  • ALWAYS assume Python 3.12+

Example

uv run --no-project -q --script - < <(cat <<'EOF'
# /// script
# # ONLY add dependencies array if you need PyPi packages
# dependencies = [
#   "httpx"
# ]
# requires-python = ">=3.12"
# ///

import httpx
print(httpx.get("https://api.github.com/zen").text)
EOF
)