title: Ranno emoji: 🦖 colorFrom: gray colorTo: yellow sdk: docker pinned: false app_port: 7860 short_description: Python Library
Ranno
Ranno is a lightweight Python Library that converts prompts into fully-functional Python scripts, scans dataset columns automatically, and runs code safely with automated rollback file protection.
✳️ SDK
Installation
pip install ranno
# or
uv add ranno
Generate Code (gn)
from ranno import gn
# Generate code silently
code = gn("Create a list of 10 dinosaurs")
print(code)
# Generate code with dataset context
dataset_code = gn("Find the average salary", data="employees.csv")
print(dataset_code)
Execute Code (ex)
from ranno import ex
# Execute prompt instantly
ex("print('Hello from Ranno execution context')")
# Execute tasks with dataset context
ex("Plot salary vs department", data="employees.csv")
Explain Code & Scripts (xp)
from ranno import xp
# Explain prompt directly
explanation = xp("Explain how quicksort works in Python")
print(explanation)
# Explain local .py script file
file_explanation = xp("Explain this code", data="script.py")
print(file_explanation)
Save Code to File (sv)
from ranno import gn, sv
# Generate code silently
code = gn("Download image from URL")
# Save it to a file
sv(code, name="file.py")
Custom Configuration (cf)
from ranno import gn, ex, xp, cf
# Configure custom credentials and model
my_config = cf(api_key="api_key", model="model_name")
# Run generation with custom config
print(gn("Plot a sine wave", config=my_config))
# Run execution with custom config
ex("Plot correlation heatmap", data="data.csv", config=my_config)
# Run explanation with custom config
print(xp("Explain decorators", config=my_config))
✳️ Features
| FEATURE | DESCRIPTION |
|---|---|
| AI Code Generation | Turns plain English prompts into full, runnable Python scripts using gn() |
| Instant Execution | Runs AI-generated Python code directly inside local scope using ex() |
| Code Explanation | Explains Python prompts or .py script files step-by-step using xp() |
| AI File Intelligence | Auto-detects column names, types, and schemas of local CSV, Excel, or JSON files |
| Shadow Copy Integrity | Creates a hidden copy. snapshot before execution; restores on failure |
| Ultra Minimalism | Five functions (gn, ex, xp, sv, cf) is all you need - zero boilerplate |
✳️ Architecture
| # | COMPONENT | DESCRIPTION | STACK |
|---|---|---|---|
| 1️⃣ | Ranno SDK | Client-side library handling data prep & execution | Python, Magika, Pandas |
| 2️⃣ | Ranno API | Backend service for secure code generation | FastAPI, Hugging Face, Gemini |
| 3️⃣ | Ranno Docs | Official documentation & web interface | Next.js, Tailwind, Vercel |
Made with 🦖 by Saptarshi Roy
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 ranno-0.5.0.tar.gz.
File metadata
- Download URL: ranno-0.5.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c4f3b7f6c496b2ce00f091a091bb778a9c684f4aae242d73142a817599b95e1
|
|
| MD5 |
455c24a95ec16a0c2739a01632e667f5
|
|
| BLAKE2b-256 |
b852f0a18ae9c85a70973eedcf7303f1ca949eb10fca338e8354e45faaec4863
|
File details
Details for the file ranno-0.5.0-py3-none-any.whl.
File metadata
- Download URL: ranno-0.5.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c05c0fb7e180f8725f7f57b06970d822b2f84191c3730121e07296d73e0ba521
|
|
| MD5 |
b941b10ff812863b8d03810cac62411c
|
|
| BLAKE2b-256 |
ab2ccd754ab72b1bc5db558bc5dab1a40b23e0d8653282af32e7347e33def3ef
|