from datahub.ingestion.run.pipeline import Pipeline # The pipeline configuration is similar to the recipe YAML files provided to the CLI tool. pipeline = Pipeline.create( { "source": { "type": "glue", "config": { "aws_access_key_id": "", "aws_secret_access_key": "", "aws_region": "", "emit_s3_lineage" : False, }, }, "sink": { "type": "datahub-rest", "config": { "server": "{$GMS_ENDPOINT}", "token": "{$GMS_TOKEN}" }, }, } ) # Run the pipeline and report the results. pipeline.run() pipeline.pretty_print_summary()