Automated callstack synthesis framework (annotations-based)
Project description
polimer
polimer is an automated callstack synthesis framework (based on annotations)
Basic idea
- 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
Quick-demo
- Install polimer
pip install polimer
- Annotate your methods with payload ids:
prices.py
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
demo.py
from prices import *
from polimer import prices
print(prices.calc_avg_price())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file polimer-0.0.2-2-py3-none-any.whl.
File metadata
- Download URL: polimer-0.0.2-2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d78809f3f0c35d022141bbcb5ab99dbfce2911caf4755cf78b2459a81fe9a3fc
|
|
| MD5 |
0bb30d891e5e13ef0cfc6e94c7033bca
|
|
| BLAKE2b-256 |
a95c81af94d8edfe913b2b97f374fa0cfeaaf9d5e8ba856fc21e34066bed6210
|