lacuscore 1.13.3__tar.gz → 1.13.5__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,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lacuscore
3
- Version: 1.13.3
3
+ Version: 1.13.5
4
4
  Summary: Core of Lacus, usable as a module
5
5
  License: BSD-3-Clause
6
6
  Author: Raphaël Vinot
@@ -16,12 +16,22 @@ from pydantic_core import from_json
16
16
 
17
17
  from playwrightcapture.capture import CaptureResponse as PlaywrightCaptureResponse
18
18
 
19
- from playwright._impl._api_structures import Cookie # , StorageState
20
19
 
21
20
  if sys.version_info < (3, 12):
22
21
  from typing_extensions import TypedDict
22
+
23
+ class Cookie(TypedDict, total=False):
24
+ name: str
25
+ value: str
26
+ domain: str
27
+ path: str
28
+ expires: float
29
+ httpOnly: bool
30
+ secure: bool
31
+ sameSite: Literal["Lax", "None", "Strict"]
23
32
  else:
24
33
  from typing import TypedDict
34
+ from playwright._impl._api_structures import Cookie # , StorageState
25
35
 
26
36
 
27
37
  class LacusCoreException(Exception):
@@ -132,7 +132,7 @@ class LacusCore():
132
132
  user_agent: str | None=None,
133
133
  proxy: str | dict[str, str] | None=None,
134
134
  general_timeout_in_sec: int | None=None,
135
- cookies: list[dict[str, Any]] | None=None,
135
+ cookies: list[dict[str, Any]] | list[Cookie] | None=None,
136
136
  storage: dict[str, Any] | None=None,
137
137
  headers: dict[str, str] | None=None,
138
138
  http_credentials: dict[str, str] | None=None,
@@ -164,7 +164,7 @@ class LacusCore():
164
164
  user_agent: str | None=None,
165
165
  proxy: str | dict[str, str] | None=None,
166
166
  general_timeout_in_sec: int | None=None,
167
- cookies: list[dict[str, Any]] | None=None,
167
+ cookies: list[dict[str, Any]] | list[Cookie] | None=None,
168
168
  storage: dict[str, Any] | None=None,
169
169
  headers: dict[str, str] | None=None,
170
170
  http_credentials: dict[str, str] | None=None,
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "lacuscore"
3
- version = "1.13.3"
3
+ version = "1.13.5"
4
4
  description = "Core of Lacus, usable as a module"
5
5
  authors = [
6
6
  {name="Raphaël Vinot", email="raphael.vinot@circl.lu"}
File without changes
File without changes