python-inline-scripts
Apps & AutomationGuide for running inline Python scripts with uv
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/jahands/workers-monorepo-template/blob/HEAD/.agents/skills/python-inline-scripts/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/python-inline-scripts, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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
)