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 details)
Built Distribution
File details
Details for the file flexidispatch-0.0.5.tar.gz
.
File metadata
- Download URL: flexidispatch-0.0.5.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9b5a9178230802b532bd309a3196700c3b737e0b227626b30cfd5dd8534aa6b |
|
MD5 | 98bf8402ed09a59c363d4ff9da353657 |
|
BLAKE2b-256 | cd14ad27c97ced08947722704041f978fef0666a1051a7efc4c4d6464610b4ae |
File details
Details for the file flexidispatch-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: flexidispatch-0.0.5-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f0630c5f8a309a2d3a332325c0c4612b517ebac2b6b4cd88d29c360a983786c |
|
MD5 | 0e68758559d670f7607c24d69b12b96c |
|
BLAKE2b-256 | 9afa83708ed980739f23a48074e71b0b0f4a0301860196753ca9d7d5e52a7b97 |