Skip to content

Plugin/Tool helpers #28

@tdiethe

Description

@tdiethe

It might be nice to have some helpers for creating plugins and/or tools. Ideally these would just be small python scripts (could also be bash scripts, but that'd exclude non-bash environments). The create plugin tool would create a python package as in tutorial 2:

|- one_plugin/
|   |- __init__.py
|   |- tools/
|       |- __init__.py

And the create tool would do the final part of creating a file with the appropriate name (default today's date and v0.0.1):

|       |- my_fancy_tool
|           |- __init__.py
|           |- 2017-06-20_v0.0.1.py

with some default contents, e.g.:

from hyperstream import Tool, StreamInstance
from hyperstream.utils import check_input_stream_count

class MyFancyTool(Tool):
    def __init__(self):
        super(MyFancyTool, self).__init__()

    @check_input_stream_count(0)
    def _execute(self, sources, alignment_stream, interval):
        raise NotImplementedError()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions