cloudflare / python-worker-hello-world

Python hello world for Cloudflare Workers
Apache License 2.0
276 stars 48 forks source link

Workers KV example #26

Open minecraftchest1 opened 1 year ago

minecraftchest1 commented 1 year ago

Their is an example in the readme for getting a value from a workers KV kew, but it is not clear on how the response is used. Can the example either be documented on what it is doing, or can a functional example be added that can be easily tested? I will gladly add clarification if needed.

koeninger commented 1 year ago

For a functional example replace the definition of handleRequest in index.py with the definition of handleRequest from the readme. If you have more specific questions about what it's doing, please ask.