Name | pipen-annotate JSON |
Version |
0.14.1
JSON |
| download |
home_page | None |
Summary | Use docstring to annotate pipen processes |
upload_time | 2024-12-20 04:09:40 |
maintainer | None |
docs_url | None |
author | pwwang |
requires_python | <4.0,>=3.9 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# pipen-annotate
Use docstring to annotate [pipen](https://github.com/pwwang/pipen) processes
## Installation
```shell
pip install -U pipen-annotate
```
## Usage
```python
from pprint import pprint
from pipen import Proc
from pipen_annotate import annotate
class Process(Proc):
"""Short description
Long description
Input:
infile: An input file
invar: An input variable
Output:
outfile: The output file
Envs:
ncores (type=int): Number of cores
"""
input = "infile:file, invar"
output = "outfile:file:output.txt"
args = {'ncores': 1}
annotated = annotate(Process)
# returns:
{'Envs': {'ncores': {'attrs': {'type': 'int'},
'help': 'Number of cores',
'name': 'ncores',
'terms': {}}},
'Input': {'infile': {'attrs': {'action': 'extend',
'itype': 'file',
'nargs': '+'},
'help': 'An input file',
'name': 'infile',
'terms': {}},
'invar': {'attrs': {'action': 'extend',
'itype': 'var',
'nargs': '+'},
'help': 'An input variable',
'name': 'invar',
'terms': {}}},
'Output': {'outfile': {'attrs': {'default': 'output.txt', 'otype': 'file'},
'help': 'The output file',
'name': 'outfile',
'terms': {}}},
'Summary': {'long': 'Long description', 'short': 'Short description'}}
```
Raw data
{
"_id": null,
"home_page": null,
"name": "pipen-annotate",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": null,
"author": "pwwang",
"author_email": "pwwang@pwwang.com",
"download_url": "https://files.pythonhosted.org/packages/a7/5a/dafdf628021db7fc230fa5686afe71ea2dd1b5387e1a3a0a57c70246a383/pipen_annotate-0.14.1.tar.gz",
"platform": null,
"description": "# pipen-annotate\n\nUse docstring to annotate [pipen](https://github.com/pwwang/pipen) processes\n\n## Installation\n\n```shell\npip install -U pipen-annotate\n```\n\n## Usage\n\n```python\nfrom pprint import pprint\nfrom pipen import Proc\nfrom pipen_annotate import annotate\n\n\nclass Process(Proc):\n \"\"\"Short description\n\n Long description\n\n Input:\n infile: An input file\n invar: An input variable\n\n Output:\n outfile: The output file\n\n Envs:\n ncores (type=int): Number of cores\n \"\"\"\n input = \"infile:file, invar\"\n output = \"outfile:file:output.txt\"\n args = {'ncores': 1}\n\nannotated = annotate(Process)\n# returns:\n{'Envs': {'ncores': {'attrs': {'type': 'int'},\n 'help': 'Number of cores',\n 'name': 'ncores',\n 'terms': {}}},\n 'Input': {'infile': {'attrs': {'action': 'extend',\n 'itype': 'file',\n 'nargs': '+'},\n 'help': 'An input file',\n 'name': 'infile',\n 'terms': {}},\n 'invar': {'attrs': {'action': 'extend',\n 'itype': 'var',\n 'nargs': '+'},\n 'help': 'An input variable',\n 'name': 'invar',\n 'terms': {}}},\n 'Output': {'outfile': {'attrs': {'default': 'output.txt', 'otype': 'file'},\n 'help': 'The output file',\n 'name': 'outfile',\n 'terms': {}}},\n 'Summary': {'long': 'Long description', 'short': 'Short description'}}\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Use docstring to annotate pipen processes",
"version": "0.14.1",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1715e293bb16ebcb3ff7b0b5238ce2a0902ab3ae723eb2f0331a015ed83eba1e",
"md5": "9ae9f8dfb28a7d023eed8bdf3c8bf1c8",
"sha256": "1b40f9d1728ae176e4bd81d85f0851f422fd2a57dc6c190fc99dd0b64faf1f52"
},
"downloads": -1,
"filename": "pipen_annotate-0.14.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9ae9f8dfb28a7d023eed8bdf3c8bf1c8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 9869,
"upload_time": "2024-12-20T04:09:38",
"upload_time_iso_8601": "2024-12-20T04:09:38.413322Z",
"url": "https://files.pythonhosted.org/packages/17/15/e293bb16ebcb3ff7b0b5238ce2a0902ab3ae723eb2f0331a015ed83eba1e/pipen_annotate-0.14.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a75adafdf628021db7fc230fa5686afe71ea2dd1b5387e1a3a0a57c70246a383",
"md5": "2683472c4be0fbe0dc2a06836d9c462a",
"sha256": "71df47a31cac21800ec611f0707d788a78d1992765c26731c4341432d75e0ffa"
},
"downloads": -1,
"filename": "pipen_annotate-0.14.1.tar.gz",
"has_sig": false,
"md5_digest": "2683472c4be0fbe0dc2a06836d9c462a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 9566,
"upload_time": "2024-12-20T04:09:40",
"upload_time_iso_8601": "2024-12-20T04:09:40.825025Z",
"url": "https://files.pythonhosted.org/packages/a7/5a/dafdf628021db7fc230fa5686afe71ea2dd1b5387e1a3a0a57c70246a383/pipen_annotate-0.14.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-20 04:09:40",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pipen-annotate"
}