polimer is an automated callstack synthesis framework (based on annotations)
- Define annotations based on payload id (not just type id)
- e.g.
l: 'price_list'
insead ofl: list
- e.g.
- Automatically invoke argument initializers based on payload id
- e.g. call
def get_price_list() -> 'price_list'
- e.g. call
- Simplify end-user code
- Install polimer
pip install polimer
- Annotate your methods with payload ids:
import random
def get_prices(length=10) -> 'price_list':
return [random.random() for _ in range(length)]
def calc_avg_price(p: 'price_list'):
return sum(p) / len(p)
- Import your entrypoints via polimer
from prices import *
from polimer import prices
print(prices.calc_avg_price())