These examples demonstrate how to use the Cloudflare API within interactive Python notebooks. They cover a number of relatively simple tasks, from analysing logs to writing billing reports, storing files in R2, or querying D1 databases. They aren't meant as complete solutions, but rather as starting points for your own ideas and explorations.
Each one of these notebooks is served from Cloudflare Workers and runs entirely within your browser, powered by Marimo (you can learn more about it at marimo.io and pyodide.org). If you wish to run heavier tasks, you may want to consider running them as an application instead.
See our open source repository on GitHub to learn more, contribute, and submit feedback!
If you have any questions, feel free to join our Discord server.