Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There's a library for simulating the Excel calculation engine in Python. It uses annotations to hint functions, but according to Excel's type system, not Python's. Then at runtime, those hints are used to do conversion and promotion based on how Excel does it, so you can do e.g. the equivalent of "1" + 1 and get 2.

It's either xlcalculator or pycel, one of the two. I forgot which one does it that way.






Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: