Skip to content

Workers: add Python Durable Object changelog. #22411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2025

Conversation

dom96
Copy link
Contributor

@dom96 dom96 commented May 14, 2025

Summary

Durable Objects are now supported in Python.

Documentation checklist

@dom96 dom96 requested review from a team as code owners May 14, 2025 10:50
Copy link
Contributor

hyperlint-ai bot commented May 14, 2025

Howdy and thanks for contributing to our repo. The Cloudflare team reviews new, external PRs within two (2) weeks. If it's been two weeks or longer without any movement, please tag the PR Assignees in a comment.

We review internal PRs within 1 week. If it's something urgent or has been sitting without a comment, start a thread in the Developer Docs space internally.


PR Change Summary

Added support for Durable Objects in Python Workers, enabling stateful applications.

  • Introduced Durable Objects functionality for Python Workers
  • Provided example code for defining and using Durable Objects in Python
  • Updated Wrangler configuration instructions for Durable Objects

Added Files

  • src/content/changelog/workers/2025-05-14-python-worker-durable-object.mdx

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add hyperlint-ignore to the PR to ignore the link check for this PR.

Copy link
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/changelog/ @cloudflare/pm-changelogs, @cloudflare/pcx-cloudflare-one


from urllib.parse import urlparse

class MyDurableObject(DurableObject):
Copy link
Contributor

@mikenomitch mikenomitch May 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we show both sql and using it just as KV? - I think both would be useful?

(feel free to reject suggestion if you disagree)

Also are we able to do non-fetch handlers on the DO? - Might be worth showing a set/get with RPC calls if so. Not that we want this to be full docs, but I think setting/getting is pretty core to it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the KV backend is no longer recommended: https://developers.cloudflare.com/durable-objects/api/storage-api/.

As for the RPC calls: that will come in a separate changelog for Python Workers RPC :)

Copy link
Contributor

@mikenomitch mikenomitch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving so I'm not the blocker later, but left some suggestions.

@dom96 dom96 force-pushed the dominik/do-python-changelog branch from 8f6194e to ae51642 Compare May 15, 2025 13:50
@dom96 dom96 merged commit d0920ce into production May 15, 2025
10 checks passed
@dom96 dom96 deleted the dominik/do-python-changelog branch May 15, 2025 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants