Skip to main content

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.

PyPI Version GitHub Release PyPI Downloads GitHub License


✳️ 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)

Source distribution for ranno 0.5.0
File Size Uploaded
ranno-0.5.0.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ranno 0.5.0
File Interpreter ABI Platform
ranno-0.5.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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