lacuscore 1.12.5__py3-none-any.whl → 1.12.7__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/lacuscore.py CHANGED
@@ -24,6 +24,8 @@ from collections.abc import Iterator
24
24
  from uuid import uuid4
25
25
  from urllib.parse import urlsplit
26
26
 
27
+ import ua_parser
28
+
27
29
  from dns.resolver import Cache
28
30
  from dns.asyncresolver import Resolver
29
31
  from dns.exception import DNSException
@@ -34,7 +36,6 @@ from pydantic import ValidationError
34
36
  from redis import Redis
35
37
  from redis.exceptions import ConnectionError as RedisConnectionError
36
38
  from redis.exceptions import DataError
37
- from ua_parser import user_agent_parser # type: ignore[import-untyped]
38
39
 
39
40
  from . import task_logger
40
41
  from .helpers import (
@@ -448,8 +449,8 @@ class LacusCore():
448
449
  if to_capture.browser:
449
450
  browser_engine = to_capture.browser
450
451
  elif to_capture.user_agent:
451
- parsed_string = user_agent_parser.ParseUserAgent(to_capture.user_agent)
452
- browser_family = parsed_string['family'].lower()
452
+ parsed_string = ua_parser.parse(to_capture.user_agent).with_defaults()
453
+ browser_family = parsed_string.user_agent.family.lower()
453
454
  if browser_family.startswith('chrom'):
454
455
  browser_engine = 'chromium'
455
456
  elif browser_family.startswith('firefox'):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lacuscore
3
- Version: 1.12.5
3
+ Version: 1.12.7
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
@@ -23,17 +23,16 @@ Classifier: Programming Language :: Python :: 3.13
23
23
  Classifier: Topic :: Internet
24
24
  Classifier: Topic :: Security
25
25
  Provides-Extra: docs
26
- Requires-Dist: Sphinx (>=7.2,<8.0) ; (python_version >= "3.9" and python_version < "3.10") and (extra == "docs")
27
26
  Requires-Dist: Sphinx (>=8,<9) ; (python_version >= "3.10") and (extra == "docs")
28
27
  Requires-Dist: async-timeout (>=4.0.3,<5.0.0) ; python_version < "3.11"
29
28
  Requires-Dist: defang (>=0.5.3,<0.6.0)
30
29
  Requires-Dist: dnspython (>=2.7.0,<3.0.0) ; python_version >= "3.9"
31
30
  Requires-Dist: eval-type-backport (>=0.2.0,<0.3.0) ; python_version < "3.10"
32
- Requires-Dist: playwrightcapture[recaptcha] (>=1.27.3,<2.0.0)
33
- Requires-Dist: pydantic (>=2.10.1,<3.0.0)
34
- Requires-Dist: redis[hiredis] (>=5.2.0,<6.0.0)
31
+ Requires-Dist: playwrightcapture[recaptcha] (>=1.27.5,<2.0.0)
32
+ Requires-Dist: pydantic (>=2.10.4,<3.0.0)
33
+ Requires-Dist: redis[hiredis] (>=5.2.1,<6.0.0)
35
34
  Requires-Dist: requests (>=2.32.3,<3.0.0)
36
- Requires-Dist: ua-parser (>=0.18.0,<0.19.0)
35
+ Requires-Dist: ua-parser[regex] (>=1.0.0,<2.0.0)
37
36
  Project-URL: Documentation, https://lacuscore.readthedocs.io/en/latest/
38
37
  Project-URL: Repository, https://github.com/ail-project/LacusCore
39
38
  Description-Content-Type: text/markdown
@@ -1,10 +1,10 @@
1
1
  lacuscore/__init__.py,sha256=aLBshQPT9IBDKn5qWrX9A_exqtLFPyLsQiPWdfpAFjA,537
2
2
  lacuscore/helpers.py,sha256=a7dwcNwwF04czQaGaVdcDrXbBJvAdGTJU7Gi4L_pNd4,10954
3
3
  lacuscore/lacus_monitoring.py,sha256=r6IaYuh6sMq43eOWdZx0fU8p4PWVZlqSD6nr6yOaTUU,2713
4
- lacuscore/lacuscore.py,sha256=5EvQ-3uc99O-DvpSAvo2HKvX4XOjzeb-g2HERRTu2Js,41573
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.5.dist-info/LICENSE,sha256=4C4hLYrIkUD96Ggk-y_Go1Qf7PBZrEm9PSeTGe2nd4s,1516
8
- lacuscore-1.12.5.dist-info/METADATA,sha256=081fAuWrChKD9ZH-S2zXT9mGM841DCPtgrC3f1KXDxU,2807
9
- lacuscore-1.12.5.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
10
- lacuscore-1.12.5.dist-info/RECORD,,
7
+ lacuscore-1.12.7.dist-info/LICENSE,sha256=4C4hLYrIkUD96Ggk-y_Go1Qf7PBZrEm9PSeTGe2nd4s,1516
8
+ lacuscore-1.12.7.dist-info/METADATA,sha256=gapFHfwwjcwvPtIJru8hcKXVzIcopmxPgLIRv9EHVtw,2699
9
+ lacuscore-1.12.7.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
10
+ lacuscore-1.12.7.dist-info/RECORD,,