{
  "id": "task_libraries:data-pipeline/python",
  "path": "/exapedia/python-data-pipeline-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python data pipeline libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python data pipeline libraries define, schedule, and run the steps that move and transform data. An orchestrator records each task's dependencies as a graph and starts a task only after its upstream tasks finish. These libraries let data teams run scheduled jobs that recover from failed steps."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python data pipeline libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#celery",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F142"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#temporalio",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#dbt-core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F174"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#rq",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#dagster",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F210"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#prefect",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#airflow",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F242"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#dvc",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F258"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#celery",
          "label": [
            {
              "t": "text",
              "text": "Celery"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F143"
        },
        {
          "t": "text",
          "text": ", a count that covers every background job it runs."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Python three ten installation",
            "Configurable step retries"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#celery",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F142"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#temporalio",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F160"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#dbt-core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F174"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#rq",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#dagster",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F210"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#prefect",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F226"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#airflow",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F242"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#dvc",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F258"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "celery",
          "name": [
            {
              "t": "fact",
              "fact": "F142"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/celery/celery"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/celery"
            },
            {
              "label": "Docs",
              "href": "https://docs.celeryq.dev/en/stable/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F149"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.celeryq.dev/en/stable/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F142"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/paperless-ngx/paperless-ngx",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F158"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def split(\n    doc_ids: list[int],\n    pages: list[list[int]],\n    *,\n    delete_originals: bool = False,\n    source_mode: SourceMode = SourceModeChoices.LATEST_VERSION,\n    user: User | None = None,\n    trigger_source: PaperlessTask.TriggerSource = PaperlessTask.TriggerSource.WEB_UI,\n) -> Literal[\"OK\"]:\n    logger.info(\n        f\"Attempting to split document {doc_ids[0]} into {len(pages)} documents\",\n    )\n    doc = Document.objects.select_related(\"root_document\").get(id=doc_ids[0])\n    pair = _resolve_root_and_source_doc(doc, source_mode=source_mode)\n\n    consume_tasks = []\n\n    try:\n        outputs = [\n            (\n                [pdf_ops.PageSpec(page) for page in split_doc],\n                partial(_scratch_path, f\"{doc.id}_{split_doc[0]}-{split_doc[-1]}.pdf\"),\n            )\n            for split_doc in pages\n        ]\n        filepaths = pdf_ops.build_pdfs(pair.source_doc.source_path, outputs)\n\n        for idx, (split_doc, filepath) in enumerate(\n            zip(pages, filepaths, strict=True),\n        ):\n            overrides: DocumentMetadataOverrides = (\n                DocumentMetadataOverrides().from_document(doc)\n            )\n            overrides.title = f\"{doc.title} (split {idx + 1})\"\n            if user is not None:\n                overrides.owner_id = user.id\n            if not delete_originals:\n                overrides.skip_asn_if_exists = True\n            logger.info(\n                f\"Adding split document with pages {split_doc} to the task queue.\",\n            )\n            consume_tasks.append(\n                consume_file.s(\n                    input_doc=ConsumableDocument(\n                        source=DocumentSource.ConsumeFolder,\n                        original_file=filepath,\n                    ),\n                    overrides=overrides,\n                ).set(headers={\"trigger_source\": trigger_source}),\n            )\n\n        if delete_originals:\n            backup = release_archive_serial_numbers([doc.id])\n            logger.info(\n                \"Queueing removal of original document after consumption of the split documents\",\n            )\n            try:\n                chord(\n                    header=consume_tasks,\n                    body=delete.si([doc.id]),\n                ).on_error(\n                    restore_archive_serial_numbers_task.s(backup),\n                ).apply_async()\n            except Exception:\n                restore_archive_serial_numbers(backup)\n                raise\n        else:\n            group(consume_tasks).delay()\n\n    except Exception as e:\n        logger.exception(f\"Error splitting document {doc.id}: {e}\")\n        raise\n\n    return \"OK\"",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/paperless-ngx/paperless-ngx/blob/14252054a150595d89040a02cb510b9f43f4570b/src/documents/bulk_edit.py#L821-L894",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F157"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=celery%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F142"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from celery import Celery\n\napp = Celery('tasks', broker='amqp://guest@localhost//')\n\n@app.task\ndef add(x, y):\n    return x + y\n\nprint(add.delay(2, 2).id)",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.celeryq.dev/en/stable/getting-started/first-steps-with-celery.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "tasks.py"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F147"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "temporalio",
          "name": [
            {
              "t": "fact",
              "fact": "F160"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/temporalio/sdk-python"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/temporalio"
            },
            {
              "label": "Docs",
              "href": "https://docs.temporal.io/docs/python"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F167"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.temporal.io/docs/python",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F160"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import asyncio\nfrom temporalio.client import Client\n\nasync def main():\n    client = await Client.connect('localhost:7233')\n    print(await client.count_workflows())\n\nasyncio.run(main())",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://python.temporal.io/temporalio.client.Client.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "temporalio.client.Client.html"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=temporalio%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F160"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F165"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "dbt-core",
          "name": [
            {
              "t": "fact",
              "fact": "F174"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/dbt-labs/dbt"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/dbt-core"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/project/dbt-core/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F181"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/dbt-core/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F174"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/astronomer/astronomer-cosmos",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F190"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def run_command(\n    command: list[str], env: dict[str, str], cwd: str, callbacks: list[Callable] | None = None, **kwargs: Any  # type: ignore[type-arg]\n) -> dbtRunnerResult:\n    \"\"\"\n    Invokes the dbt command programmatically.\n    \"\"\"\n    # Exclude the dbt executable path from the command. This step is necessary because we are using the same\n    # command that is used by `InvocationMode.SUBPROCESS`, and in that scenario the first command is necessarily the path\n    # to the dbt executable.\n    cli_args = command[1:]\n    macro_errors: list[str] = []\n    # ``build_cmd`` puts flags on both sides of the subcommand — dbt global flags before it,\n    # ``add_global_flags()``/``dbt_cmd_flags`` after it — so a positional check is not safe here.\n    # dbt 2's ``dbtRunner`` rejects ``callbacks=`` with ``NotImplementedError`` and has no protobuf events to read.\n    if \"run-operation\" in cli_args and not is_dbt_v2():\n        callbacks = [*(callbacks or []), _collect_macro_errors(macro_errors)]\n    # ``exclude_dags_folder_from_sys_path`` must enter *before* ``change_working_directory`` so it\n    # resolves ``DAGS_FOLDER`` against the Airflow process cwd. A relative ``DAGS_FOLDER`` resolved\n    # after the chdir would point at the dbt project dir and fail to strip the real DAGs folder.\n    with exclude_dags_folder_from_sys_path(), change_working_directory(cwd), environ(env):\n        logger.info(\"Trying to run dbtRunner with:\\n %s\\n in %s\", cli_args, cwd)\n        runner = get_runner(callbacks=callbacks)\n        try:\n            result = runner.invoke(cli_args)\n        finally:\n            # Reset dbt adapters to release semaphores (run on all exit paths)\n            # See: https://github.com/astronomer/astronomer-cosmos/issues/2334\n            _cleanup_dbt_adapters()\n\n    _fill_missing_messages(result, macro_errors)\n\n    return result",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/astronomer/astronomer-cosmos/blob/9bc1fad676f59aeaa629c390cfd27df639826c4a/cosmos/dbt/runner.py#L162-L193",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F189"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=dbt-core%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F174"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from dbt.cli.main import dbtRunner\n\nrunner = dbtRunner()\nresult = runner.invoke([\"run\"])\nprint(result.success)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/dbt-labs/dbt/blob/bd46c78d600c8518b5b24be7338c035887054d40/core/dbt/cli/main.py",
                  "label": [
                    {
                      "t": "text",
                      "text": "programmatic-invocations.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F179"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "rq",
          "name": [
            {
              "t": "fact",
              "fact": "F192"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/rq/rq"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/rq"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/project/rq/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F199"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/rq/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F192"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/getredash/redash",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def execute_job(self, job, queue):\n    statsd_client.incr(\"rq.jobs.running.{}\".format(queue.name))\n    statsd_client.incr(\"rq.jobs.started.{}\".format(queue.name))\n    try:\n        super().execute_job(job, queue)\n    finally:\n        statsd_client.decr(\"rq.jobs.running.{}\".format(queue.name))\n        try:\n            job_status = job.get_status()\n        except InvalidJobOperation:\n            # The job's hash already expired, so its outcome is unknown. rq 1.x returned\n            # None here, which counted as a failure; keep that.\n            job_status = None\n        if job_status == JobStatus.FINISHED:\n            statsd_client.incr(\"rq.jobs.finished.{}\".format(queue.name))\n        else:\n            statsd_client.incr(\"rq.jobs.failed.{}\".format(queue.name))",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/getredash/redash/blob/f561a53dc55eeb3f20615be951560dc78bb23f4c/redash/tasks/worker.py#L62-L78",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F207"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=rq%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F192"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from redis import Redis\nfrom rq import Queue\n\njob = Queue(connection=Redis()).enqueue(sum, [1, 2, 3])\nprint(job.id)",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://python-rq.org/docs/",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F197"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "dagster",
          "name": [
            {
              "t": "fact",
              "fact": "F210"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/dagster-io/dagster"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/dagster"
            },
            {
              "label": "Docs",
              "href": "https://docs.dagster.io"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F217"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.dagster.io",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F210"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/dagster-io/project-dagster-university",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F224"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@dg.asset(\n    group_name=\"raw_files\",\n    kinds={\"python\"},\n)\ndef taxi_zones_file() -> dg.MaterializeResult:\n    \"\"\"The raw CSV file for the taxi zones dataset. Sourced from the NYC Open Data portal.\"\"\"\n    raw_taxi_zones = requests.get(\n        \"https://community-engineering-artifacts.s3.us-west-2.amazonaws.com/dagster-university/data/taxi_zones.csv\"\n    )\n\n    with open(\n        constants.TAXI_ZONES_FILE_PATH, \"wb\", transport_params=smart_open_config\n    ) as output_file:\n        output_file.write(raw_taxi_zones.content)\n\n    num_rows = len(pd.read_csv(BytesIO(raw_taxi_zones.content)))\n\n    return dg.MaterializeResult(\n        metadata={\"Number of records\": dg.MetadataValue.int(num_rows)}\n    )",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/dagster-io/project-dagster-university/blob/96d8c8cc0c64a54d8fd2cff231af063383ec290a/dagster_university/dagster_and_dbt/src/dagster_and_dbt/defs/assets/trips.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F223"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Real%20orchestration%20projects%20using%20dagster%20for%20data%20pipelines&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F210"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from dagster import asset, materialize\n\n@asset\ndef greeting():\n    return 'Hello'\n\nresult = materialize([greeting])\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.dagster.io/api/dagster/assets",
                  "label": [
                    {
                      "t": "text",
                      "text": "asset_dependency.py"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F215"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "prefect",
          "name": [
            {
              "t": "fact",
              "fact": "F226"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/PrefectHQ/prefect"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/prefect"
            },
            {
              "label": "Docs",
              "href": "https://www.prefect.io/docs"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F37"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.prefect.io/docs",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F226"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/prefect-archive/prefect-recipes",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F240"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@flow(name=\"Update ABC Snowflake Table\", retries=2, retry_delay_seconds=900)\ndef abc_elt_flow(deptCode_list: List[int]) -> None:\n\n    \"\"\"Flow which\n    1. Calculates the last successful load of data into Snowflake in order\n    to set the correct start_time.\n    2. Extracts the data since the start_time from ABC API into a df.\n    3. If new data from ABC API, loads df into Snowflake table.\n\n    Args:\n        - deptCode_list: A list of dept IDs each referenced as a\n        deptCode.\n    \"\"\"\n\n    target_table = \"ABC_TABLE\"\n\n    start_tms = get_start_time(target_table)\n\n    df = extract_data_from_api(start_tms, deptCode_list)\n\n    if isinstance(df, DataFrame):\n\n        # clean column names for Snowflake\n        df.columns = [col.replace(\".\", \"_\").upper() for col in df.columns]\n\n        # create ddl\n        ddl = \"\".join([col + \" STRING, \" for col in df.columns])[:-2]\n\n        load_data_into_snowflake(df, target_table, ddl)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/prefect-archive/prefect-recipes/blob/ebc974b22430f8fceda609dd0d17663ab2008c01/flows-advanced/etl/elt-with-snowflake.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F239"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Real%20orchestration%20projects%20using%20prefect%20for%20data%20pipelines&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F226"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from prefect import task\n\n@task\ndef add_integers(a: int, b: int) -> int:\n    return a + b\n\nresult = add_integers(1, 2)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.prefect.io/v3/concepts/tasks",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F231"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "airflow",
          "name": [
            {
              "t": "fact",
              "fact": "F242"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/apache/airflow"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/apache-airflow"
            },
            {
              "label": "Docs",
              "href": "https://airflow.apache.org/docs/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F63"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F249"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://airflow.apache.org/docs/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F242"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F256"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F257"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/astronomer/astronomer-cosmos",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F256"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def create_task_groups_based_on_folder(\n    dag: DAG,\n    node: DbtNode,\n    parent_task_group: TaskGroup | None,\n    task_groups: dict[str, TaskGroup],\n    use_hierarchical_naming: bool = False,\n) -> TaskGroup | None:\n    \"\"\"\n    Generate the parent task group for the given node based on the node's file path. If a TaskGroup is given, it will\n    be used as the parent group.\n\n    When ``use_hierarchical_naming`` is True, groups are cached by their cumulative folder path, so that folders\n    sharing a leaf name under different parents (e.g. ``staging/aurora`` and ``marts/aurora``) become distinct task\n    groups instead of collapsing into the first one created. When False (default), groups are cached by the bare\n    folder name, preserving the legacy behaviour — and the existing task-group ids that users may reference — at the\n    cost of collapsing same-named folders. See https://github.com/astronomer/astronomer-cosmos/pull/2824.\n    \"\"\"\n    task_group = None\n    # Use ``Path.parts`` (OS-agnostic) rather than ``str(path).split(\"/\")`` so folder grouping also\n    # works on Windows, where ``str(Path(...))`` uses backslash separators.\n    resource_file_path_parts = Path(node.original_file_path).parts[:-1]\n    cumulative_path = \"\"\n    for resource_file_path_part in resource_file_path_parts:\n        cumulative_path = f\"{cumulative_path}/{resource_file_path_part}\" if cumulative_path else resource_file_path_part\n        cache_key = cumulative_path if use_hierarchical_naming else resource_file_path_part\n        if cache_key in task_groups:\n            task_group = task_groups[cache_key]\n        else:\n            task_group = TaskGroup(dag=dag, group_id=resource_file_path_part, parent_group=parent_task_group)\n            task_groups[cache_key] = task_group\n        parent_task_group = task_group\n    return task_group",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/astronomer/astronomer-cosmos/blob/9bc1fad676f59aeaa629c390cfd27df639826c4a/cosmos/airflow/graph.py",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F255"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Real%20orchestration%20projects%20using%20apache-airflow%20for%20data%20pipelines&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F242"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from datetime import datetime\nfrom airflow.sdk import DAG\nfrom airflow.providers.standard.operators.empty import EmptyOperator\n\nwith DAG('first_pipeline', start_date=datetime(2024, 1, 1), schedule=None) as dag:\n    EmptyOperator(task_id='first_task')\n\nif __name__ == '__main__':\n    dag.test()",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/debug.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "tutorial_taskflow_api.py"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F247"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "dvc",
          "name": [
            {
              "t": "fact",
              "fact": "F258"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/treeverse/dvc"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/dvc"
            },
            {
              "label": "Docs",
              "href": "https://dvc.org/doc"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F265"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://dvc.org/doc",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F258"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F274"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F275"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/krishnaik06/The-Grand-Complete-Data-Science-Materials",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F274"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def train_model():\n    try:\n        subprocess.run([\"dvc\", \"repro\"], check=True)\n        st.write(\"Training successfully completed\")\n    except subprocess.CalledProcessError as e:\n        st.error(f\"Error running DVC repro: {e}\")",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/krishnaik06/The-Grand-Complete-Data-Science-Materials/blob/13c51daa79a1c81a29e2962c04c74a6462e5fcd1/ML%20Projects/Indian-Coin-Detection/app.py#L9-L14",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F273"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=dvc%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F258"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import subprocess\n\nsubprocess.run(['dvc', 'init', '--no-scm'], check=True)\nsubprocess.run(['dvc', 'stage', 'add', '-n', 'hello', '-o', 'hello.txt', 'echo hello > hello.txt'], check=True)\nsubprocess.run(['dvc', 'repro'], check=True)",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://dvc.org/doc/command-reference/repro",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F263"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python data pipeline library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#airflow",
          "label": [
            {
              "t": "text",
              "text": "Airflow"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits scheduled DAGs of tasks with controls for historical runs. "
        },
        {
          "t": "link",
          "href": "#dagster",
          "label": [
            {
              "t": "text",
              "text": "Dagster"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits pipelines organized around data assets. "
        },
        {
          "t": "link",
          "href": "#prefect",
          "label": [
            {
              "t": "text",
              "text": "Prefect"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits Python flows that need retries and tracked state."
        }
      ]
    },
    {
      "q": "What is dbt Core?",
      "a": [
        {
          "t": "link",
          "href": "#dbt-core",
          "label": [
            {
              "t": "text",
              "text": "dbt Core"
            }
          ]
        },
        {
          "t": "text",
          "text": " lets analysts build SQL models the way engineers build applications. Its commands run the models and resources as a dependency graph."
        }
      ]
    },
    {
      "q": "What is Celery in Python?",
      "a": [
        {
          "t": "link",
          "href": "#celery",
          "label": [
            {
              "t": "text",
              "text": "Celery"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a distributed task queue that sends tasks through a broker to workers. It composes tasks into groups, chains, and chords."
        }
      ]
    },
    {
      "q": "Dagster vs Airflow: which should I use?",
      "a": [
        {
          "t": "link",
          "href": "#dagster",
          "label": [
            {
              "t": "text",
              "text": "Dagster"
            }
          ]
        },
        {
          "t": "text",
          "text": " models a pipeline as data assets with dependencies, materializations, and typed metadata. "
        },
        {
          "t": "link",
          "href": "#airflow",
          "label": [
            {
              "t": "text",
              "text": "Airflow"
            }
          ]
        },
        {
          "t": "text",
          "text": " models it as a DAG of tasks that it schedules as task instances."
        }
      ]
    },
    {
      "q": "Prefect vs Airflow: which should I use?",
      "a": [
        {
          "t": "link",
          "href": "#prefect",
          "label": [
            {
              "t": "text",
              "text": "Prefect"
            }
          ]
        },
        {
          "t": "text",
          "text": " runs Python flows and tasks with retries, schedules, and tracked runtime state. "
        },
        {
          "t": "link",
          "href": "#airflow",
          "label": [
            {
              "t": "text",
              "text": "Airflow"
            }
          ]
        },
        {
          "t": "text",
          "text": " schedules DAGs of tasks with controls for historical runs."
        }
      ]
    },
    {
      "q": "What is Temporal in Python?",
      "a": [
        {
          "t": "link",
          "href": "#temporalio",
          "label": [
            {
              "t": "text",
              "text": "Temporal"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a Python SDK for durable workflows that keep their history and call external activities."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, dagster",
      "display": "Dagster",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, dagster",
      "display": "10.3M",
      "asOf": "2026-11-16"
    },
    "F3": {
      "label": "License, dagster",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, dagster",
      "display": "1.13.30, Nov 2026",
      "asOf": "2026-11-12"
    },
    "F5": {
      "label": "Package release date, dagster",
      "display": "Nov 2026",
      "asOf": "2026-11-12"
    },
    "F6": {
      "label": "Repository stars, dagster",
      "display": "16.4K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Task retries, dagster",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Scheduled runs, dagster",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Backfills, dagster",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Asset definitions, dagster",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, dagster",
      "display": "pip install dagster",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, dagster",
      "display": "Defines data assets and their dependencies, with partitioned materialization and orchestration.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, dagster",
      "display": "Tracks assets and upstream dependencies",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, dagster",
      "display": "Asset definitions describe computed data and its upstream dependencies.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, dagster",
      "display": "Backfills selected data partitions",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, dagster",
      "display": "Launch a backfill for all partitions or a selected subset.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, dagster",
      "display": "Schedules need a running daemon",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, dagster",
      "display": "Run dagster-daemon alongside the deployment for schedules and sensors.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, dagster",
      "display": "Backfills default to separate runs",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, dagster",
      "display": "By default, each selected partition gets a separate run.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, dagster",
      "display": "from dagster import asset\n\n\n# start_marker\n@asset\ndef upstream_asset():\n    return [1, 2, 3]\n\n\n@asset\ndef downstream_asset(upstream_asset):\n    return upstream_asset + [4]\n\n\n# end_marker\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, dagster",
      "display": "@multi_asset(\n    outs={\n        table_name: AssetOut(is_required=False)\n        for table_name in sorted(\n            (\n                \"raw_eia923__boiler_fuel\",\n                \"raw_eia923__energy_storage\",\n                \"raw_eia923__fuel_receipts_costs\",\n                \"raw_eia923__generation_fuel\",\n                \"raw_eia923__generator\",\n                \"raw_eia923__stocks\",\n                \"raw_eia923__emissions_control\",\n                \"raw_eia923__byproduct_disposition\",\n                \"raw_eia923__byproduct_expenses_and_revenues\",\n                \"raw_eia923__fgd_operation_maintenance\",\n                \"raw_eia923__cooling_system_information\",\n                \"raw_eia923__boiler_nox_operation\",\n                \"raw_eia923__fgp_operation\",\n                \"raw_eia923__puerto_rico_generation_fuel\",\n                \"raw_eia923__puerto_rico_plant_frame\",\n                \"raw_eia923__source_and_disposition\",\n            )\n        )\n    },\n    can_subset=True,\n)\ndef extract_eia923(context, raw_eia923__all_dfs):\n    \"\"\"Extract raw EIA-923 data from excel sheets into dataframes.\"\"\"\n    # create descriptive table_names\n    raw_eia923__all_dfs = {\n        \"raw_eia923__\" + table_name: df\n        for table_name, df in raw_eia923__all_dfs.items()\n    }\n\n    raw_eia923__all_dfs = dict(sorted(raw_eia923__all_dfs.items()))\n    selected_outputs = set(context.selected_output_names)\n\n    return (\n        Output(output_name=table_name, value=df)\n        for table_name, df in raw_eia923__all_dfs.items()\n        if table_name in selected_outputs\n    )\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, dagster",
      "display": "eia923.py · extract_eia923()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, dagster",
      "display": "catalyst-cooperative/pudl",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, catalyst-cooperative/pudl",
      "display": "619",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, catalyst-cooperative/pudl",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F27": {
      "label": "Library name, prefect",
      "display": "Prefect",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, prefect",
      "display": "8.3M",
      "asOf": "2026-11-16"
    },
    "F29": {
      "label": "License, prefect",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, prefect",
      "display": "3.9.3, Nov 2026",
      "asOf": "2026-11-13"
    },
    "F31": {
      "label": "Package release date, prefect",
      "display": "Nov 2026",
      "asOf": "2026-11-13"
    },
    "F32": {
      "label": "Repository stars, prefect",
      "display": "24.2K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Task retries, prefect",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Scheduled runs, prefect",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Asset definitions, prefect",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Install, prefect",
      "display": "pip install prefect httpx",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "What it does, prefect",
      "display": "Orchestrates Python flows and tasks with retries, schedules and declared assets.",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths lead, prefect",
      "display": "Retries individual tasks",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths, prefect",
      "display": "Configure task retries to limit how much work repeats.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, prefect",
      "display": "Tracks produced data assets",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, prefect",
      "display": "Declare asset materializations and dependencies alongside task orchestration.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations lead, prefect",
      "display": "serve pauses schedules on exit",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations, prefect",
      "display": "Set pause_on_shutdown=False to keep schedules active after serve exits.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations lead, prefect",
      "display": "Asset events record declared intent",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations, prefect",
      "display": "Materialization success follows the underlying task's execution state.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Quickstart, prefect",
      "display": "from prefect import flow, task\nimport httpx\n\n\n@task(log_prints=True)\ndef get_stars(repo: str):\n    url = f\"https://api.github.com/repos/{repo}\"\n    count = httpx.get(url).json()[\"stargazers_count\"]\n    print(f\"{repo} has {count} stars!\")\n\n\n@flow(name=\"GitHub Stars\")\ndef github_stars(repos: list[str]):\n    for repo in repos:\n        get_stars(repo)\n\n\n# run the flow!\nif __name__ == \"__main__\":\n    github_stars([\"PrefectHQ/prefect\"])\n",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project function, prefect",
      "display": "async def _get_deployments_with_dependencies(filter_tags: DeploymentFilterTags) -> Dict[str, List[str]]:\n    \"\"\"\n    Get deployments that match the filter and build a dictionary of {deployment -> list of upstream deployments}\n    \"\"\"\n    result = dict()\n\n    async with get_client() as client:\n        deployments = await client.read_deployments(\n            deployment_filter=DeploymentFilter(\n                tags=filter_tags\n            )\n        )\n\n        for deployment in deployments:\n            dependencies = []\n            for tag in deployment.tags:\n                if not tag.startswith(\"depends_on:\"):\n                    continue\n\n                parts = tag.split(\":\", 2)\n                dependencies.append(parts[1])\n\n            deployment_flow = await client.read_flow(deployment.flow_id)\n            result[f\"{deployment_flow.name}/{deployment.name}\"] = dependencies\n\n    return result\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function reference, prefect",
      "display": "orchestration.py · _get_deployments_with_dependencies()",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project repository, prefect",
      "display": "prefect-archive/prefect-recipes",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project stars, prefect-archive/prefect-recipes",
      "display": "260",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project push date, prefect-archive/prefect-recipes",
      "display": "Jan 2025",
      "asOf": "2025-01-01"
    },
    "F52": {
      "label": "Library name, apache-airflow",
      "display": "Airflow",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Monthly downloads, apache-airflow",
      "display": "6.3M",
      "asOf": "2026-11-16"
    },
    "F54": {
      "label": "License, apache-airflow",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Package release, apache-airflow",
      "display": "3.4.0, Nov 2026",
      "asOf": "2026-11-06"
    },
    "F56": {
      "label": "Package release date, apache-airflow",
      "display": "Nov 2026",
      "asOf": "2026-11-06"
    },
    "F57": {
      "label": "Repository stars, apache-airflow",
      "display": "47.5K",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Task retries, apache-airflow",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Scheduled runs, apache-airflow",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Backfills, apache-airflow",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Asset definitions, apache-airflow",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Install, apache-airflow",
      "display": "pip install apache-airflow",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "What it does, apache-airflow",
      "display": "Schedules and executes dependency graphs of tasks, with historical-run controls.",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths lead, apache-airflow",
      "display": "Creates historical DAG runs",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths, apache-airflow",
      "display": "Create runs across past dates through the CLI or REST API.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths lead, apache-airflow",
      "display": "Accepts cron schedules",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths, apache-airflow",
      "display": "Set a cron expression for recurring DAG runs.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations lead, apache-airflow",
      "display": "Retries can repeat database writes",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations, apache-airflow",
      "display": "Use upserts instead of inserts to avoid duplicate rows during reruns.",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations lead, apache-airflow",
      "display": "Heavy DAG parsing slows scheduling",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations, apache-airflow",
      "display": "Move database calls and heavy computations into tasks.",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Quickstart, apache-airflow",
      "display": "#\n# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements.  See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership.  The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n# \"License\"); you may not use this file except in compliance\n# with the License.  You may obtain a copy of the License at\n#\n#   http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing,\n# software distributed under the License is distributed on an\n# \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n# KIND, either express or implied.  See the License for the\n# specific language governing permissions and limitations\n# under the License.\nfrom __future__ import annotations\n\n# [START tutorial]\n# [START import_module]\nimport json\n\nimport pendulum\n\nfrom airflow.sdk import dag, task\n\n# [END import_module]\n\n\n# [START instantiate_dag]\n@dag(\n    schedule=None,\n    start_date=pendulum.datetime(2021, 1, 1, tz=\"UTC\"),\n    catchup=False,\n    tags=[\"example\"],\n)\ndef tutorial_taskflow_api():\n    \"\"\"\n    ### TaskFlow API Tutorial Documentation\n    This is a simple data pipeline example which demonstrates the use of\n    the TaskFlow API using three simple tasks for Extract, Transform, and Load.\n    Documentation that goes along with the Airflow TaskFlow API tutorial is\n    located\n    [here](https://airflow.apache.org/docs/apache-airflow/stable/tutorial_taskflow_api.html)\n    \"\"\"\n    # [END instantiate_dag]\n\n    # [START extract]\n    @task()\n    def extract():\n        \"\"\"\n        #### Extract task\n        A simple Extract task to get data ready for the rest of the data\n        pipeline. In this case, getting data is simulated by reading from a\n        hardcoded JSON string.\n        \"\"\"\n        data_string = '{\"1001\": 301.27, \"1002\": 433.21, \"1003\": 502.22}'\n\n        order_data_dict = json.loads(data_string)\n        return order_data_dict\n\n    # [END extract]\n\n    # [START transform]\n    @task(multiple_outputs=True)\n    def transform(order_data_dict: dict):\n        \"\"\"\n        #### Transform task\n        A simple Transform task which takes in the collection of order data and\n        computes the total order value.\n        \"\"\"\n        total_order_value = 0\n\n        for value in order_data_dict.values():\n            total_order_value += value\n\n        return {\"total_order_value\": total_order_value}\n\n    # [END transform]\n\n    # [START load]\n    @task()\n    def load(total_order_value: float):\n        \"\"\"\n        #### Load task\n        A simple Load task which takes in the result of the Transform task and\n        instead of saving it to end user review, just prints it out.\n        \"\"\"\n\n        print(f\"Total order value is: {total_order_value:.2f}\")\n\n    # [END load]\n\n    # [START main_flow]\n    order_data = extract()\n    order_summary = transform(order_data)\n    load(order_summary[\"total_order_value\"])\n    # [END main_flow]\n\n\n# [START dag_invocation]\ntutorial_taskflow_api()\n# [END dag_invocation]\n\n# [END tutorial]\n",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project function, apache-airflow",
      "display": "def create_task_groups_based_on_folder(\n    dag: DAG,\n    node: DbtNode,\n    parent_task_group: TaskGroup | None,\n    task_groups: dict[str, TaskGroup],\n    use_hierarchical_naming: bool = False,\n) -> TaskGroup | None:\n    \"\"\"\n    Generate the parent task group for the given node based on the node's file path. If a TaskGroup is given, it will\n    be used as the parent group.\n\n    When ``use_hierarchical_naming`` is True, groups are cached by their cumulative folder path, so that folders\n    sharing a leaf name under different parents (e.g. ``staging/aurora`` and ``marts/aurora``) become distinct task\n    groups instead of collapsing into the first one created. When False (default), groups are cached by the bare\n    folder name, preserving the legacy behaviour — and the existing task-group ids that users may reference — at the\n    cost of collapsing same-named folders. See https://github.com/astronomer/astronomer-cosmos/pull/2824.\n    \"\"\"\n    task_group = None\n    # Use ``Path.parts`` (OS-agnostic) rather than ``str(path).split(\"/\")`` so folder grouping also\n    # works on Windows, where ``str(Path(...))`` uses backslash separators.\n    resource_file_path_parts = Path(node.original_file_path).parts[:-1]\n    cumulative_path = \"\"\n    for resource_file_path_part in resource_file_path_parts:\n        cumulative_path = f\"{cumulative_path}/{resource_file_path_part}\" if cumulative_path else resource_file_path_part\n        cache_key = cumulative_path if use_hierarchical_naming else resource_file_path_part\n        if cache_key in task_groups:\n            task_group = task_groups[cache_key]\n        else:\n            task_group = TaskGroup(dag=dag, group_id=resource_file_path_part, parent_group=parent_task_group)\n            task_groups[cache_key] = task_group\n        parent_task_group = task_group\n    return task_group\n",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project function reference, apache-airflow",
      "display": "graph.py · create_task_groups_based_on_folder()",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project repository, apache-airflow",
      "display": "astronomer/astronomer-cosmos",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project stars, astronomer/astronomer-cosmos",
      "display": "1.3K",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project push date, astronomer/astronomer-cosmos",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F78": {
      "label": "Library name, luigi",
      "display": "Luigi",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Monthly downloads, luigi",
      "display": "1.1M",
      "asOf": "2026-11-16"
    },
    "F80": {
      "label": "License, luigi",
      "display": "Apache",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Package release, luigi",
      "display": "3.8.1, May 2026",
      "asOf": "2026-05-07"
    },
    "F82": {
      "label": "Package release date, luigi",
      "display": "May 2026",
      "asOf": "2026-05-07"
    },
    "F83": {
      "label": "Repository stars, luigi",
      "display": "18.8K",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Task retries, luigi",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Scheduled runs, luigi",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Backfills, luigi",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Install, luigi",
      "display": "pip install luigi",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "What it does, luigi",
      "display": "Resolves task dependencies and uses target completion checks to avoid repeated work.",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths lead, luigi",
      "display": "Reuses completed dependency targets",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths, luigi",
      "display": "Existing outputs let the completion check recognize finished tasks.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths lead, luigi",
      "display": "Fills gaps across date ranges",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths, luigi",
      "display": "Use range tools to request missing dated tasks.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations lead, luigi",
      "display": "Recurring starts need another trigger",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations, luigi",
      "display": "Use cron or a continuously running process to trigger periodic work.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations lead, luigi",
      "display": "Completion needs outputs or overrides",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "limitations, luigi",
      "display": "Define outputs or override complete to recognize finished tasks.",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Quickstart, luigi",
      "display": "\"\"\"\nYou can run this example like this:\n\n    .. code:: console\n\n            $ luigi --module examples.hello_world examples.HelloWorldTask --local-scheduler\n\nIf that does not work, see :ref:`CommandLine`.\n\"\"\"\n\nimport luigi\n\n\nclass HelloWorldTask(luigi.Task):\n    task_namespace = \"examples\"\n\n    def run(self):\n        print(\"{task} says: Hello world!\".format(task=self.__class__.__name__))\n\n\nif __name__ == \"__main__\":\n    luigi.run([\"examples.HelloWorldTask\", \"--workers\", \"1\", \"--local-scheduler\"])\n",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Project function, luigi",
      "display": "def run(self):\n    '''\n    Implementation of Luigi API method\n    '''\n    if self.output()['audit'].exists():\n        errmsg = ('Audit file already exists, '\n                  'when trying to create it: %s') % self.output()['audit'].path\n        log.error(errmsg)\n        raise Exception(errmsg)\n    else:\n        with self.output()['audit'].open('w') as auditfile:\n            for taskname in sorted(self._tasks):\n                taskaudit_path = os.path.join(self.get_auditdirpath(), taskname)\n                if os.path.exists(taskaudit_path):\n                    auditfile.write(open(taskaudit_path).read() + '\\n')\n    clsname = self.__class__.__name__\n    if not self._hasloggedfinish:\n        log.info('-'*80)\n        log.info('SciLuigi: %s Workflow Finished (workflow log at %s)', clsname, self.get_wflogpath())\n        log.info('-'*80)\n        self._hasloggedfinish = True\n",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Project function reference, luigi",
      "display": "workflow.py · run()",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Project repository, luigi",
      "display": "pharmbio/sciluigi",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Project stars, pharmbio/sciluigi",
      "display": "334",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Project push date, pharmbio/sciluigi",
      "display": "Dec 2024",
      "asOf": "2024-12-10"
    },
    "F103": {
      "label": "Developer need",
      "display": "Historical scheduled DAG runs",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Why choose apache-airflow",
      "display": "creating historical runs across scheduled dates",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Developer need in introduction",
      "display": "historical scheduled DAG runs",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "When to consider dagster",
      "display": "data assets and their upstream dependencies are central",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need",
      "display": "Partitioned asset materialization",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Why choose dagster",
      "display": "backfilling selected data partitions",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need in introduction",
      "display": "partitioned asset materialization",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "When to consider prefect",
      "display": "task-level retry scope is the main concern",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Developer need",
      "display": "Retrying part of a workflow",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Why choose prefect",
      "display": "configuring retries for individual tasks",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Developer need in introduction",
      "display": "retrying part of a workflow",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "When to consider apache-airflow",
      "display": "creating scheduled historical DAG runs is central",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "Developer need",
      "display": "Reusing completed file dependencies",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "Why choose luigi",
      "display": "recognizing completed output targets",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "Developer need in introduction",
      "display": "reusing completed file dependencies",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "When to consider dagster",
      "display": "explicit data-asset definitions fit the pipeline",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "Page introduction",
      "display": "Python data pipeline libraries let data developers define and orchestrate data-processing workflows.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Which Python data-pipeline orchestrator fits each workflow?",
      "display": "Airflow creates historical DAG runs across scheduled dates.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Which Python data-pipeline orchestrator fits each workflow?",
      "display": "Dagster supports backfills over selected data partitions.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Which Python data-pipeline orchestrator fits each workflow?",
      "display": "Prefect can retry individual tasks within a workflow.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Which Python data-pipeline orchestrator fits each workflow?",
      "display": "Luigi completion checks can reuse existing targets.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Does Luigi central scheduling start recurring jobs?",
      "display": "The central scheduler does not execute tasks or automatically trigger jobs.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Does Luigi central scheduling start recurring jobs?",
      "display": "Periodic work needs a caller such as cron or a continuously running process.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: How do Airflow historical runs differ from rerunning a task?",
      "display": "Backfill creates DAG runs between start and end dates according to the DAG schedule.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: How do Airflow historical runs differ from rerunning a task?",
      "display": "A failed task with retries left is instead rescheduled as a task retry.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Does Dagster launch a run for every selected backfill partition?",
      "display": "That is the default; backfill policies can instead enable single-run backfills.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: What process keeps Dagster schedules and sensors running?",
      "display": "Schedules, sensors, and run queueing require a long-running dagster-daemon process.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: Does Prefect serve keep its schedule active after shutdown?",
      "display": "By default, stopping flow.serve pauses the deployment schedule.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: Does Prefect serve keep its schedule active after shutdown?",
      "display": "pause_on_shutdown=False prevents that automatic pause.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: Do current Prefect workflows support assets?",
      "display": "The materialize decorator declares asset materialization intent.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "FAQ: Do current Prefect workflows support assets?",
      "display": "Its recorded success or failure follows the underlying task execution state.",
      "asOf": "2026-11-17"
    },
    "F134": {
      "label": "FAQ: Can a retry duplicate database rows?",
      "display": "Airflow warns that repeated INSERT statements can create duplicate rows and recommends UPSERT.",
      "asOf": "2026-11-17"
    },
    "F135": {
      "label": "FAQ: Should database calls run while an Airflow DAG is being parsed?",
      "display": "Airflow advises keeping database access, heavy computations, and networking out of top-level DAG parsing.",
      "asOf": "2026-11-17"
    },
    "F136": {
      "label": "FAQ: How does Luigi decide whether a task is complete?",
      "display": "Its default complete implementation checks whether every output exists.",
      "asOf": "2026-11-17"
    },
    "F137": {
      "label": "FAQ: How does Luigi decide whether a task is complete?",
      "display": "Without outputs it returns false unless the method is overridden.",
      "asOf": "2026-11-17"
    },
    "F138": {
      "label": "FAQ: Does a Luigi range start date force an unlimited historical scan?",
      "display": "Range tools bound the lookback by default rather than always walking the entire start-to-present range.",
      "asOf": "2026-11-17"
    },
    "F139": {
      "label": "FAQ: Does a Luigi range start date force an unlimited historical scan?",
      "display": "The range tool configuration controls that behavior.",
      "asOf": "2026-11-17"
    },
    "F140": {
      "label": "FAQ: Is orchestration output automatically a dataset export?",
      "display": "Dagster asset code is responsible for computing and storing the data.",
      "asOf": "2026-11-17"
    },
    "F141": {
      "label": "FAQ: Is orchestration output automatically a dataset export?",
      "display": "A Luigi target can be a file or another completion checkpoint.",
      "asOf": "2026-11-17"
    },
    "F142": {
      "label": "Library name, celery",
      "display": "Celery",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Monthly downloads, celery",
      "display": "54.1M",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "License, celery",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Package release, celery",
      "display": "5.7.0",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Package release date, celery",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Install, celery",
      "display": "pip install celery",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Quickstart, celery",
      "display": "from celery import Celery\n\napp = Celery('tasks', broker='amqp://guest@localhost//')\n\n@app.task\ndef add(x, y):\n    return x + y\n\nprint(add.delay(2, 2).id)",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Official description, celery",
      "display": "Runs a distributed task queue.",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Quickstart source file, celery",
      "display": "tasks.py",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Repository stars, celery",
      "display": "29.2K",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Python three ten installation, celery",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Configurable step retries, celery",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Python requirement, celery",
      "display": ">=3.10",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Controller model, celery",
      "display": "Brokered task signatures, groups, chains, and chords",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Project function, celery",
      "display": "def split(\n    doc_ids: list[int],\n    pages: list[list[int]],\n    *,\n    delete_originals: bool = False,\n    source_mode: SourceMode = SourceModeChoices.LATEST_VERSION,\n    user: User | None = None,\n    trigger_source: PaperlessTask.TriggerSource = PaperlessTask.TriggerSource.WEB_UI,\n) -> Literal[\"OK\"]:\n    logger.info(\n        f\"Attempting to split document {doc_ids[0]} into {len(pages)} documents\",\n    )\n    doc = Document.objects.select_related(\"root_document\").get(id=doc_ids[0])\n    pair = _resolve_root_and_source_doc(doc, source_mode=source_mode)\n\n    consume_tasks = []\n\n    try:\n        outputs = [\n            (\n                [pdf_ops.PageSpec(page) for page in split_doc],\n                partial(_scratch_path, f\"{doc.id}_{split_doc[0]}-{split_doc[-1]}.pdf\"),\n            )\n            for split_doc in pages\n        ]\n        filepaths = pdf_ops.build_pdfs(pair.source_doc.source_path, outputs)\n\n        for idx, (split_doc, filepath) in enumerate(\n            zip(pages, filepaths, strict=True),\n        ):\n            overrides: DocumentMetadataOverrides = (\n                DocumentMetadataOverrides().from_document(doc)\n            )\n            overrides.title = f\"{doc.title} (split {idx + 1})\"\n            if user is not None:\n                overrides.owner_id = user.id\n            if not delete_originals:\n                overrides.skip_asn_if_exists = True\n            logger.info(\n                f\"Adding split document with pages {split_doc} to the task queue.\",\n            )\n            consume_tasks.append(\n                consume_file.s(\n                    input_doc=ConsumableDocument(\n                        source=DocumentSource.ConsumeFolder,\n                        original_file=filepath,\n                    ),\n                    overrides=overrides,\n                ).set(headers={\"trigger_source\": trigger_source}),\n            )\n\n        if delete_originals:\n            backup = release_archive_serial_numbers([doc.id])\n            logger.info(\n                \"Queueing removal of original document after consumption of the split documents\",\n            )\n            try:\n                chord(\n                    header=consume_tasks,\n                    body=delete.si([doc.id]),\n                ).on_error(\n                    restore_archive_serial_numbers_task.s(backup),\n                ).apply_async()\n            except Exception:\n                restore_archive_serial_numbers(backup)\n                raise\n        else:\n            group(consume_tasks).delay()\n\n    except Exception as e:\n        logger.exception(f\"Error splitting document {doc.id}: {e}\")\n        raise\n\n    return \"OK\"",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Project source file, celery",
      "display": "src/documents/bulk_edit.py",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Project full_name, celery",
      "display": "paperless-ngx/paperless-ngx",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Project stargazers_count, celery",
      "display": "48.3K",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Library name, temporalio",
      "display": "Temporal",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Monthly downloads, temporalio",
      "display": "47.9M",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "License, temporalio",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Package release, temporalio",
      "display": "1.36.1",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Package release date, temporalio",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Install, temporalio",
      "display": "pip install temporalio",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Quickstart, temporalio",
      "display": "import asyncio\nfrom temporalio.client import Client\n\nasync def main():\n    client = await Client.connect('localhost:7233')\n    print(await client.count_workflows())\n\nasyncio.run(main())",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Official description, temporalio",
      "display": "Provides the Python SDK for Temporal.",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Quickstart source file, temporalio",
      "display": "Client API: count_workflows",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Repository stars, temporalio",
      "display": "1.3K",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Python three ten installation, temporalio",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Configurable step retries, temporalio",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Python requirement, temporalio",
      "display": ">=3.11",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Controller model, temporalio",
      "display": "Durable workflow history and external Activities",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Library name, dbt-core",
      "display": "dbt-core",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Monthly downloads, dbt-core",
      "display": "25.1M",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "License, dbt-core",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Package release, dbt-core",
      "display": "1.12.7",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Package release date, dbt-core",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Install, dbt-core",
      "display": "pip install dbt-core",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Quickstart, dbt-core",
      "display": "from dbt.cli.main import dbtRunner\n\nrunner = dbtRunner()\nresult = runner.invoke([\"run\"])\nprint(result.success)\n",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Official description, dbt-core",
      "display": "Builds analytics the way engineers build applications.",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Quickstart source file, dbt-core",
      "display": "core/dbt/cli/main.py and reference/programmatic-invocations.md",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Repository stars, dbt-core",
      "display": "14.2K",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Python three ten installation, dbt-core",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Configurable step retries, dbt-core",
      "display": "Undocumented",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Python requirement, dbt-core",
      "display": ">=3.10",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Controller model, dbt-core",
      "display": "SQL model and resource DAG commands",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Project function, dbt-core",
      "display": "def run_command(\n    command: list[str], env: dict[str, str], cwd: str, callbacks: list[Callable] | None = None, **kwargs: Any  # type: ignore[type-arg]\n) -> dbtRunnerResult:\n    \"\"\"\n    Invokes the dbt command programmatically.\n    \"\"\"\n    # Exclude the dbt executable path from the command. This step is necessary because we are using the same\n    # command that is used by `InvocationMode.SUBPROCESS`, and in that scenario the first command is necessarily the path\n    # to the dbt executable.\n    cli_args = command[1:]\n    macro_errors: list[str] = []\n    # ``build_cmd`` puts flags on both sides of the subcommand — dbt global flags before it,\n    # ``add_global_flags()``/``dbt_cmd_flags`` after it — so a positional check is not safe here.\n    # dbt 2's ``dbtRunner`` rejects ``callbacks=`` with ``NotImplementedError`` and has no protobuf events to read.\n    if \"run-operation\" in cli_args and not is_dbt_v2():\n        callbacks = [*(callbacks or []), _collect_macro_errors(macro_errors)]\n    # ``exclude_dags_folder_from_sys_path`` must enter *before* ``change_working_directory`` so it\n    # resolves ``DAGS_FOLDER`` against the Airflow process cwd. A relative ``DAGS_FOLDER`` resolved\n    # after the chdir would point at the dbt project dir and fail to strip the real DAGs folder.\n    with exclude_dags_folder_from_sys_path(), change_working_directory(cwd), environ(env):\n        logger.info(\"Trying to run dbtRunner with:\\n %s\\n in %s\", cli_args, cwd)\n        runner = get_runner(callbacks=callbacks)\n        try:\n            result = runner.invoke(cli_args)\n        finally:\n            # Reset dbt adapters to release semaphores (run on all exit paths)\n            # See: https://github.com/astronomer/astronomer-cosmos/issues/2334\n            _cleanup_dbt_adapters()\n\n    _fill_missing_messages(result, macro_errors)\n\n    return result",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Project source file, dbt-core",
      "display": "cosmos/dbt/runner.py",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Project full_name, dbt-core",
      "display": "astronomer/astronomer-cosmos",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Project stargazers_count, dbt-core",
      "display": "1.3K",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Library name, rq",
      "display": "RQ",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Monthly downloads, rq",
      "display": "13.2M",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "License, rq",
      "display": "BSD-2-Clause",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Package release, rq",
      "display": "3.0.0",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Package release date, rq",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Install, rq",
      "display": "pip install rq",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Quickstart, rq",
      "display": "from redis import Redis\nfrom rq import Queue\n\njob = Queue(connection=Redis()).enqueue(sum, [1, 2, 3])\nprint(job.id)",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Official description, rq",
      "display": "Creates background jobs and processes them.",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Quickstart source file, rq",
      "display": "RQ docs: getting started",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Repository stars, rq",
      "display": "10.7K",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Python three ten installation, rq",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Configurable step retries, rq",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Python requirement, rq",
      "display": ">=3.10",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Controller model, rq",
      "display": "Redis-persisted jobs with dependency and worker state",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Project function, rq",
      "display": "def execute_job(self, job, queue):\n    statsd_client.incr(\"rq.jobs.running.{}\".format(queue.name))\n    statsd_client.incr(\"rq.jobs.started.{}\".format(queue.name))\n    try:\n        super().execute_job(job, queue)\n    finally:\n        statsd_client.decr(\"rq.jobs.running.{}\".format(queue.name))\n        try:\n            job_status = job.get_status()\n        except InvalidJobOperation:\n            # The job's hash already expired, so its outcome is unknown. rq 1.x returned\n            # None here, which counted as a failure; keep that.\n            job_status = None\n        if job_status == JobStatus.FINISHED:\n            statsd_client.incr(\"rq.jobs.finished.{}\".format(queue.name))\n        else:\n            statsd_client.incr(\"rq.jobs.failed.{}\".format(queue.name))",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Project source file, rq",
      "display": "redash/tasks/worker.py",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Project full_name, rq",
      "display": "getredash/redash",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Project stargazers_count, rq",
      "display": "28.9K",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Library name, dagster",
      "display": "Dagster",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Monthly downloads, dagster",
      "display": "11.0M",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "License, dagster",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Package release, dagster",
      "display": "1.13.30",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Package release date, dagster",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Install, dagster",
      "display": "pip install dagster",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Quickstart, dagster",
      "display": "from dagster import asset, materialize\n\n@asset\ndef greeting():\n    return 'Hello'\n\nresult = materialize([greeting])\n",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Repository stars, dagster",
      "display": "16.4K",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Python three ten installation, dagster",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Configurable step retries, dagster",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Python requirement, dagster",
      "display": "<3.15,>=3.11",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Controller model, dagster",
      "display": "Asset dependencies, materializations, and typed metadata",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Project function, dagster",
      "display": "@dg.asset(\n    group_name=\"raw_files\",\n    kinds={\"python\"},\n)\ndef taxi_zones_file() -> dg.MaterializeResult:\n    \"\"\"The raw CSV file for the taxi zones dataset. Sourced from the NYC Open Data portal.\"\"\"\n    raw_taxi_zones = requests.get(\n        \"https://community-engineering-artifacts.s3.us-west-2.amazonaws.com/dagster-university/data/taxi_zones.csv\"\n    )\n\n    with open(\n        constants.TAXI_ZONES_FILE_PATH, \"wb\", transport_params=smart_open_config\n    ) as output_file:\n        output_file.write(raw_taxi_zones.content)\n\n    num_rows = len(pd.read_csv(BytesIO(raw_taxi_zones.content)))\n\n    return dg.MaterializeResult(\n        metadata={\"Number of records\": dg.MetadataValue.int(num_rows)}\n    )",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Project source file, dagster",
      "display": "dagster_university/dagster_and_dbt/src/dagster_and_dbt/defs/assets/trips.py",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Project full_name, dagster",
      "display": "dagster-io/project-dagster-university",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Project stargazers_count, dagster",
      "display": "148",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Library name, prefect",
      "display": "Prefect",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Monthly downloads, prefect",
      "display": "8.8M",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "License, prefect",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Package release, prefect",
      "display": "3.9.3",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Package release date, prefect",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Install, prefect",
      "display": "pip install prefect",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Quickstart, prefect",
      "display": "from prefect import task\n\n@task\ndef add_integers(a: int, b: int) -> int:\n    return a + b\n\nresult = add_integers(1, 2)\n",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Repository stars, prefect",
      "display": "24.2K",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Python three ten installation, prefect",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Configurable step retries, prefect",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Python requirement, prefect",
      "display": "<3.16,>=3.11",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Controller model, prefect",
      "display": "Python flows and tasks with tracked runtime state",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Project function, prefect",
      "display": "@flow(name=\"Update ABC Snowflake Table\", retries=2, retry_delay_seconds=900)\ndef abc_elt_flow(deptCode_list: List[int]) -> None:\n\n    \"\"\"Flow which\n    1. Calculates the last successful load of data into Snowflake in order\n    to set the correct start_time.\n    2. Extracts the data since the start_time from ABC API into a df.\n    3. If new data from ABC API, loads df into Snowflake table.\n\n    Args:\n        - deptCode_list: A list of dept IDs each referenced as a\n        deptCode.\n    \"\"\"\n\n    target_table = \"ABC_TABLE\"\n\n    start_tms = get_start_time(target_table)\n\n    df = extract_data_from_api(start_tms, deptCode_list)\n\n    if isinstance(df, DataFrame):\n\n        # clean column names for Snowflake\n        df.columns = [col.replace(\".\", \"_\").upper() for col in df.columns]\n\n        # create ddl\n        ddl = \"\".join([col + \" STRING, \" for col in df.columns])[:-2]\n\n        load_data_into_snowflake(df, target_table, ddl)",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Project source file, prefect",
      "display": "flows-advanced/etl/elt-with-snowflake.py",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Project full_name, prefect",
      "display": "prefect-archive/prefect-recipes",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Project stargazers_count, prefect",
      "display": "260",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Library name, apache-airflow",
      "display": "Apache Airflow",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Monthly downloads, apache-airflow",
      "display": "6.5M",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "License, apache-airflow",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Package release, apache-airflow",
      "display": "3.4.0",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Package release date, apache-airflow",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Install, apache-airflow",
      "display": "pip install apache-airflow",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Quickstart, apache-airflow",
      "display": "from datetime import datetime\nfrom airflow.sdk import DAG\nfrom airflow.providers.standard.operators.empty import EmptyOperator\n\nwith DAG('first_pipeline', start_date=datetime(2024, 1, 1), schedule=None) as dag:\n    EmptyOperator(task_id='first_task')\n\nif __name__ == '__main__':\n    dag.test()",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Repository stars, apache-airflow",
      "display": "47.5K",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Python three ten installation, apache-airflow",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Configurable step retries, apache-airflow",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Python requirement, apache-airflow",
      "display": "!=3.15,>=3.11",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Controller model, apache-airflow",
      "display": "DAG and task-instance scheduling with TaskFlow data dependencies",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Project function, apache-airflow",
      "display": "def create_task_groups_based_on_folder(\n    dag: DAG,\n    node: DbtNode,\n    parent_task_group: TaskGroup | None,\n    task_groups: dict[str, TaskGroup],\n    use_hierarchical_naming: bool = False,\n) -> TaskGroup | None:\n    \"\"\"\n    Generate the parent task group for the given node based on the node's file path. If a TaskGroup is given, it will\n    be used as the parent group.\n\n    When ``use_hierarchical_naming`` is True, groups are cached by their cumulative folder path, so that folders\n    sharing a leaf name under different parents (e.g. ``staging/aurora`` and ``marts/aurora``) become distinct task\n    groups instead of collapsing into the first one created. When False (default), groups are cached by the bare\n    folder name, preserving the legacy behaviour — and the existing task-group ids that users may reference — at the\n    cost of collapsing same-named folders. See https://github.com/astronomer/astronomer-cosmos/pull/2824.\n    \"\"\"\n    task_group = None\n    # Use ``Path.parts`` (OS-agnostic) rather than ``str(path).split(\"/\")`` so folder grouping also\n    # works on Windows, where ``str(Path(...))`` uses backslash separators.\n    resource_file_path_parts = Path(node.original_file_path).parts[:-1]\n    cumulative_path = \"\"\n    for resource_file_path_part in resource_file_path_parts:\n        cumulative_path = f\"{cumulative_path}/{resource_file_path_part}\" if cumulative_path else resource_file_path_part\n        cache_key = cumulative_path if use_hierarchical_naming else resource_file_path_part\n        if cache_key in task_groups:\n            task_group = task_groups[cache_key]\n        else:\n            task_group = TaskGroup(dag=dag, group_id=resource_file_path_part, parent_group=parent_task_group)\n            task_groups[cache_key] = task_group\n        parent_task_group = task_group\n    return task_group",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Project source file, apache-airflow",
      "display": "cosmos/airflow/graph.py",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Project full_name, apache-airflow",
      "display": "astronomer/astronomer-cosmos",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Project stargazers_count, apache-airflow",
      "display": "1.3K",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Library name, dvc",
      "display": "DVC",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Monthly downloads, dvc",
      "display": "1.8M",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "License, dvc",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Package release, dvc",
      "display": "3.67.1",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Package release date, dvc",
      "display": "Mar 2026",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Install, dvc",
      "display": "pip install dvc",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Quickstart, dvc",
      "display": "import subprocess\n\nsubprocess.run(['dvc', 'init', '--no-scm'], check=True)\nsubprocess.run(['dvc', 'stage', 'add', '-n', 'hello', '-o', 'hello.txt', 'echo hello > hello.txt'], check=True)\nsubprocess.run(['dvc', 'repro'], check=True)",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Official description, dvc",
      "display": "Manages code and data together, like Git for data scientists.",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Quickstart source file, dvc",
      "display": "command-reference/repro",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "Repository stars, dvc",
      "display": "16.0K",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "Python three ten installation, dvc",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F269": {
      "label": "Configurable step retries, dvc",
      "display": "Undocumented",
      "asOf": "2026-11-20"
    },
    "F270": {
      "label": "Python requirement, dvc",
      "display": ">=3.9",
      "asOf": "2026-11-20"
    },
    "F271": {
      "label": "Controller model, dvc",
      "display": "Declared commands, dependencies, outputs, and reproducible stage graph",
      "asOf": "2026-11-20"
    },
    "F272": {
      "label": "Project function, dvc",
      "display": "def train_model():\n    try:\n        subprocess.run([\"dvc\", \"repro\"], check=True)\n        st.write(\"Training successfully completed\")\n    except subprocess.CalledProcessError as e:\n        st.error(f\"Error running DVC repro: {e}\")",
      "asOf": "2026-11-20"
    },
    "F273": {
      "label": "Project source file, dvc",
      "display": "ML Projects/Indian-Coin-Detection/app.py",
      "asOf": "2026-11-20"
    },
    "F274": {
      "label": "Project full_name, dvc",
      "display": "krishnaik06/The-Grand-Complete-Data-Science-Materials",
      "asOf": "2026-11-20"
    },
    "F275": {
      "label": "Project stargazers_count, dvc",
      "display": "9.2K",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Python data pipeline libraries Apache Airflow Dagster Prefect Luigi code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
