MCPcopy Create free account
hub / github.com/Open-Bee/DataStudio / main

Function main

run.py:167–191  ·  view source on GitHub ↗

CLI entry point for DataStudio pipeline.

()

Source from the content-addressed store, hash-verified

165
166
167def main():
168 """CLI entry point for DataStudio pipeline."""
169 parser = argparse.ArgumentParser(description="DataStudio Pipeline Runner")
170 parser.add_argument(
171 "-c",
172 "--config",
173 default="",
174 metavar="FILE",
175 help="path to config file",
176 type=str,
177 )
178 parser.add_argument(
179 "--cache-images",
180 action="store_true",
181 help="Only cache images to LMDB, skip pipeline execution",
182 )
183
184 args = parser.parse_args()
185
186 if args.config:
187 init_cfg(args.config)
188
189 runner = Runner(cache_images_only=args.cache_images)
190
191 runner.run()
192
193
194if __name__ == "__main__":

Callers 1

run.pyFile · 0.85

Calls 3

runMethod · 0.95
init_cfgFunction · 0.90
RunnerClass · 0.85

Tested by

no test coverage detected