@@ -0,0 +1,604 @@
+import importlib%0A%0Afrom docopt import docopt%0A%0Adef main():%0A    %22%22%22streamparse.run: run a bolt/spout class%0A%0A    This is internal to streamparse and is used to run spout and bolt%0A    classes via %60%60python -m streamparse.run %3Cclass name%3E%60%60.%0A%0A    Usage:%0A        run %3Ctarget_class%3E%0A%0A    Options:%0A        -h --help   Show this screen%0A    %22%22%22%0A    # Import the component class and run it%0A    args = docopt(main.__doc__)%0A    mod_name, cls_name = args%5B'%3Ctarget_class%3E'%5D.rsplit('.', 1)%0A    mod = importlib.import_module(mod_name)%0A    cls = getattr(mod, cls_name)%0A    cls().run()%0A%0Aif __name__ == '__main__':%0A    main()%0A

add a runner for streamparse. clojure up next