ombharati/spreadsheet-engine ? reverse-engineered prompt

Reverse engineered prompt

Build me a small spreadsheet app in Python that runs in the terminal and feels like a tiny version of Excel.

I want to be able to set cells like A1 and B2 to either plain numbers or formulas, then have the dependent cells update automatically when something changes. Please support basic math, parentheses, and common functions like SUM, AVERAGE, MIN, MAX, and IF, including ranges like A1:A5. If a formula creates a circular reference, show a clear error instead of crashing.

It should also have simple commands to get a cell, clear one, save the sheet to a JSON file, load it back, and export the evaluated results to CSV. A neat ASCII grid view in the terminal would be great too, along with a demo mode and a help command so it is easy to try.

Keep it lightweight, using only standard Python libraries, and make the interactive loop pleasant to use.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab