Skip to main content

SuperPython Agent Banner

LLM-powered assistant for every Python package you import.
Just add .superpython.ask("your question") to any module.

PyPI version CI Status GitHub stars


🧠 SuperPython Agent

SuperPython Agent automatically injects a .superpython assistant into every package you import. Ask questions about the library you're using, get help with errors, and explore code with syntax-highlighted answers — all powered by an LLM.


🎥 Demo

(Click to view full video)

https://github.com/superpandas-ai/superpython/assets/demo.gif
or
https://loom.com/share/superpython-demo-link


❓ Why SuperPython?

There are thousands of Python libraries, but their docs aren't always intuitive. SuperPython fills that gap:

  • You don't need to search Stack Overflow every time you forget a method.
  • You get context-aware help, including recent exceptions and object summaries.
  • It's built for exploration — whether you're using a notebook, REPL, or script.

✨ Features

  • 💬 Ask any module .superpython.ask("How do I do X?")
  • 💡 Smart context: recent errors + object summaries
  • 🧩 Auto-attaches to every import
  • 💾 Caches answers to avoid repeated API calls
  • 🎨 Syntax-highlighted output with pygments
  • 🧠 IPython magic: %super pandas how to merge?

🚀 Getting Started

1. Install

pip install superpython

2. Import It

import superpython

It hooks into all future imports.

🧪 Usage Examples

Inline Python

import matplotlib

matplotlib.superpython.ask("how to make a scatter plot?")

In Jupyter / IPython

%load_ext superpython

%super numpy how to generate random numbers?

Programmatic

from superpython import agent

agent.ask("requests", "how do I send a POST request?")

🔧 Requirements

  • openai
  • ipywidgets
  • pygments
  • ipython

(Installed automatically.)

🧠 Project Structure

superpython_agent/
├── superpython/
│   ├── agent.py
│   ├── cache.py
│   ├── context.py
│   ├── import_hook.py
│   ├── ipython_magics.py
│   ├── widgets.py
│   └── __init__.py
├── setup.py
├── pyproject.toml
└── README.md

🤝 Contributing

SuperPython is early-stage — PRs and ideas welcome!

  • Want to support other LLMs?
  • Want advanced caching or error tracing?
  • Want to auto-annotate cells with answers?

Open an issue or submit a PR. 💥

🧷 License

MIT © 2025 SuperPandas Ltd

Metadata

Release files for superpython-agent 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for superpython-agent 0.0.1
File Size Uploaded
superpython_agent-0.0.1.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for superpython-agent 0.0.1
File Interpreter ABI Platform
superpython_agent-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.3 kB

Release files / superpython_agent-0.0.1.tar.gz

Download URL superpython_agent-0.0.1.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2f1955a57d38e3368384cc7d34cc947ae7603559a6d27b8ae9f0ea0ed1e2f165
BLAKE2b-256 checksum
How to use checksums
f7eeb0a8ecee8d2aac8562031eeaa49438b6c6cd8cb386d9b67a80ffd157a0b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.13

Release files / superpython_agent-0.0.1-py3-none-any.whl

Download URL superpython_agent-0.0.1-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
865be4ba6bebb4c2c0c0a644215b7447d595665d9ea7754e1c2d7700c0b324ce
BLAKE2b-256 checksum
How to use checksums
c29285e3da0be1ecf6c06f36bb140a083e316e23bc48535933e92b312ffd2b2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.13

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page