Python Examples
Basic functions
import xllify
@xllify.fn("xllipy.Hello")
def hello(name: str) -> str:
return f"Hello, {name}!"
@xllify.fn("xllipy.Add")
def add(a: float, b: float) -> float:
return a + bSlow operations
All Python functions run asynchronously, so slow operations don't freeze Excel:
@xllify.fn("xllipy.SlowCalc")
def slow_calc(seconds: float) -> str:
import time
time.sleep(seconds)
return f"Done after {seconds}s"Working with ranges
Usage: =xllipy.MaxInRange(A1:Z100)
Black-Scholes option pricing
Usage: =xllipy.BSCall(100, 95, 0.25, 0.05, 0.2)
HTTP requests
Error handling
System info
Pandas integration
Last updated