Self-Contained Python Script, CLI & Parser Code Synthesizer
synthesize_python_automation_codeGenerate PEP 8-compliant, self-contained Python 3 automation scripts, parsers, and CLI utilities from functional specifications, with type hints, docstrings, and inline tests.
Instructions
Synthesizes PEP 8 compliant, self-contained Python 3 scripts, data parsers, and CLI utilities complete with type hints, docstrings, and inline assertion tests. Use when generating a standalone Python automation script or parser from a functional specification; for summarizing existing documentation or codebases into executive bullet points, use summarize_technical_document instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'prompt' ('dependency_policy' defaults to 'stdlib_only'), supports '?demo=true' or L402 (300 sats), and returns HTTP 400 if invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Functional specification, input/output formats, and edge cases for the Python script. | |
| dependency_policy | No | Allowed library dependencies in generated code; defaults to 'stdlib_only' when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Code synthesis model executed ('gemini-4-argon'). | |
| output | Yes | Complete Python 3 source code with inline verification assertions. | |
| success | Yes | True when code synthesis succeeded. | |
| stdlib_only | Yes | True if the generated script requires zero third-party pip packages. |