ai-agent

Pythran

Ahead of Time compiler for numeric kernels
2,141 stars201 forksC++Updated 8/29/2026100% free · open source
What it does

Pythran compiles pure‑Python numeric code into optimized C++ extensions so the code runs at native C++ speed.

When to use it
  • You have CPU‑bound loops (e.g., large matrix ops) written in Python that are too slow.
  • You need a speed boost but don’t want to rewrite the algorithm in C++ or Cython.
  • Your data‑science pipeline uses NumPy‑compatible code and you want a drop‑in faster binary.
Ready-to-paste prompt
```bash
# 1️⃣ Write kernel.py
cat > kernel.py <<'EOF'
# pythran export matmul(float64[][], float64[][])
import numpy as np

def matmul(a, b):
    return a @ b
EOF

# 2️⃣ Compile
pythran kernel.py

# 3️⃣ Use in Python
python - <<'PY'
import numpy as np
from kernel import matmul
A = np.random.rand(1000, 1000)
B = np.random.rand(1000, 1000)
print(matmul(A, B).shape)
PY
```
Heads up: Pythran requires a working C++ compiler (g++ ≥ 4.9 or clang) and the same NumPy version at compile‑time and run‑time; mismatched versions will cause import errors.
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/pythran && curl -fsSL https://workflowstacks.com/api/skills/pythran/claude-skill -o ~/.claude/skills/pythran/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How Pythran works
Codeflow
Free to inspect

Pythran is a very large C++ project (~587k lines across 4213 code files, plus 429 test files). Setup is light: installs like a normal app. Reading the code is optional. Last commit this month, BSD-3-Clause license, has a test suite.

Size
Very large codebase
~587k lines · 4213 code files · days to read — use, don't read
Setup
One-command install
Installs like a normal app. Reading the code is optional.
Runs on
Python
No API keys detected
C++ 91%Python 8%C 1%
Where to start reading
  1. 1
    README.rst
    Start here — what it does and how to install it
  2. 2
    pythran/run.py
    Where the program starts running
  3. 3
    pyproject.toml
    Dependencies and the commands it exposes
  4. 4
    pythran/__init__.py
    Inside pythran/ — the main logic begins here
What's in each folder
pythran/Core code — the actual logic4580 files
docs/Documentation178 files
website/Project website2 files
omp/Folder1 files
.github/CI / automation (GitHub Actions)14 files
READMEHas testsDocumentedCI checksBSD-3-Clause licenseUpdated this month
Quick Actions
Details
Creator
serge-sans-paille
Language
C++
Category
ai-agent
Published
5/29/2012

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.