Name | nerdd-link JSON |
Version |
0.2.16
JSON |
| download |
home_page | None |
Summary | Run a NERDD module as a service |
upload_time | 2025-01-26 11:50:29 |
maintainer | None |
docs_url | None |
author | None |
requires_python | None |
license | MIT License
Copyright (c) 2023 Molecular Informatics Vienna
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
|
keywords |
science
research
development
nerdd
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# NERDD-Link
Run a [NERDD module](https://github.com/molinfo-vienna/nerdd-module) as a
service that consumes input molecules and produces prediction tuples.
## Installation
```bash
pip install -U nerdd-link
```
## Usage
When a class inherits from ```nerdd_module.AbstractModel``` (see
[NERDD Module Github page](https://github.com/molinfo-vienna/nerdd-module)), it can be
used to create a Kafka service.
```bash
# run a Kafka service for NerddModel on localhost:9092
run_nerdd_server package.path.to.NerddModel
# modify broker url, input topic and batch size
run_nerdd_server package.path.to.NerddModel \
--broker-url my-cluster-kafka-bootstrap.kafka:9092 \
--input-topic examples \
--batch-size 10
# more information via --help
run_nerdd_server --help
```
If the model class is called ```ExamplePredictionModel```, the server will read input
tuples from the input topic ```example-prediction-inputs``` in batches of size 100
and write results to the ```results``` topic. The batch size specifies the number
of input tuples that are given to the model at once.
## Communication
Raw data
{
"_id": null,
"home_page": null,
"name": "nerdd-link",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": "Steffen Hirte <steffen.hirte@univie.ac.at>",
"keywords": "science, research, development, nerdd",
"author": null,
"author_email": "Steffen Hirte <steffen.hirte@univie.ac.at>",
"download_url": "https://files.pythonhosted.org/packages/17/84/9bd470089516dc8ba88ed971d21bb708be48846311577c5a74bfacfe808f/nerdd_link-0.2.16.tar.gz",
"platform": null,
"description": "# NERDD-Link\n\nRun a [NERDD module](https://github.com/molinfo-vienna/nerdd-module) as a \nservice that consumes input molecules and produces prediction tuples.\n\n\n## Installation\n\n```bash\npip install -U nerdd-link\n```\n \n## Usage\n\nWhen a class inherits from ```nerdd_module.AbstractModel``` (see \n[NERDD Module Github page](https://github.com/molinfo-vienna/nerdd-module)), it can be \nused to create a Kafka service. \n\n```bash \n# run a Kafka service for NerddModel on localhost:9092\nrun_nerdd_server package.path.to.NerddModel\n\n# modify broker url, input topic and batch size\nrun_nerdd_server package.path.to.NerddModel \\\n --broker-url my-cluster-kafka-bootstrap.kafka:9092 \\\n --input-topic examples \\\n --batch-size 10\n\n# more information via --help\nrun_nerdd_server --help\n```\n\nIf the model class is called ```ExamplePredictionModel```, the server will read input \ntuples from the input topic ```example-prediction-inputs``` in batches of size 100\nand write results to the ```results``` topic. The batch size specifies the number\nof input tuples that are given to the model at once.\n\n## Communication\n\n",
"bugtrack_url": null,
"license": "MIT License\n \n Copyright (c) 2023 Molecular Informatics Vienna\n \n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n \n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n ",
"summary": "Run a NERDD module as a service",
"version": "0.2.16",
"project_urls": {
"Repository": "https://github.com/molinfo-vienna/nerdd-link"
},
"split_keywords": [
"science",
" research",
" development",
" nerdd"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "f049a887e1eac094d3698154d1a4fb1276a86d1d56330f892a40218483b402dc",
"md5": "8918803e3a979b79ef9fc0375dea2434",
"sha256": "d28b055ef0bbf9e9e77f721cc5f33d0b8af2110d008b9a2f6cd6288aa930de1d"
},
"downloads": -1,
"filename": "nerdd_link-0.2.16-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8918803e3a979b79ef9fc0375dea2434",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 35442,
"upload_time": "2025-01-26T11:50:28",
"upload_time_iso_8601": "2025-01-26T11:50:28.133158Z",
"url": "https://files.pythonhosted.org/packages/f0/49/a887e1eac094d3698154d1a4fb1276a86d1d56330f892a40218483b402dc/nerdd_link-0.2.16-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "17849bd470089516dc8ba88ed971d21bb708be48846311577c5a74bfacfe808f",
"md5": "ee032d73273fa15981dc8d1e65a26a68",
"sha256": "76b53afeacb4e20850b3e5626c4b107bc136b007502f7028dd3a474abcc85e2b"
},
"downloads": -1,
"filename": "nerdd_link-0.2.16.tar.gz",
"has_sig": false,
"md5_digest": "ee032d73273fa15981dc8d1e65a26a68",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 23839,
"upload_time": "2025-01-26T11:50:29",
"upload_time_iso_8601": "2025-01-26T11:50:29.501801Z",
"url": "https://files.pythonhosted.org/packages/17/84/9bd470089516dc8ba88ed971d21bb708be48846311577c5a74bfacfe808f/nerdd_link-0.2.16.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-26 11:50:29",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "molinfo-vienna",
"github_project": "nerdd-link",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "nerdd-link"
}