All in Jarvis!
Project description
All in Jarvis
Jarvis是一个基于工作流的计算框架,用以简化工程和算法的协同开发。
一、Install
pip install jarvis
二、Flow
在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
File details
Details for the file jarvis_python-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: jarvis_python-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6297ea68e0edc1ea02bcbb416546935fd10e836c29a2764448b321f4703c8f66 |
|
MD5 | 02f7e9de986bc54a4e944692ab4852b1 |
|
BLAKE2b-256 | 6d972664b9baf7e835288e5cce5c32af0ce396427f322db99947c51959b07b9f |