lacuscore 1.12.7__py3-none-any.whl → 1.12.9__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.
- lacuscore/helpers.py +3 -2
- {lacuscore-1.12.7.dist-info → lacuscore-1.12.9.dist-info}/METADATA +13 -13
- {lacuscore-1.12.7.dist-info → lacuscore-1.12.9.dist-info}/RECORD +5 -5
- {lacuscore-1.12.7.dist-info → lacuscore-1.12.9.dist-info}/WHEEL +1 -1
- {lacuscore-1.12.7.dist-info → lacuscore-1.12.9.dist-info}/LICENSE +0 -0
lacuscore/helpers.py
CHANGED
@@ -9,7 +9,7 @@ from logging import LoggerAdapter
|
|
9
9
|
from typing import Any, TypedDict, Literal
|
10
10
|
from collections.abc import MutableMapping, Mapping
|
11
11
|
|
12
|
-
from defang import refang
|
12
|
+
from defang import refang
|
13
13
|
from pydantic import BaseModel, field_validator, model_validator, ValidationError
|
14
14
|
from pydantic_core import from_json
|
15
15
|
|
@@ -149,7 +149,8 @@ class CaptureSettings(BaseModel):
|
|
149
149
|
@classmethod
|
150
150
|
def load_url(cls, url: str | None) -> str | None:
|
151
151
|
if isinstance(url, str):
|
152
|
-
|
152
|
+
# In case we get a defanged url at this stage.
|
153
|
+
_url = refang(url) # type: ignore[no-untyped-call]
|
153
154
|
if (not _url.lower().startswith('data:')
|
154
155
|
and not _url.lower().startswith('http:')
|
155
156
|
and not _url.lower().startswith('https:')
|
@@ -1,8 +1,7 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.3
|
2
2
|
Name: lacuscore
|
3
|
-
Version: 1.12.
|
3
|
+
Version: 1.12.9
|
4
4
|
Summary: Core of Lacus, usable as a module
|
5
|
-
Home-page: https://github.com/ail-project/LacusCore
|
6
5
|
License: BSD-3-Clause
|
7
6
|
Author: Raphaël Vinot
|
8
7
|
Author-email: raphael.vinot@circl.lu
|
@@ -23,17 +22,18 @@ Classifier: Programming Language :: Python :: 3.13
|
|
23
22
|
Classifier: Topic :: Internet
|
24
23
|
Classifier: Topic :: Security
|
25
24
|
Provides-Extra: docs
|
26
|
-
Requires-Dist: Sphinx (>=8
|
27
|
-
Requires-Dist: async-timeout (>=
|
28
|
-
Requires-Dist: defang (>=0.5.3
|
29
|
-
Requires-Dist: dnspython (>=2.7.0
|
30
|
-
Requires-Dist: eval-type-backport (>=0.2.
|
31
|
-
Requires-Dist: playwrightcapture[recaptcha] (>=1.27.
|
32
|
-
Requires-Dist: pydantic (>=2.10.
|
33
|
-
Requires-Dist: redis[hiredis] (>=5.2.1
|
34
|
-
Requires-Dist: requests (>=2.32.3
|
35
|
-
Requires-Dist: ua-parser[regex] (>=1.0.
|
25
|
+
Requires-Dist: Sphinx (>=8.1.3) ; (python_version >= "3.10") and (extra == "docs")
|
26
|
+
Requires-Dist: async-timeout (>=5.0.1) ; python_version < "3.11"
|
27
|
+
Requires-Dist: defang (>=0.5.3)
|
28
|
+
Requires-Dist: dnspython (>=2.7.0)
|
29
|
+
Requires-Dist: eval-type-backport (>=0.2.2) ; python_version < "3.10"
|
30
|
+
Requires-Dist: playwrightcapture[recaptcha] (>=1.27.7)
|
31
|
+
Requires-Dist: pydantic (>=2.10.6)
|
32
|
+
Requires-Dist: redis[hiredis] (>=5.2.1)
|
33
|
+
Requires-Dist: requests (>=2.32.3)
|
34
|
+
Requires-Dist: ua-parser[regex] (>=1.0.1)
|
36
35
|
Project-URL: Documentation, https://lacuscore.readthedocs.io/en/latest/
|
36
|
+
Project-URL: Issues, https://github.com/ail-project/issues
|
37
37
|
Project-URL: Repository, https://github.com/ail-project/LacusCore
|
38
38
|
Description-Content-Type: text/markdown
|
39
39
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
lacuscore/__init__.py,sha256=aLBshQPT9IBDKn5qWrX9A_exqtLFPyLsQiPWdfpAFjA,537
|
2
|
-
lacuscore/helpers.py,sha256=
|
2
|
+
lacuscore/helpers.py,sha256=P-OESi6msSqewxp0CqpyJu_fH1lT6rre4FZUK45tUGY,10967
|
3
3
|
lacuscore/lacus_monitoring.py,sha256=r6IaYuh6sMq43eOWdZx0fU8p4PWVZlqSD6nr6yOaTUU,2713
|
4
4
|
lacuscore/lacuscore.py,sha256=2MQgfLEi6yUuq-XQeo3XXp5_OaHd4z40g05fKRXR6Qc,41526
|
5
5
|
lacuscore/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
lacuscore/task_logger.py,sha256=2wDotU6r6vn-aKO8nZNdxSuisSj11LlcxuvW60qPL0Y,1909
|
7
|
-
lacuscore-1.12.
|
8
|
-
lacuscore-1.12.
|
9
|
-
lacuscore-1.12.
|
10
|
-
lacuscore-1.12.
|
7
|
+
lacuscore-1.12.9.dist-info/LICENSE,sha256=4C4hLYrIkUD96Ggk-y_Go1Qf7PBZrEm9PSeTGe2nd4s,1516
|
8
|
+
lacuscore-1.12.9.dist-info/METADATA,sha256=WWk4cu-rAAU1vfCs-9wV2yF23p0UGTF14KTd4iJ9aTU,2618
|
9
|
+
lacuscore-1.12.9.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
10
|
+
lacuscore-1.12.9.dist-info/RECORD,,
|
File without changes
|