lacuscore 1.14.3__tar.gz → 1.15.1__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.
- {lacuscore-1.14.3 → lacuscore-1.15.1}/PKG-INFO +3 -3
- {lacuscore-1.14.3 → lacuscore-1.15.1}/lacuscore/helpers.py +3 -3
- {lacuscore-1.14.3 → lacuscore-1.15.1}/lacuscore/lacuscore.py +10 -10
- {lacuscore-1.14.3 → lacuscore-1.15.1}/pyproject.toml +6 -6
- {lacuscore-1.14.3 → lacuscore-1.15.1}/LICENSE +0 -0
- {lacuscore-1.14.3 → lacuscore-1.15.1}/README.md +0 -0
- {lacuscore-1.14.3 → lacuscore-1.15.1}/lacuscore/__init__.py +0 -0
- {lacuscore-1.14.3 → lacuscore-1.15.1}/lacuscore/lacus_monitoring.py +0 -0
- {lacuscore-1.14.3 → lacuscore-1.15.1}/lacuscore/py.typed +0 -0
- {lacuscore-1.14.3 → lacuscore-1.15.1}/lacuscore/task_logger.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: lacuscore
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.15.1
|
4
4
|
Summary: Core of Lacus, usable as a module
|
5
5
|
License: BSD-3-Clause
|
6
6
|
Author: Raphaël Vinot
|
@@ -26,8 +26,8 @@ Requires-Dist: async-timeout (>=5.0.1) ; python_version < "3.11"
|
|
26
26
|
Requires-Dist: defang (>=0.5.3)
|
27
27
|
Requires-Dist: dnspython (>=2.7.0)
|
28
28
|
Requires-Dist: eval-type-backport (>=0.2.2) ; python_version < "3.10"
|
29
|
-
Requires-Dist: playwrightcapture[recaptcha] (>=1.
|
30
|
-
Requires-Dist: pydantic (>=2.11.
|
29
|
+
Requires-Dist: playwrightcapture[recaptcha] (>=1.30.0)
|
30
|
+
Requires-Dist: pydantic (>=2.11.5)
|
31
31
|
Requires-Dist: redis[hiredis] (>=5.3.0,<6.0.0)
|
32
32
|
Requires-Dist: requests (>=2.32.3)
|
33
33
|
Requires-Dist: typing-extensions (>=4.12.2,<5.0.0) ; python_version < "3.12"
|
@@ -122,12 +122,12 @@ class CaptureSettings(BaseModel):
|
|
122
122
|
storage: dict[str, Any] | None = None
|
123
123
|
headers: dict[str, str] | None = None
|
124
124
|
http_credentials: dict[str, str] | None = None
|
125
|
-
geolocation: dict[str, float] | None = None
|
125
|
+
geolocation: dict[str, str | int | float] | None = None
|
126
126
|
timezone_id: str | None = None
|
127
127
|
locale: str | None = None
|
128
|
-
color_scheme:
|
128
|
+
color_scheme: Literal['dark', 'light', 'no-preference', 'null'] | None = None
|
129
129
|
java_script_enabled: bool = True
|
130
|
-
viewport: dict[str, int] | None = None
|
130
|
+
viewport: dict[str, str | int] | None = None
|
131
131
|
referer: str | None = None
|
132
132
|
with_screenshot: bool = True
|
133
133
|
with_favicon: bool = True
|
@@ -269,7 +269,7 @@ class LacusCore():
|
|
269
269
|
p = self.redis.pipeline()
|
270
270
|
p.set(f'lacus:query_hash:{hash_query}', perma_uuid, nx=True, ex=recapture_interval)
|
271
271
|
p.hset(f'lacus:capture_settings:{perma_uuid}', mapping=to_enqueue.redis_dump())
|
272
|
-
p.expire(f'lacus:capture_settings:{perma_uuid}', self.max_capture_time *
|
272
|
+
p.expire(f'lacus:capture_settings:{perma_uuid}', self.max_capture_time * 10)
|
273
273
|
p.zadd('lacus:to_capture', {perma_uuid: priority if priority is not None else 0})
|
274
274
|
try:
|
275
275
|
p.execute()
|
@@ -527,16 +527,16 @@ class LacusCore():
|
|
527
527
|
headless=to_capture.headless,
|
528
528
|
uuid=uuid) as capture:
|
529
529
|
# required by Mypy: https://github.com/python/mypy/issues/3004
|
530
|
-
capture.headers = to_capture.headers
|
530
|
+
capture.headers = to_capture.headers
|
531
531
|
capture.cookies = cookies # type: ignore[assignment]
|
532
|
-
capture.storage = to_capture.storage
|
533
|
-
capture.viewport = to_capture.viewport
|
534
|
-
capture.user_agent = to_capture.user_agent
|
535
|
-
capture.http_credentials = to_capture.http_credentials
|
536
|
-
capture.geolocation = to_capture.geolocation
|
537
|
-
capture.timezone_id = to_capture.timezone_id
|
538
|
-
capture.locale = to_capture.locale
|
539
|
-
capture.color_scheme = to_capture.color_scheme
|
532
|
+
capture.storage = to_capture.storage
|
533
|
+
capture.viewport = to_capture.viewport
|
534
|
+
capture.user_agent = to_capture.user_agent
|
535
|
+
capture.http_credentials = to_capture.http_credentials
|
536
|
+
capture.geolocation = to_capture.geolocation
|
537
|
+
capture.timezone_id = to_capture.timezone_id
|
538
|
+
capture.locale = to_capture.locale
|
539
|
+
capture.color_scheme = to_capture.color_scheme
|
540
540
|
capture.java_script_enabled = to_capture.java_script_enabled
|
541
541
|
|
542
542
|
# make sure the initialization doesn't take too long
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "lacuscore"
|
3
|
-
version = "1.
|
3
|
+
version = "1.15.1"
|
4
4
|
description = "Core of Lacus, usable as a module"
|
5
5
|
authors = [
|
6
6
|
{name="Raphaël Vinot", email="raphael.vinot@circl.lu"}
|
@@ -15,13 +15,13 @@ dynamic = [ "classifiers" ]
|
|
15
15
|
|
16
16
|
dependencies = [
|
17
17
|
"requests (>=2.32.3)",
|
18
|
-
"playwrightcapture[recaptcha] (>=1.
|
18
|
+
"playwrightcapture[recaptcha] (>=1.30.0)",
|
19
19
|
"defang (>=0.5.3)",
|
20
20
|
"ua-parser[regex] (>=1.0.1)",
|
21
21
|
"redis[hiredis] (>=5.3.0,<6.0.0)",
|
22
22
|
"dnspython (>=2.7.0)",
|
23
23
|
"async-timeout (>=5.0.1) ; python_version < \"3.11\"",
|
24
|
-
"pydantic (>=2.11.
|
24
|
+
"pydantic (>=2.11.5)",
|
25
25
|
"eval-type-backport (>=0.2.2) ; python_version < \"3.10\"",
|
26
26
|
"typing-extensions (>=4.12.2,<5.0.0) ; python_version < \"3.12\""
|
27
27
|
]
|
@@ -47,11 +47,11 @@ classifiers = [
|
|
47
47
|
docs = ["Sphinx (>=8.2.3) ; python_version >= \"3.11\""]
|
48
48
|
|
49
49
|
[tool.poetry.group.dev.dependencies]
|
50
|
-
mypy = "^1.
|
50
|
+
mypy = "^1.16.0"
|
51
51
|
types-redis = {version = "^4.6.0.20241004"}
|
52
|
-
types-requests = "^2.32.0.
|
52
|
+
types-requests = "^2.32.0.20250602"
|
53
53
|
types-beautifulsoup4 = "^4.12.0.20250516"
|
54
|
-
pytest = "^8.
|
54
|
+
pytest = "^8.4.0"
|
55
55
|
|
56
56
|
[build-system]
|
57
57
|
requires = ["poetry-core>=2.0"]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|