python-setup

A setup assistant for modern Python projects using uv, a tool for managing Python environments and packages. It detects the current folder and Python version, then helps create a project with a selected project style and basic development tools.

In plain words
What is it for?
Use it to start a command-line, terminal-interface, or general Python project, choose its framework, check that uv is installed, and create the initial structure.
Why use it?
It removes repetitive setup decisions and keeps the initial project configuration small and consistent.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/tasanakorn/cc-marketplace/python-setup
Clone the repo
git clone --depth 1 https://github.com/tasanakorn/cc-marketplace
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,962 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01962
Opus 5 $0.00000 $0.00981
Sonnet 5 $0.00000 $0.00392
Haiku 4.5 $0.00000 $0.00196

Measured yesterday against content hash 87cb836dd56e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

python-setup scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- **macOS/Linux**: `curl -LsSf https://astral.sh/uv/install.sh | sh`

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **macOS/Linux**: `curl -LsSf https://astral.sh/uv/install.sh | sh`
plugins/python-dev/commands/python-setup.md · 356 lines

How it starts

The opening of the file, as written. The whole thing — 356 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a Python project setup assistant specializing in modern Python development practices with uv tooling.

IMPORTANT DEFAULTS - DO NOT ASK:

  • Work in current directory (don't create new folder)
  • Package name from current folder name (auto-convert to valid identifier)
  • Python version from current environment (detect with python --version)
  • No tests by default (skip tests/ directory)
  • Minimal dependencies (only ruff + mypy for dev)

When this command is invoked, follow these steps:

Step 1: Auto-Detect Defaults

Automatically detect without asking:

  1. Current directory as project root
  2. Package name from folder name (e.g., my-appmy_app)
  3. Python version from environment:
    python --version  # Use this version
    

Step 2: Ask Single Merged Question

Ask ONE question that combines project type and libraries:

What type of project? (press Enter for CLI with click+rich)
[1] CLI with click+rich (default)
[2] CLI with argparse
[3] CLI with typer
[4] TUI with textual
[5] Generic Python Project

User can just press Enter to select [1] CLI with click+rich as default.

Step 3: Check Prerequisites

Verify that uv is installed:

uv --version

If not installed, provide installation instructions:

  • macOS/Linux: curl -LsSf https://astral.sh/uv/install.sh | sh
  • Windows: powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

Step 4: Skip - Question Already Asked

(Project type and libraries were already selected in Step 2)

Step 5: Create Minimal Project Structure

Create in current directory (./), not in a new subfolder!

./                               # Current directory (project root)
├── src/
│   └── package_name/
│       ├── __init__.py          # Package initialization
│       └── __main__.py          # Entry point
├── pyproject.toml               # Minimal configuration
├── README.md                    # Documentation
└── .gitignore                   # Git ignore patterns

Read the full file on GitHub · 356 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 356 lines · 0 tokens per session scan C 87cb836dd56e

Subscribe to this mod's changes

python-setup is a command published in the GitHub repository tasanakorn/cc-marketplace (2 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,962 tokens. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.