@@ -0,0 +1,896 @@
+import argparse%0Aimport subprocess%0Aimport sys%0A%0Aimport cloudbrain.publishers.sensor_publisher%0A%0Adef publish(args):%0A    sys.argv = args or %5B'-h'%5D%0A    cloudbrain.publishers.sensor_publisher.main()%0A%0Adef subscribe(args):%0A    return NotImplemented%0A%0Adef parse_args():%0A  parser = argparse.ArgumentParser()%0A  subparsers = parser.add_subparsers()%0A%0A  publish_parser = subparsers.add_parser('publish',%0A                      help=%22Publish data stream - For example: cloudbrain publish --mock -n muse -i octopicorn%22)%0A  publish_parser.set_defaults(func=publish)%0A%0A  subscribe_parser = subparsers.add_parser('subscribe',%0A                      help=%22Subscribe to data stream - For example: cloudbrain subscribe -n muse -i octopicorn%22)%0A  subscribe_parser.set_defaults(func=subscribe)%0A%0A  args, unknown = parser.parse_known_args()%0A  args.func(unknown)%0A%0Adef main():%0A    parse_args()%0A%0Aif __name__ == %22__main__%22:%0A  main()%0A

Add entrypoint script to support subcommands