Skip to main content

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 of l: list
  • Automatically invoke argument initializers based on payload id
    • e.g. call def get_price_list() -> 'price_list'
  • Simplify end-user code

Quick-demo

  1. Install polimer
pip install polimer
  1. 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)
  1. Import your entrypoints via polimer
demo.py
from prices import *
from polimer import prices

print(prices.calc_avg_price())

Project details


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

If you're not sure about the file name format, learn more about wheel file names.

polimer-0.0.2-2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

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

Hashes for polimer-0.0.2-2-py3-none-any.whl
Algorithm Hash digest
SHA256 d78809f3f0c35d022141bbcb5ab99dbfce2911caf4755cf78b2459a81fe9a3fc
MD5 0bb30d891e5e13ef0cfc6e94c7033bca
BLAKE2b-256 a95c81af94d8edfe913b2b97f374fa0cfeaaf9d5e8ba856fc21e34066bed6210

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page