Skip to main content

All in Jarvis!

Project description

All in Jarvis

Jarvis是一个基于工作流的计算框架,用以简化工程和算法的协同开发。

一、Install

pip install jarvis-python

二、Example

在jarvis中编写Flow和编写普通的python函数一样简单,如下:

import jarvis
import asyncio


@jarvis.operator()
async def add(a, b):
    await asyncio.sleep(1)
    return a + b


@jarvis.operator()
async def sub(a, b):
    await asyncio.sleep(1)
    return a - b


@jarvis.flow()
async def demo(a, b):
    c = await add(a, b)
    d = await sub(a, b)
    if a < b:
        return d
    else:
        return c

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

jarvis_python-1.0.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file jarvis_python-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for jarvis_python-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3e00596d5aba9e646ba5425834d6c1d04a4a066e2f9b8683b41b988bc2af34a
MD5 1094bdd44f8572cef1ee9b2e7da272e4
BLAKE2b-256 3b46a890ba4bbd1434f9d88aaa376b7b54da4006001afd40ad990e233dd1b2a9

See more details on using hashes here.

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