jarvis-python


Namejarvis-python JSON
Version 1.0.3 PyPI version JSON
download
home_page
SummaryAll in Jarvis!
upload_time2023-11-01 04:54:53
maintainer
docs_urlNone
authorkillf
requires_python>=3.7
license
keywords workflow
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            All in Jarvis
====

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


# 一、Install

```shell
pip install jarvis-python
```

# 二、Example

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

```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
```



            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "jarvis-python",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "workflow",
    "author": "killf",
    "author_email": "",
    "download_url": "",
    "platform": null,
    "description": "All in Jarvis\n====\n\n> Jarvis\u662f\u4e00\u4e2a\u57fa\u4e8e\u5de5\u4f5c\u6d41\u7684\u8ba1\u7b97\u6846\u67b6\uff0c\u7528\u4ee5\u7b80\u5316\u5de5\u7a0b\u548c\u7b97\u6cd5\u7684\u534f\u540c\u5f00\u53d1\u3002\n\n\n# \u4e00\u3001Install\n\n```shell\npip install jarvis-python\n```\n\n# \u4e8c\u3001Example\n\n\u5728jarvis\u4e2d\u7f16\u5199Flow\u548c\u7f16\u5199\u666e\u901a\u7684python\u51fd\u6570\u4e00\u6837\u7b80\u5355\uff0c\u5982\u4e0b\uff1a\n\n```python\nimport jarvis\nimport asyncio\n\n\n@jarvis.operator()\nasync def add(a, b):\n    await asyncio.sleep(1)\n    return a + b\n\n\n@jarvis.operator()\nasync def sub(a, b):\n    await asyncio.sleep(1)\n    return a - b\n\n\n@jarvis.flow()\nasync def demo(a, b):\n    c = await add(a, b)\n    d = await sub(a, b)\n    if a < b:\n        return d\n    else:\n        return c\n```\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "All in Jarvis!",
    "version": "1.0.3",
    "project_urls": null,
    "split_keywords": [
        "workflow"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5d2cf19e3abdcdb0fb47182bafa332f49e733888e35f685ee4deb06a0f9e7c7a",
                "md5": "c1b3331199417119a9195115be3b0999",
                "sha256": "1b44c84bc575316f2ee38ee632debdadd8a54e6da248c63fcce69380f4ca96c9"
            },
            "downloads": -1,
            "filename": "jarvis_python-1.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c1b3331199417119a9195115be3b0999",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 3188,
            "upload_time": "2023-11-01T04:54:53",
            "upload_time_iso_8601": "2023-11-01T04:54:53.576820Z",
            "url": "https://files.pythonhosted.org/packages/5d/2c/f19e3abdcdb0fb47182bafa332f49e733888e35f685ee4deb06a0f9e7c7a/jarvis_python-1.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-01 04:54:53",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "jarvis-python"
}
        
Elapsed time: 0.53806s