This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hook |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = [ | |
| # "prefect>=3.0", | |
| # "prefect-dbt>=0.7.9", | |
| # "dbt-duckdb>=1.9", | |
| # ] | |
| # /// | |
| """ | |
| dbt + Prefect: Resume-from-Failure Demo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """proof of concept: image moderation with pydantic-ai. | |
| tests pydantic-ai's ability to analyze images and detect policy violations | |
| with different policy strictness levels. | |
| usage: | |
| uv run sandbox/test_image_moderation.py | |
| """ | |
| import asyncio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /// script | |
| # requires-python = ">=3.12" | |
| # dependencies = ["aiohttp", "pydantic-settings"] | |
| # /// | |
| """ | |
| Status Syndication Script | |
| Syncs status from status.zzstoatzz.io to various third-party services | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env -S uv run -q --with-editable . | |
| # /// script | |
| # dependencies = ["matplotlib", "networkx", "rich"] | |
| # /// | |
| """Animation showing the Prefect transfer process as a DAG visualization.""" | |
| import argparse | |
| import asyncio | |
| import os | |
| import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| did:plc:o53crari67ge7bvbv273lxln |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env -S uv run --quiet --script | |
| # /// script | |
| # dependencies = ["prefect"] | |
| # /// | |
| """ | |
| Asset management script for Prefect Cloud. | |
| This script provides CRUD operations for managing assets in Prefect Cloud workspaces. | |
| Assets are created automatically by Prefect when events are emitted, but this script |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 📦 django | |
| ├── ⚡ functions: setup | |
| ├── 📌 constants: VERSION | |
| ├── 📦 apps | |
| │ ├── 📜 __all__: AppConfig, apps | |
| │ ├── 📦 config | |
| │ │ ├── 🔷 classes: AppConfig | |
| │ │ └── 📌 constants: APPS_MODULE_NAME, MODELS_MODULE_NAME | |
| │ └── 📦 registry | |
| │ └── 🔷 classes: Apps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asyncio | |
| from prefect import flow, task | |
| @task | |
| async def sleepy_task() -> None: | |
| await asyncio.sleep(15) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from time import sleep | |
| from prefect import flow | |
| @flow | |
| def sleepy(n: int = 3600): | |
| sleep(n) |
NewerOlder