Skip to content

Commit

Permalink
Require pystorm 3.1.0 and support ReliableSpout (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-blanchard authored Jan 26, 2017
1 parent 6b62136 commit 4fe9a37
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 7 deletions.
8 changes: 7 additions & 1 deletion doc/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,22 @@ emit tuples into streams.
.. autoclass:: streamparse.Spout
:show-inheritance:

.. autoclass:: streamparse.ReliableSpout
:show-inheritance:


Bolts
^^^^^

.. autoclass:: streamparse.Bolt
:show-inheritance:


.. autoclass:: streamparse.BatchingBolt
:show-inheritance:

.. autoclass:: streamparse.TicklessBatchingBolt
:show-inheritance:


Logging
-------
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ requests
prettytable
setuptools
simplejson
pystorm>=3.0.3
pystorm>=3.1.0
thriftpy>=0.3.2
ruamel.yaml
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def readme():
'prettytable',
'six>=1.5',
'simplejson',
'pystorm>=3.0.3',
'pystorm>=3.1.0',
'thriftpy>=0.3.2',
'ruamel.yaml'
]
Expand Down
7 changes: 4 additions & 3 deletions streamparse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

from . import bolt, cli, component, decorators, dsl, spout, storm
from .dsl import Grouping, Stream, Topology
from .storm import (BatchingBolt, Bolt, JavaBolt, JavaSpout, ShellBolt,
ShellSpout, Spout, StormHandler, TicklessBatchingBolt,
Tuple)
from .storm import (BatchingBolt, Bolt, JavaBolt, JavaSpout, ReliableSpout,
ShellBolt, ShellSpout, Spout, StormHandler,
TicklessBatchingBolt, Tuple)
from .version import __version__, VERSION

# Enable default NullHandler to prevent "No handlers could be found for logger"
Expand All @@ -30,6 +30,7 @@
'Grouping',
'JavaBolt',
'JavaSpout',
'ReliableSpout',
'ShellBolt',
'ShellSpout',
'Spout',
Expand Down
2 changes: 1 addition & 1 deletion streamparse/storm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

from .bolt import BatchingBolt, Bolt, JavaBolt, ShellBolt, TicklessBatchingBolt
from .component import Component, StormHandler
from .spout import JavaSpout, ShellSpout, Spout
from .spout import JavaSpout, ShellSpout, ReliableSpout, Spout
5 changes: 5 additions & 0 deletions streamparse/storm/spout.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,8 @@ def spec(cls, name=None, par=None, config=None):
cls.__name__),
name=name, par=par, config=config,
outputs=cls.outputs)


class ReliableSpout(pystorm.spout.ReliableSpout, Spout):
"""pystorm ReliableSpout with streamparse-specific additions"""
pass

0 comments on commit 4fe9a37

Please sign in to comment.