Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_daum_streamer():
daum = DaumStreamer()
daum.options.n_limits = 1
daum.options.display_rank = True
daum.options.verbose = True
daum.options.interval = 3
daum.stream()
def main():
app = DaumStreamer(is_async=False)
app.options.verbose = True
app.show_options()
app.stream()
def __init__(self, is_async=True):
super(DaumStreamer, self).__init__(is_async=is_async)
self.is_async = is_async
parser = self.get_parser()
parser.add_argument(
'-d', '--display_rank',
help="display rank in results and commandline.",
action="store_true"
)
parser.add_argument(
'-i', '--interval',
help="streaming interval(secs)",
default=60,
type=int
)
parser.add_argument(
'-n', '--n_limits',