Skip to content

Commit abfdb68

Browse files
committed
chg: Add support for Trusted Timestamps, bump version
1 parent d4b0b8e commit abfdb68

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pylacus/api.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class CaptureResponse(TypedDict, total=False):
6969
children: list[Any] | None
7070
runtime: float | None
7171
potential_favicons: set[bytes] | None
72+
trusted_timestamps: dict[str, str] | None
7273

7374

7475
class CaptureResponseJson(TypedDict, total=False):
@@ -113,6 +114,7 @@ class CaptureSettings(TypedDict, total=False):
113114
referer: str | None
114115
with_screenshot: bool
115116
with_favicon: bool
117+
with_trusted_timestamps: bool
116118
allow_tracking: bool
117119
headless: bool
118120
init_script: str
@@ -190,6 +192,7 @@ def enqueue(self, *,
190192
referer: str | None=None,
191193
with_screenshot: bool=True,
192194
with_favicon: bool=False,
195+
with_trusted_timestamps: bool=False,
193196
allow_tracking: bool=False,
194197
headless: bool=True,
195198
init_script: str | None=None,
@@ -224,6 +227,7 @@ def enqueue(self, *,
224227
referer: str | None=None,
225228
with_screenshot: bool=True,
226229
with_favicon: bool=False,
230+
with_trusted_timestamps: bool=False,
227231
allow_tracking: bool=False,
228232
headless: bool=True,
229233
init_script: str | None=None,
@@ -240,7 +244,8 @@ def enqueue(self, *,
240244
to_enqueue = settings
241245
else:
242246
to_enqueue = {'depth': depth, 'java_script_enabled': java_script_enabled,
243-
'with_favicon': with_favicon, 'allow_tracking': allow_tracking,
247+
'with_favicon': with_favicon, 'with_trusted_timestamps': with_trusted_timestamps,
248+
'allow_tracking': allow_tracking,
244249
'headless': headless, 'with_screenshot': with_screenshot,
245250
'rendered_hostname_only': rendered_hostname_only,
246251
'force': force, 'recapture_interval': recapture_interval, 'priority': priority}

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pylacus"
3-
version = "1.17.0"
3+
version = "1.17.1"
44
description = "Python CLI and module for lacus"
55
authors = [
66
{name="Raphaël Vinot", email="raphael.vinot@circl.lu"}
@@ -38,7 +38,7 @@ docs = ["Sphinx (>=8.2.3) ; python_version >= \"3.11\""]
3838
[tool.poetry.group.dev.dependencies]
3939
mypy = "^1.17.1"
4040
types-requests = "^2.32.4.20250809"
41-
pytest = "^8.4.1"
41+
pytest = "^8.4.2"
4242

4343
[build-system]
4444
requires = ["poetry-core>=2.0"]

0 commit comments

Comments
 (0)