Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin/Tool helpers #28

Open
tdiethe opened this issue Nov 16, 2017 · 0 comments
Open

Plugin/Tool helpers #28

tdiethe opened this issue Nov 16, 2017 · 0 comments

Comments

@tdiethe
Copy link
Member

tdiethe commented Nov 16, 2017

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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant