LLM assistant for Python packages in REPLs and notebooks
Project description
LLM-powered assistant for every Python package you import.
Just add .superpython.ask("your question") to any module.
🧠 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file superpython_agent-0.0.1.tar.gz.
File metadata
- Download URL: superpython_agent-0.0.1.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f1955a57d38e3368384cc7d34cc947ae7603559a6d27b8ae9f0ea0ed1e2f165
|
|
| MD5 |
830be0edb76e2e858d075a6f2251f446
|
|
| BLAKE2b-256 |
f7eeb0a8ecee8d2aac8562031eeaa49438b6c6cd8cb386d9b67a80ffd157a0b5
|
File details
Details for the file superpython_agent-0.0.1-py3-none-any.whl.
File metadata
- Download URL: superpython_agent-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
865be4ba6bebb4c2c0c0a644215b7447d595665d9ea7754e1c2d7700c0b324ce
|
|
| MD5 |
4017ef8a2453e0c186ec244d651b1b96
|
|
| BLAKE2b-256 |
c29285e3da0be1ecf6c06f36bb140a083e316e23bc48535933e92b312ffd2b2a
|