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
Metadata
Release files for ranno 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ranno-0.5.0.tar.gz | 6.0 kB | Without provenance | Details for ranno-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ranno-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for ranno-0.5.0-py3-none-any.whl |
Total release size: 12.0 kB
Release files / ranno-0.5.0.tar.gz
| Download URL | ranno-0.5.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c4f3b7f6c496b2ce00f091a091bb778a9c684f4aae242d73142a817599b95e1
|
|
BLAKE2b-256 checksum How to use checksums |
b852f0a18ae9c85a70973eedcf7303f1ca949eb10fca338e8354e45faaec4863
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / ranno-0.5.0-py3-none-any.whl
| Download URL | ranno-0.5.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c05c0fb7e180f8725f7f57b06970d822b2f84191c3730121e07296d73e0ba521
|
|
BLAKE2b-256 checksum How to use checksums |
ab2ccd754ab72b1bc5db558bc5dab1a40b23e0d8653282af32e7347e33def3ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for ranno 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.