https://github.com/zzstoatzz/prefect-code-examples
LLM-friendly place for prefect code examples
https://github.com/zzstoatzz/prefect-code-examples
Last synced: 2 months ago
JSON representation
LLM-friendly place for prefect code examples
- Host: GitHub
- URL: https://github.com/zzstoatzz/prefect-code-examples
- Owner: zzstoatzz
- Created: 2024-02-16T04:34:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-17T10:47:37.000Z (over 1 year ago)
- Last Synced: 2025-03-25T19:12:31.336Z (3 months ago)
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `prefect` code examples
Contributing
## steps for contributing an example
- clone this repo
- `pip install httpx pre-commit pydantic`
- `pre-commit install`
- create a new file in the `examples` directory under an appropriate subdirectory
- include helpful comments in your example
- open a PR!## examples
### `flows`: using the `@flow` decorator
- [basic flow usage](examples/flows/basic.py)
- [basic async flow usage](examples/flows/async_basic.py)### `tasks`: using the `@task` decorator
- [basic task usage](examples/tasks/basic.py)
- [submitting task runs](examples/tasks/submitting.py)### `deployments`: remote configuration and execution of flows
- [(serve) a basic ETL that processes inputs](examples/deployments/serve.py)