Skip to main content

A description of your project

Project description

Flexidispatch

to dispatch according to arbitary criteria

Install

pip install flexidispatch

How to use

Fill me in please! Don't forget code examples:

process = Multimethod("processing payload", lambda x: x["framework"])

@process.add("polaris")
def f(x):
    return "I am polaris"

@process.add("vega")
def f(x):
    return "I am vega"
process({
    "framework":"polaris",
    "scores":{"P":1,"O":1}
})
'I am polaris'
process({
    "framework":"vega",
    "x":[1,2],
    "scores":{"V":1,"E":1}
})
'I am vega'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flexidispatch-0.0.5.tar.gz (8.4 kB view hashes)

Uploaded Source

Built Distribution

flexidispatch-0.0.5-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

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