urlpattern 0.1.6__tar.gz → 0.1.8__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.
@@ -1,4 +1,4 @@
1
- # This file is autogenerated by maturin v1.10.2
1
+ # This file is autogenerated by maturin v1.11.5
2
2
  # To update, run
3
3
  #
4
4
  # maturin generate-ci --pytest github
@@ -37,8 +37,8 @@ jobs:
37
37
  - runner: ubuntu-22.04
38
38
  target: ppc64le
39
39
  steps:
40
- - uses: actions/checkout@v4
41
- - uses: actions/setup-python@v5
40
+ - uses: actions/checkout@v6
41
+ - uses: actions/setup-python@v6
42
42
  with:
43
43
  python-version: 3.x
44
44
  - name: Build wheels
@@ -49,7 +49,7 @@ jobs:
49
49
  sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
50
50
  manylinux: auto
51
51
  - name: Upload wheels
52
- uses: actions/upload-artifact@v4
52
+ uses: actions/upload-artifact@v5
53
53
  with:
54
54
  name: wheels-linux-${{ matrix.platform.target }}
55
55
  path: dist
@@ -93,8 +93,8 @@ jobs:
93
93
  - runner: ubuntu-22.04
94
94
  target: armv7
95
95
  steps:
96
- - uses: actions/checkout@v4
97
- - uses: actions/setup-python@v5
96
+ - uses: actions/checkout@v6
97
+ - uses: actions/setup-python@v6
98
98
  with:
99
99
  python-version: 3.x
100
100
  - name: Build wheels
@@ -105,7 +105,7 @@ jobs:
105
105
  sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
106
106
  manylinux: musllinux_1_2
107
107
  - name: Upload wheels
108
- uses: actions/upload-artifact@v4
108
+ uses: actions/upload-artifact@v5
109
109
  with:
110
110
  name: wheels-musllinux-${{ matrix.platform.target }}
111
111
  path: dist
@@ -147,14 +147,19 @@ jobs:
147
147
  platform:
148
148
  - runner: windows-latest
149
149
  target: x64
150
+ python_arch: x64
150
151
  - runner: windows-latest
151
152
  target: x86
153
+ python_arch: x86
154
+ - runner: windows-11-arm
155
+ target: aarch64
156
+ python_arch: arm64
152
157
  steps:
153
- - uses: actions/checkout@v4
154
- - uses: actions/setup-python@v5
158
+ - uses: actions/checkout@v6
159
+ - uses: actions/setup-python@v6
155
160
  with:
156
- python-version: 3.x
157
- architecture: ${{ matrix.platform.target }}
161
+ python-version: 3.13
162
+ architecture: ${{ matrix.platform.python_arch }}
158
163
  - name: Build wheels
159
164
  uses: PyO3/maturin-action@v1
160
165
  with:
@@ -162,12 +167,11 @@ jobs:
162
167
  args: --release --out dist --find-interpreter
163
168
  sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
164
169
  - name: Upload wheels
165
- uses: actions/upload-artifact@v4
170
+ uses: actions/upload-artifact@v5
166
171
  with:
167
172
  name: wheels-windows-${{ matrix.platform.target }}
168
173
  path: dist
169
174
  - name: pytest
170
- if: ${{ !startsWith(matrix.platform.target, 'aarch64') }}
171
175
  shell: bash
172
176
  run: |
173
177
  set -e
@@ -187,8 +191,8 @@ jobs:
187
191
  - runner: macos-latest
188
192
  target: aarch64
189
193
  steps:
190
- - uses: actions/checkout@v4
191
- - uses: actions/setup-python@v5
194
+ - uses: actions/checkout@v6
195
+ - uses: actions/setup-python@v6
192
196
  with:
193
197
  python-version: 3.x
194
198
  - name: Build wheels
@@ -198,7 +202,7 @@ jobs:
198
202
  args: --release --out dist --find-interpreter
199
203
  sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
200
204
  - name: Upload wheels
201
- uses: actions/upload-artifact@v4
205
+ uses: actions/upload-artifact@v5
202
206
  with:
203
207
  name: wheels-macos-${{ matrix.platform.target }}
204
208
  path: dist
@@ -214,14 +218,14 @@ jobs:
214
218
  sdist:
215
219
  runs-on: ubuntu-latest
216
220
  steps:
217
- - uses: actions/checkout@v4
221
+ - uses: actions/checkout@v6
218
222
  - name: Build sdist
219
223
  uses: PyO3/maturin-action@v1
220
224
  with:
221
225
  command: sdist
222
226
  args: --out dist
223
227
  - name: Upload sdist
224
- uses: actions/upload-artifact@v4
228
+ uses: actions/upload-artifact@v5
225
229
  with:
226
230
  name: wheels-sdist
227
231
  path: dist
@@ -240,14 +244,14 @@ jobs:
240
244
  # Used to generate artifact attestation
241
245
  attestations: write
242
246
  steps:
243
- - uses: actions/download-artifact@v4
247
+ - uses: actions/download-artifact@v6
244
248
  - name: Generate artifact attestation
245
- uses: actions/attest-build-provenance@v2
249
+ uses: actions/attest-build-provenance@v3
246
250
  with:
247
251
  subject-path: 'wheels-*/*'
252
+ - name: Install uv
253
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
254
+ uses: astral-sh/setup-uv@v7
248
255
  - name: Publish to PyPI
249
256
  if: ${{ startsWith(github.ref, 'refs/tags/') }}
250
- uses: PyO3/maturin-action@v1
251
- with:
252
- command: upload
253
- args: --non-interactive --skip-existing wheels-*/*
257
+ run: uv publish 'wheels-*/*'
@@ -156,9 +156,9 @@ dependencies = [
156
156
 
157
157
  [[package]]
158
158
  name = "libc"
159
- version = "0.2.178"
159
+ version = "0.2.180"
160
160
  source = "registry+https://github.com/rust-lang/crates.io-index"
161
- checksum = "37c93d8daa9d8a012fd8ab92f088405fb202ea0b6ab73ee2482ae66af4f42091"
161
+ checksum = "bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc"
162
162
 
163
163
  [[package]]
164
164
  name = "litemap"
@@ -210,9 +210,9 @@ dependencies = [
210
210
 
211
211
  [[package]]
212
212
  name = "proc-macro2"
213
- version = "1.0.104"
213
+ version = "1.0.106"
214
214
  source = "registry+https://github.com/rust-lang/crates.io-index"
215
- checksum = "9695f8df41bb4f3d222c95a67532365f569318332d03d5f3f67f37b20e6ebdf0"
215
+ checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
216
216
  dependencies = [
217
217
  "unicode-ident",
218
218
  ]
@@ -280,7 +280,7 @@ dependencies = [
280
280
 
281
281
  [[package]]
282
282
  name = "python-urlpattern"
283
- version = "0.1.6"
283
+ version = "0.1.8"
284
284
  dependencies = [
285
285
  "pyo3",
286
286
  "urlpattern",
@@ -288,9 +288,9 @@ dependencies = [
288
288
 
289
289
  [[package]]
290
290
  name = "quote"
291
- version = "1.0.42"
291
+ version = "1.0.44"
292
292
  source = "registry+https://github.com/rust-lang/crates.io-index"
293
- checksum = "a338cc41d27e6cc6dce6cefc13a0729dfbb81c262b1f519331575dd80ef3067f"
293
+ checksum = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4"
294
294
  dependencies = [
295
295
  "proc-macro2",
296
296
  ]
@@ -374,9 +374,9 @@ checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
374
374
 
375
375
  [[package]]
376
376
  name = "syn"
377
- version = "2.0.111"
377
+ version = "2.0.114"
378
378
  source = "registry+https://github.com/rust-lang/crates.io-index"
379
- checksum = "390cc9a294ab71bdb1aa2e99d13be9c753cd2d7bd6560c77118597410c4d2e87"
379
+ checksum = "d4d107df263a3013ef9b1879b0df87d706ff80f65a86ea879bd9c31f9b307c2a"
380
380
  dependencies = [
381
381
  "proc-macro2",
382
382
  "quote",
@@ -424,9 +424,9 @@ checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
424
424
 
425
425
  [[package]]
426
426
  name = "url"
427
- version = "2.5.7"
427
+ version = "2.5.8"
428
428
  source = "registry+https://github.com/rust-lang/crates.io-index"
429
- checksum = "08bc136a29a3d1758e07a9cca267be308aeebf5cfd5a10f3f67ab2097683ef5b"
429
+ checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
430
430
  dependencies = [
431
431
  "form_urlencoded",
432
432
  "idna",
@@ -436,9 +436,9 @@ dependencies = [
436
436
 
437
437
  [[package]]
438
438
  name = "urlpattern"
439
- version = "0.4.2"
439
+ version = "0.5.2"
440
440
  source = "registry+https://github.com/rust-lang/crates.io-index"
441
- checksum = "0f805818f843b548bacc19609eb3619dd2850e54746f5cada37927393c2ef4ec"
441
+ checksum = "37ffe0983283c841b6c6e9f116833a0061cc690c0eb67994d65bbdfa5cd3f24e"
442
442
  dependencies = [
443
443
  "icu_properties",
444
444
  "regex",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "python-urlpattern"
3
- version = "0.1.6"
3
+ version = "0.1.8"
4
4
  authors = ["방성범 (Bang Seongbeom) <bangseongbeom@gmail.com>"]
5
5
  edition = "2024"
6
6
  description = "An implementation of the URL Pattern Standard for Python written in Rust."
@@ -16,4 +16,4 @@ crate-type = ["cdylib"]
16
16
 
17
17
  [dependencies]
18
18
  pyo3 = "0.27.2"
19
- deno_urlpattern = { package = "urlpattern", version = "0.4.2" }
19
+ deno_urlpattern = { package = "urlpattern", version = "0.5.2" }
@@ -1,11 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: urlpattern
3
- Version: 0.1.6
3
+ Version: 0.1.8
4
4
  Classifier: Development Status :: 4 - Beta
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: License :: OSI Approved :: MIT License
7
7
  Classifier: Operating System :: OS Independent
8
8
  Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3 :: Only
9
10
  Classifier: Programming Language :: Python :: 3.8
10
11
  Classifier: Programming Language :: Python :: 3.9
11
12
  Classifier: Programming Language :: Python :: 3.10
@@ -13,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.11
13
14
  Classifier: Programming Language :: Python :: 3.12
14
15
  Classifier: Programming Language :: Python :: 3.13
15
16
  Classifier: Programming Language :: Python :: 3.14
16
- Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Programming Language :: Python :: Free Threading
17
18
  Classifier: Programming Language :: Python :: Implementation :: CPython
18
19
  Classifier: Programming Language :: Python :: Implementation :: PyPy
19
20
  Classifier: Programming Language :: Rust
@@ -26,8 +27,8 @@ Author-email: "방성범 (Bang Seongbeom)" <bangseongbeom@gmail.com>
26
27
  Requires-Python: >=3.8
27
28
  Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
28
29
  Project-URL: Homepage, https://github.com/urlpattern/python-urlpattern
29
- Project-URL: Repository, https://github.com/urlpattern/python-urlpattern.git
30
30
  Project-URL: Issues, https://github.com/urlpattern/python-urlpattern/issues
31
+ Project-URL: Repository, https://github.com/urlpattern/python-urlpattern.git
31
32
 
32
33
  # URL Pattern
33
34
 
@@ -44,6 +45,8 @@ The URL Pattern Standard is a web standard for URL pattern matching. It is usefu
44
45
 
45
46
  It's a thin wrapper of [denoland/rust-urlpattern](https://github.com/denoland/rust-urlpattern) with [PyO3](https://github.com/PyO3/pyo3) + [Maturin](https://github.com/PyO3/maturin).
46
47
 
48
+ The naming conventions follow [the standard](https://urlpattern.spec.whatwg.org/) as closely as possible, similar to [xml.dom](https://docs.python.org/3/library/xml.dom.html).
49
+
47
50
  ## Installation
48
51
 
49
52
  On Linux/UNIX or macOS:
@@ -86,6 +89,16 @@ result = pattern.exec({"pathname": "/users/4163/"})
86
89
  print(result["pathname"]["groups"]["id"]) # output: 4163
87
90
  ```
88
91
 
92
+ ### `baseURL`
93
+
94
+ ```py
95
+ from urlpattern import URLPattern
96
+
97
+ pattern = URLPattern({"pathname": "/admin/*"}, "https://example.com")
98
+ print(pattern.test({"pathname": "/admin/main/"}, "https://example.com")) # output: True
99
+ print(pattern.test("/admin/main/", "https://example.com")) # output: True
100
+ ```
101
+
89
102
  ### `ignoreCase`
90
103
 
91
104
  ```py
@@ -100,7 +113,7 @@ print(pattern.test("https://example.com/test")) # output: True
100
113
  print(pattern.test("https://example.com/TeST")) # output: True
101
114
  ```
102
115
 
103
- ### Simple WSGI app
116
+ ### A simple WSGI app
104
117
 
105
118
  ```py
106
119
  from wsgiref.simple_server import make_server
@@ -13,6 +13,8 @@ The URL Pattern Standard is a web standard for URL pattern matching. It is usefu
13
13
 
14
14
  It's a thin wrapper of [denoland/rust-urlpattern](https://github.com/denoland/rust-urlpattern) with [PyO3](https://github.com/PyO3/pyo3) + [Maturin](https://github.com/PyO3/maturin).
15
15
 
16
+ The naming conventions follow [the standard](https://urlpattern.spec.whatwg.org/) as closely as possible, similar to [xml.dom](https://docs.python.org/3/library/xml.dom.html).
17
+
16
18
  ## Installation
17
19
 
18
20
  On Linux/UNIX or macOS:
@@ -55,6 +57,16 @@ result = pattern.exec({"pathname": "/users/4163/"})
55
57
  print(result["pathname"]["groups"]["id"]) # output: 4163
56
58
  ```
57
59
 
60
+ ### `baseURL`
61
+
62
+ ```py
63
+ from urlpattern import URLPattern
64
+
65
+ pattern = URLPattern({"pathname": "/admin/*"}, "https://example.com")
66
+ print(pattern.test({"pathname": "/admin/main/"}, "https://example.com")) # output: True
67
+ print(pattern.test("/admin/main/", "https://example.com")) # output: True
68
+ ```
69
+
58
70
  ### `ignoreCase`
59
71
 
60
72
  ```py
@@ -69,7 +81,7 @@ print(pattern.test("https://example.com/test")) # output: True
69
81
  print(pattern.test("https://example.com/TeST")) # output: True
70
82
  ```
71
83
 
72
- ### Simple WSGI app
84
+ ### A simple WSGI app
73
85
 
74
86
  ```py
75
87
  from wsgiref.simple_server import make_server
@@ -1,5 +1,5 @@
1
1
  [build-system]
2
- requires = ["maturin>=1.10,<2.0"]
2
+ requires = ["maturin>=1.11,<2.0"]
3
3
  build-backend = "maturin"
4
4
 
5
5
  [project]
@@ -15,6 +15,7 @@ classifiers = [
15
15
  "License :: OSI Approved :: MIT License",
16
16
  "Operating System :: OS Independent",
17
17
  "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3 :: Only",
18
19
  "Programming Language :: Python :: 3.8",
19
20
  "Programming Language :: Python :: 3.9",
20
21
  "Programming Language :: Python :: 3.10",
@@ -22,7 +23,7 @@ classifiers = [
22
23
  "Programming Language :: Python :: 3.12",
23
24
  "Programming Language :: Python :: 3.13",
24
25
  "Programming Language :: Python :: 3.14",
25
- "Programming Language :: Python :: 3 :: Only",
26
+ "Programming Language :: Python :: Free Threading",
26
27
  "Programming Language :: Python :: Implementation :: CPython",
27
28
  "Programming Language :: Python :: Implementation :: PyPy",
28
29
  "Programming Language :: Rust",
@@ -35,6 +36,3 @@ dynamic = ["version"]
35
36
  Homepage = "https://github.com/urlpattern/python-urlpattern"
36
37
  Repository = "https://github.com/urlpattern/python-urlpattern.git"
37
38
  Issues = "https://github.com/urlpattern/python-urlpattern/issues"
38
-
39
- [tool.maturin]
40
- features = ["pyo3/extension-module"]
@@ -353,7 +353,7 @@ impl From<deno_urlpattern::Error> for Error {
353
353
  }
354
354
 
355
355
  /// A Python module implemented in Rust.
356
- #[pymodule]
356
+ #[pymodule(gil_used = false)]
357
357
  mod urlpattern {
358
358
  #[pymodule_export]
359
359
  use super::UrlPattern;
@@ -46,14 +46,17 @@ def test(entry):
46
46
 
47
47
  if isinstance(entry.get("expected_match"), dict):
48
48
  result = pattern.exec(*entry["inputs"])
49
- assert result
50
49
 
51
50
  for key in entry["expected_match"]:
52
51
  assert result[key] == entry["expected_match"][key]
53
52
 
53
+ else:
54
+ result = pattern.exec(*entry["inputs"])
55
+ assert result is None
56
+
54
57
  if "exactly_empty_components" in entry:
55
58
  result = pattern.exec(*entry["inputs"])
56
59
 
57
60
  for component in entry["exactly_empty_components"]:
58
61
  if result:
59
- assert result[component]["groups"] == {}
62
+ assert result[component]["groups"] == {}
@@ -3108,5 +3108,15 @@
3108
3108
  "hostname": { "input": "www.example.com", "groups": {} },
3109
3109
  "pathname": { "input": "/path/with/x", "groups": { "0": "path/with/x" } }
3110
3110
  }
3111
+ },
3112
+ {
3113
+ "pattern": [{ "hostname": ":domain(.*)" }],
3114
+ "inputs": [{ "hostname": "localhost" }],
3115
+ "expected_obj": {
3116
+ "hostname": ":domain(.*)"
3117
+ },
3118
+ "expected_match": {
3119
+ "hostname": { "input": "localhost", "groups": { "domain" : "localhost"} }
3120
+ }
3111
3121
  }
3112
3122
  ]
@@ -0,0 +1,107 @@
1
+ from typing import Optional, TypedDict, Union, overload
2
+
3
+ from typing_extensions import TypeAlias
4
+
5
+ URLPatternInput: TypeAlias = Union[str, URLPatternInit]
6
+
7
+ class URLPatternOptions(TypedDict, total=False):
8
+ ignoreCase: bool
9
+
10
+ class URLPattern:
11
+ @overload
12
+ def __init__(
13
+ self,
14
+ input: str,
15
+ baseURL: str,
16
+ options: URLPatternOptions = {},
17
+ ) -> None: ...
18
+ @overload
19
+ def __init__(
20
+ self,
21
+ input: str,
22
+ baseURL: str,
23
+ options: None,
24
+ ) -> None: ...
25
+ @overload
26
+ def __init__(
27
+ self,
28
+ input: URLPatternInit,
29
+ baseURL: str,
30
+ options: URLPatternOptions = {},
31
+ ) -> None: ...
32
+ @overload
33
+ def __init__(
34
+ self,
35
+ input: URLPatternInit,
36
+ baseURL: str,
37
+ options: None,
38
+ ) -> None: ...
39
+ @overload
40
+ def __init__(self, input: str, options: URLPatternOptions = {}) -> None: ...
41
+ @overload
42
+ def __init__(self, input: str, options: None) -> None: ...
43
+ @overload
44
+ def __init__(
45
+ self, input: URLPatternInit = {}, options: URLPatternOptions = {}
46
+ ) -> None: ...
47
+ @overload
48
+ def __init__(self, input: URLPatternInit, options: None) -> None: ...
49
+ @overload
50
+ def test(self, input: str, baseURL: Optional[str] = None) -> bool: ...
51
+ @overload
52
+ def test(
53
+ self, input: URLPatternInit = {}, baseURL: Optional[str] = None
54
+ ) -> bool: ...
55
+ @overload
56
+ def exec(
57
+ self, input: str, baseURL: Optional[str] = None
58
+ ) -> Optional[URLPatternResult]: ...
59
+ @overload
60
+ def exec(
61
+ self, input: URLPatternInit = {}, baseURL: Optional[str] = None
62
+ ) -> Optional[URLPatternResult]: ...
63
+ @property
64
+ def protocol(self) -> str: ...
65
+ @property
66
+ def username(self) -> str: ...
67
+ @property
68
+ def password(self) -> str: ...
69
+ @property
70
+ def hostname(self) -> str: ...
71
+ @property
72
+ def port(self) -> str: ...
73
+ @property
74
+ def pathname(self) -> str: ...
75
+ @property
76
+ def search(self) -> str: ...
77
+ @property
78
+ def hash(self) -> str: ...
79
+
80
+ class URLPatternInit(TypedDict, total=False):
81
+ protocol: str
82
+ username: str
83
+ password: str
84
+ hostname: str
85
+ port: str
86
+ pathname: str
87
+ search: str
88
+ hash: str
89
+ baseURL: str
90
+
91
+ class URLPatternResult(TypedDict):
92
+ inputs: list[URLPatternInput]
93
+
94
+ protocol: URLPatternComponentResult
95
+ username: URLPatternComponentResult
96
+ password: URLPatternComponentResult
97
+ hostname: URLPatternComponentResult
98
+ port: URLPatternComponentResult
99
+ pathname: URLPatternComponentResult
100
+ search: URLPatternComponentResult
101
+ hash: URLPatternComponentResult
102
+
103
+ class URLPatternComponentResult(TypedDict):
104
+ input: str
105
+ groups: dict[str, str]
106
+
107
+ URLPatternCompatible: TypeAlias = Union[str, URLPatternInit, URLPattern]
@@ -1,68 +0,0 @@
1
- from typing_extensions import TypeAlias, TypedDict, overload
2
-
3
- URLPatternInput: TypeAlias = str | URLPatternInit
4
-
5
- class URLPatternOptions(TypedDict, total=False):
6
- ignoreCase: bool
7
-
8
- class URLPattern:
9
- @overload
10
- def __init__(
11
- self,
12
- input: URLPatternInput,
13
- baseURL: str,
14
- options: URLPatternOptions | None = None,
15
- ): ...
16
- @overload
17
- def __init__(
18
- self, input: URLPatternInput, options: URLPatternOptions | None = None
19
- ): ...
20
- def test(self, input: URLPatternInput = {}, baseURL: str | None = None) -> bool: ...
21
- def exec(
22
- self, input: URLPatternInput = {}, baseURL: str | None = None
23
- ) -> URLPatternResult | None: ...
24
- @property
25
- def protocol(self) -> str: ...
26
- @property
27
- def username(self) -> str: ...
28
- @property
29
- def password(self) -> str: ...
30
- @property
31
- def hostname(self) -> str: ...
32
- @property
33
- def port(self) -> str: ...
34
- @property
35
- def pathname(self) -> str: ...
36
- @property
37
- def search(self) -> str: ...
38
- @property
39
- def hash(self) -> str: ...
40
-
41
- class URLPatternInit(TypedDict, total=False):
42
- protocol: str
43
- username: str
44
- password: str
45
- hostname: str
46
- port: str
47
- pathname: str
48
- search: str
49
- hash: str
50
- baseURL: str
51
-
52
- class URLPatternResult(TypedDict):
53
- inputs: list[URLPatternInput]
54
-
55
- protocol: URLPatternComponentResult
56
- username: URLPatternComponentResult
57
- password: URLPatternComponentResult
58
- hostname: URLPatternComponentResult
59
- port: URLPatternComponentResult
60
- pathname: URLPatternComponentResult
61
- search: URLPatternComponentResult
62
- hash: URLPatternComponentResult
63
-
64
- class URLPatternComponentResult(TypedDict):
65
- input: str
66
- groups: dict[str, str]
67
-
68
- URLPatternCompatible: TypeAlias = str | URLPatternInit | URLPattern
File without changes
File without changes
File without changes