PlaywrightCapture 1.28.1__py3-none-any.whl → 1.28.2__py3-none-any.whl

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.
@@ -17,7 +17,7 @@ from dataclasses import dataclass
17
17
  from io import BytesIO
18
18
  from logging import LoggerAdapter, Logger
19
19
  from tempfile import NamedTemporaryFile
20
- from typing import Any, TypedDict, Literal, TYPE_CHECKING
20
+ from typing import Any, Literal, TYPE_CHECKING
21
21
  from collections.abc import MutableMapping, Iterator
22
22
  from urllib.parse import urlparse, unquote, urljoin, urlsplit, urlunsplit
23
23
  from zipfile import ZipFile
@@ -46,6 +46,11 @@ if sys.version_info < (3, 11):
46
46
  else:
47
47
  from asyncio import timeout
48
48
 
49
+ if sys.version_info < (3, 12):
50
+ from typing_extensions import TypedDict
51
+ else:
52
+ from typing import TypedDict
53
+
49
54
  if TYPE_CHECKING:
50
55
  from playwright._impl._api_structures import (SetCookieParam, Geolocation,
51
56
  HttpCredentials, Headers,
@@ -2,13 +2,19 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ import sys
6
+
5
7
  from collections import defaultdict
6
- from typing import TypedDict
7
8
 
8
9
  from playwright.sync_api import sync_playwright
9
10
 
10
11
  from .exceptions import UnknownPlaywrightDeviceType
11
12
 
13
+ if sys.version_info < (3, 12):
14
+ from typing_extensions import TypedDict
15
+ else:
16
+ from typing import TypedDict
17
+
12
18
 
13
19
  class PlaywrightDevice(TypedDict):
14
20
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: PlaywrightCapture
3
- Version: 1.28.1
3
+ Version: 1.28.2
4
4
  Summary: A simple library to capture websites using playwright
5
5
  License: BSD-3-Clause
6
6
  Author: Raphaël Vinot
@@ -29,6 +29,7 @@ Requires-Dist: playwright-stealth (>=1.0.6)
29
29
  Requires-Dist: puremagic (>=1.28)
30
30
  Requires-Dist: pydub (>=0.25.1) ; extra == "recaptcha"
31
31
  Requires-Dist: setuptools (>=77.0.1)
32
+ Requires-Dist: typing-extensions (>=4.12.2,<5.0.0) ; python_version < "3.12"
32
33
  Requires-Dist: tzdata (>=2025.1)
33
34
  Requires-Dist: w3lib (>=2.3.1)
34
35
  Project-URL: Issues, https://github.com/Lookyloo/PlaywrightCapture/issues
@@ -0,0 +1,9 @@
1
+ playwrightcapture/__init__.py,sha256=F90Y8wYS13tDjgsfjuFrCfmzQfdnH44G-ovuilJfLEE,511
2
+ playwrightcapture/capture.py,sha256=UbZ8kA_JLoWdu2-vxS0-ScV41DEp-WyTk1bYRY5YANA,81515
3
+ playwrightcapture/exceptions.py,sha256=LhGJQCGHzEu7Sx2Dfl28OFeDg1OmrwufFjAWXlxQnEA,366
4
+ playwrightcapture/helpers.py,sha256=Xqs09zHhzAWnpBtQ0A9YAxg80P3Lj7aBj5M2WuEr0so,1843
5
+ playwrightcapture/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ playwrightcapture-1.28.2.dist-info/LICENSE,sha256=uwFc39fTLacBUG-XTuxX6IQKTKhg4z14gWOLt3ex4Ho,1775
7
+ playwrightcapture-1.28.2.dist-info/METADATA,sha256=a_Jpi4OyZcmYkV82L-cHdPTuC_woBOlSnj-VTorJZKI,3075
8
+ playwrightcapture-1.28.2.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
9
+ playwrightcapture-1.28.2.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- playwrightcapture/__init__.py,sha256=F90Y8wYS13tDjgsfjuFrCfmzQfdnH44G-ovuilJfLEE,511
2
- playwrightcapture/capture.py,sha256=jJhNod1doJ8mEm4noBJVyoZ3xBU6_nU6X1Kgdr891ns,81411
3
- playwrightcapture/exceptions.py,sha256=LhGJQCGHzEu7Sx2Dfl28OFeDg1OmrwufFjAWXlxQnEA,366
4
- playwrightcapture/helpers.py,sha256=DAucZLzVzsdw6LUWP26lt2gVbvpkClb1aO4417uHLao,1745
5
- playwrightcapture/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- playwrightcapture-1.28.1.dist-info/LICENSE,sha256=uwFc39fTLacBUG-XTuxX6IQKTKhg4z14gWOLt3ex4Ho,1775
7
- playwrightcapture-1.28.1.dist-info/METADATA,sha256=DWprmMDfV5jSmnhqVaCp25MRJ-0wF9mdJbfHK-QYZSI,2998
8
- playwrightcapture-1.28.1.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
9
- playwrightcapture-1.28.1.dist-info/RECORD,,