Run a NERDD module as a service
Project description
NERDD-Link
Run a NERDD module as a
service that consumes input molecules and produces prediction tuples.
Installation
pip install -U nerdd-link
Usage
When a class inherits from nerdd_module.AbstractModel
(see
NERDD Module Github page), it can be
used to create a Kafka service.
# 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nerdd_link-0.4.0.tar.gz
.
File metadata
- Download URL: nerdd_link-0.4.0.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32b75d6532ddfb3fb25bf4e0114217c286c93c157de651a8b7a36655ad4ca465 |
|
MD5 | 3437dac7c863772ca12d0f80349bd3c7 |
|
BLAKE2b-256 | f93237001ce5986f905a6f889c491bc7e870993224490318b8dc5d0bf912710a |
File details
Details for the file nerdd_link-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: nerdd_link-0.4.0-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | adf6d7617cd7d89d3a1cb7de3fdb9b7dbf5185daa71843705afd1108f7cb6897 |
|
MD5 | cc2b96decf3f2f013d8ff84b6ea77e9d |
|
BLAKE2b-256 | 971a6e6d6f445294ec2ab0b3db6dcbab63120008d4ceb39c001f822d5ec7ee9e |