{"id":27131,"library":"mad-prefect","title":"Mad Prefect","description":"A collection of Prefect utilities and task libraries for building robust data pipelines. Current version 2.3.0, requires Python <3.13 and >=3.11. It provides custom blocks, flows, and integrations commonly used with Prefect.","status":"active","version":"2.3.0","language":"python","source_language":"en","source_url":"https://github.com/mad-lab/mad-prefect","tags":["prefect","data-pipelines","utils"],"install":[{"cmd":"pip install mad-prefect","lang":"bash","label":"Latest"}],"dependencies":[{"reason":"Required: mad-prefect is a wrapper/utility for Prefect.","package":"prefect","optional":false}],"imports":[{"wrong":"from mad_prefect import MadBlock","symbol":"MadBlock","correct":"from mad_prefect import MadBlock"}],"quickstart":{"code":"from mad_prefect import MadFlow, MadBlock\nimport prefect\n\n@MadFlow\ndef my_flow():\n    block = MadBlock.load(\"my-block\")\n    return block.run()\n\nif __name__ == \"__main__\":\n    my_flow()","lang":"python","description":"Basic flow using MadBlock and MadFlow decorator."},"warnings":[{"fix":"Use `from mad_prefect import MadBlock, MadTask` instead.","message":"In v2.0.0, the package restructured exports: `MadBlock` and `MadTask` are no longer in subpackages. Old imports from `mad_prefect.blocks` and `mad_prefect.tasks` will break.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Check `mad-prefect`'s `install_requires` and match Prefect version exactly.","message":"MadPrefect requires Prefect >=2.0 but also has upper bounds on Prefect version. Mixing incompatible Prefect versions leads to cryptic import errors.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'2.3.0':18 '3.11':23 '3.13':21 'block':27 'build':12 'collect':4 'common':31 'current':16 'custom':26 'data':14,37 'data-pipelin':36 'flow':28 'integr':30 'librari':10 'mad':1 'pipelin':15,38 'prefect':2,6,34,35 'provid':25 'python':20 'requir':19 'robust':13 'task':9 'use':32 'util':7,39 'version':17","created_at":"2026-05-01T17:44:40.053923+00:00","updated_at":"2026-05-01T17:44:40.053923+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'MadBlock' from 'mad_prefect' (unknown location)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/mad-prefect/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["workflow","data","devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}