workers-runtime-sdk 1.6.5__tar.gz → 1.6.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/CHANGELOG.md +13 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/PKG-INFO +1 -1
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/pyproject.toml +1 -1
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/asgi.py +6 -1
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/uv.lock +1 -1
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/.gitignore +0 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/AGENTS.md +0 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/README.md +0 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/_cloudflare_compat_flags.pyi +0 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/_pyodide_entrypoint_helper.pyi +0 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/_workers_sdk_entropy_import_context.pth +0 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/_workers_sdk_entropy_import_context.py +0 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/_workers_sdk_entropy_import_context_loader.py +0 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/__init__.py +0 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/blob.py +0 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/entrypoints.py +0 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/fetch.py +0 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/formdata.py +0 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/py.typed +0 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/request.py +0 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/response.py +0 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/rpc.py +0 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/types.py +0 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/utils.py +0 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/workflows.py +0 -0
- {workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/workers/wsgi.py +0 -0
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
<!-- version list -->
|
|
4
4
|
|
|
5
|
+
## v1.6.6 (2026-08-03)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- **runtime-sdk**: Percent-decode `scope["path"]` per the ASGI spec
|
|
10
|
+
([#169](https://github.com/cloudflare/workers-py/pull/169),
|
|
11
|
+
[`2138e44`](https://github.com/cloudflare/workers-py/commit/2138e44dc0bc419a1227497576154346da3ea522))
|
|
12
|
+
|
|
13
|
+
- **runtime-sdk**: Percent-decode scope["path"] per the ASGI spec
|
|
14
|
+
([#169](https://github.com/cloudflare/workers-py/pull/169),
|
|
15
|
+
[`2138e44`](https://github.com/cloudflare/workers-py/commit/2138e44dc0bc419a1227497576154346da3ea522))
|
|
16
|
+
|
|
17
|
+
|
|
5
18
|
## v1.6.5 (2026-08-03)
|
|
6
19
|
|
|
7
20
|
### Bug Fixes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: workers-runtime-sdk
|
|
3
|
-
Version: 1.6.
|
|
3
|
+
Version: 1.6.6
|
|
4
4
|
Summary: Python SDK for Cloudflare Workers
|
|
5
5
|
Project-URL: Homepage, https://github.com/cloudflare/workers-py
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/cloudflare/workers-py/issues
|
|
@@ -3,6 +3,7 @@ from asyncio import Event, Future, Queue, create_task, ensure_future
|
|
|
3
3
|
from collections.abc import Awaitable
|
|
4
4
|
from contextlib import contextmanager
|
|
5
5
|
from typing import Any
|
|
6
|
+
from urllib.parse import unquote
|
|
6
7
|
|
|
7
8
|
import js
|
|
8
9
|
|
|
@@ -55,7 +56,10 @@ def request_to_scope(req, env, ws=False):
|
|
|
55
56
|
url = URL.new(req.url)
|
|
56
57
|
assert url.protocol[-1] == ":"
|
|
57
58
|
scheme = url.protocol[:-1]
|
|
58
|
-
path
|
|
59
|
+
# ASGI requires "path" to be percent-decoded; the encoded original is
|
|
60
|
+
# available to apps via "raw_path".
|
|
61
|
+
# https://asgi.readthedocs.io/en/latest/specs/www.html#http-connection-scope
|
|
62
|
+
path = unquote(url.pathname)
|
|
59
63
|
assert "?".startswith(url.search[0:1])
|
|
60
64
|
query_string = url.search[1:].encode()
|
|
61
65
|
if ws:
|
|
@@ -69,6 +73,7 @@ def request_to_scope(req, env, ws=False):
|
|
|
69
73
|
"method": req.method,
|
|
70
74
|
"scheme": scheme,
|
|
71
75
|
"path": path,
|
|
76
|
+
"raw_path": url.pathname.encode(),
|
|
72
77
|
"query_string": query_string,
|
|
73
78
|
"type": ty,
|
|
74
79
|
"env": env,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/_workers_sdk_entropy_import_context.pth
RENAMED
|
File without changes
|
{workers_runtime_sdk-1.6.5 → workers_runtime_sdk-1.6.6}/src/_workers_sdk_entropy_import_context.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|