Supercharge your Python code with Blocks
summary
Prefect blocks store reusable configuration as Python objects that are create via GUI or Python, expose code snippets for consumption, and persist on a server (default SQLite, Postgres or Prefect Cloud). Secrets are encrypted at rest and values are obfuscated in the UI. Built-in blocks include AWS S3 block for remote code and notification blocks (Slack, email, webhooks); custom blocks subclass a base class and register via the CLI. Adoption is real — Prefect reports two billion task runs and production usage across deployments.
AI-written summary · about
chapters (29)
- 0:00Python Blocks intro
- 1:51What are Prefect Blocks
- 2:54Blocks benefits
- 3:58Where Blocks stored
- 4:41Blocks as connectors
- 5:22Creating Prefect Blocks
- 7:26Secure config sharing
- 9:34Blocks history
- 12:03Python and Streamlit
- 13:50Prefect origins
- 14:55Built-in Block types
- 16:42AWS S3 Block
- 17:25Notification Blocks
- 18:29Extending with libraries
- 19:11Custom Blocks creation
- 20:14CLI for Blocks
- 20:56Blocks in practice
- 21:58Blocks in Prefect
- 22:39Reuse and sharing
- 23:00Why Prefect for flows
- 24:45Adopting Prefect
- 25:49Notifications and retries
- 26:11Prefect Cloud overview
- 27:12Blocks as multipliers
- 28:37When to use Blocks
- 29:40Q&A: Expiration & deps
- 31:45Real-world Block uses
- 33:53Why call them Blocks
- 35:17Q&A: Block limits
related talks
28mBetter Python Coding with Prefect Blocks
31mReal python, made of blocks
29mFantastic Blocks And Where To Hide Them
05mUsing Prefect to Build Geospatial Data Pipelines
30mAn Admin's Cornucopia - Python Is More Than Just A Better Bash
01h 02mUsing Python to Power Serverless Applications
19mPython for Cloud Services and Infrastructure Management
34mSecure Python Development: Tips, Tricks, and Tools
