>_ CLI Index
← Back

Python 3

Built-in v3.13

General-purpose programming language with batteries included

Agent Support
3/5
Platforms
macoslinuxwindows

Agent Usage Example

shell
python3 -c "import json; print(json.dumps({'key': 'value'}, indent=2))"

Installation

brew install python@3.13

Python 3 is the most popular general-purpose programming language in the world, known for its readable syntax and extensive standard library. Pre-installed on macOS and most Linux distributions, it serves as a universal scripting tool that bridges quick one-liners and full application development.

AI agents leverage the Python interpreter for tasks that go beyond what shell utilities can handle — data transformation, mathematical computation, file manipulation with rich libraries, and quick prototyping. The -c flag allows executing inline Python expressions directly from the command line, making it a powerful complement to shell pipes.

Python’s standard library covers JSON processing, HTTP requests, CSV handling, regular expressions, file system operations, and much more — all without installing any third-party packages. This “batteries included” philosophy makes it a reliable tool in environments where package installation may be restricted.

Related Tools