lacuscore 1.11.0__tar.gz → 1.11.2__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.1
2
2
  Name: lacuscore
3
- Version: 1.11.0
3
+ Version: 1.11.2
4
4
  Summary: Core of Lacus, usable as a module
5
5
  Home-page: https://github.com/ail-project/LacusCore
6
6
  License: BSD-3-Clause
@@ -20,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.9
20
20
  Classifier: Programming Language :: Python :: 3.10
21
21
  Classifier: Programming Language :: Python :: 3.11
22
22
  Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
23
24
  Classifier: Topic :: Internet
24
25
  Classifier: Topic :: Security
25
26
  Provides-Extra: docs
@@ -28,11 +29,12 @@ Requires-Dist: Sphinx (>=7.2,<8.0) ; (python_version >= "3.9" and python_version
28
29
  Requires-Dist: Sphinx (>=8,<9) ; (python_version >= "3.10") and (extra == "docs")
29
30
  Requires-Dist: async-timeout (>=4.0.3,<5.0.0) ; python_version < "3.11"
30
31
  Requires-Dist: defang (>=0.5.3,<0.6.0)
31
- Requires-Dist: dnspython (>=2.6.1,<3.0.0)
32
+ Requires-Dist: dnspython (<2.7) ; python_version < "3.9"
33
+ Requires-Dist: dnspython (>=2.7,<3.0) ; python_version >= "3.9"
32
34
  Requires-Dist: eval-type-backport (>=0.2.0,<0.3.0) ; python_version < "3.10"
33
- Requires-Dist: playwrightcapture[recaptcha] (>=1.26.0,<2.0.0)
34
- Requires-Dist: pydantic (>=2.9.1,<3.0.0)
35
- Requires-Dist: redis[hiredis] (>=5.0.8,<6.0.0)
35
+ Requires-Dist: playwrightcapture[recaptcha] (>=1.26.2,<2.0.0)
36
+ Requires-Dist: pydantic (>=2.9.2,<3.0.0)
37
+ Requires-Dist: redis[hiredis] (>=5.1.1,<6.0.0)
36
38
  Requires-Dist: requests (>=2.32.3,<3.0.0)
37
39
  Requires-Dist: ua-parser (>=0.18.0,<0.19.0)
38
40
  Project-URL: Documentation, https://lacuscore.readthedocs.io/en/latest/
@@ -99,6 +99,7 @@ class CaptureSettings(BaseModel):
99
99
  timezone_id: str | None = None
100
100
  locale: str | None = None
101
101
  color_scheme: str | None = None
102
+ java_script_enabled: bool = True
102
103
  viewport: dict[str, int] | None = None
103
104
  referer: str | None = None
104
105
  with_favicon: bool = True
@@ -131,6 +131,7 @@ class LacusCore():
131
131
  timezone_id: str | None=None,
132
132
  locale: str | None=None,
133
133
  color_scheme: str | None=None,
134
+ java_script_enabled: bool=True,
134
135
  viewport: dict[str, int] | None=None,
135
136
  referer: str | None=None,
136
137
  rendered_hostname_only: bool=True,
@@ -159,6 +160,7 @@ class LacusCore():
159
160
  timezone_id: str | None=None,
160
161
  locale: str | None=None,
161
162
  color_scheme: str | None=None,
163
+ java_script_enabled: bool=True,
162
164
  viewport: dict[str, int] | None=None,
163
165
  referer: str | None=None,
164
166
  rendered_hostname_only: bool=True,
@@ -189,6 +191,7 @@ class LacusCore():
189
191
  :param timezone_id: The timezone of the browser to pass to the capture
190
192
  :param locale: The locale of the browser to pass to the capture
191
193
  :param color_scheme: The prefered color scheme of the browser to pass to the capture
194
+ :param java_script_enabled: If False, javascript will be disabled when rendering the page
192
195
  :param viewport: The viewport of the browser used for capturing
193
196
  :param referer: The referer URL for the capture
194
197
  :param rendered_hostname_only: If depth > 0: only capture URLs with the same hostname as the rendered page
@@ -210,8 +213,8 @@ class LacusCore():
210
213
  'cookies': cookies, 'headers': headers,
211
214
  'http_credentials': http_credentials, 'geolocation': geolocation,
212
215
  'timezone_id': timezone_id, 'locale': locale,
213
- 'color_scheme': color_scheme, 'viewport': viewport,
214
- 'referer': referer, 'with_favicon': with_favicon,
216
+ 'color_scheme': color_scheme, 'java_script_enabled': java_script_enabled,
217
+ 'viewport': viewport, 'referer': referer, 'with_favicon': with_favicon,
215
218
  'allow_tracking': allow_tracking}
216
219
 
217
220
  try:
@@ -486,6 +489,7 @@ class LacusCore():
486
489
  capture.timezone_id = to_capture.timezone_id # type: ignore[assignment]
487
490
  capture.locale = to_capture.locale # type: ignore[assignment]
488
491
  capture.color_scheme = to_capture.color_scheme # type: ignore[assignment]
492
+ capture.java_script_enabled = to_capture.java_script_enabled
489
493
 
490
494
  # make sure the initialization doesn't take too long
491
495
  init_timeout = max(self.max_capture_time / 10, 5)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "lacuscore"
3
- version = "1.11.0"
3
+ version = "1.11.2"
4
4
  description = "Core of Lacus, usable as a module"
5
5
  authors = ["Raphaël Vinot <raphael.vinot@circl.lu>"]
6
6
  license = "BSD-3-Clause"
@@ -23,6 +23,7 @@ classifiers = [
23
23
  'Programming Language :: Python :: 3.10',
24
24
  'Programming Language :: Python :: 3.11',
25
25
  'Programming Language :: Python :: 3.12',
26
+ 'Programming Language :: Python :: 3.13',
26
27
  'Topic :: Security',
27
28
  'Topic :: Internet',
28
29
  ]
@@ -35,23 +36,26 @@ Sphinx = [
35
36
  {version = "^7.2", python = ">=3.9,<3.10", optional = true},
36
37
  {version = "^8", python = ">=3.10", optional = true}
37
38
  ]
38
- playwrightcapture = {extras = ["recaptcha"], version = "^1.26.0"}
39
+ playwrightcapture = {extras = ["recaptcha"], version = "^1.26.2"}
39
40
  defang = "^0.5.3"
40
41
  ua-parser = "^0.18.0"
41
- redis = {version = "^5.0.8", extras = ["hiredis"]}
42
- dnspython = "^2.6.1"
42
+ redis = {version = "^5.1.1", extras = ["hiredis"]}
43
+ dnspython = [
44
+ {version = "<2.7", python = "<3.9"},
45
+ {version = "^2.7", python = ">=3.9"}
46
+ ]
43
47
  async-timeout = {version = "^4.0.3", python = "<3.11"}
44
- pydantic = "^2.9.1"
48
+ pydantic = "^2.9.2"
45
49
  eval-type-backport = {version = "^0.2.0", python = "<3.10"}
46
50
 
47
51
  [tool.poetry.extras]
48
52
  docs = ["Sphinx"]
49
53
 
50
54
  [tool.poetry.group.dev.dependencies]
51
- mypy = "^1.11.2"
52
- types-redis = {version = "^4.6.0.20240903"}
53
- types-requests = "^2.32.0.20240914"
54
- types-beautifulsoup4 = "^4.12.0.20240907"
55
+ mypy = "^1.12.1"
56
+ types-redis = {version = "^4.6.0.20241004"}
57
+ types-requests = "^2.32.0.20241016"
58
+ types-beautifulsoup4 = "^4.12.0.20241020"
55
59
  ipython = [
56
60
  {version = "<8.13.0", python = "<3.9"},
57
61
  {version = "^8.18.0", python = ">=3.9"},
File without changes
File without changes