pylookyloo 1.26.1__py3-none-any.whl → 1.27.0__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.
pylookyloo/api.py CHANGED
@@ -15,6 +15,9 @@ from pathlib import PurePosixPath, Path
15
15
 
16
16
  import requests
17
17
 
18
+ from urllib3.util import Retry
19
+ from requests.adapters import HTTPAdapter
20
+
18
21
 
19
22
  class PyLookylooError(Exception):
20
23
  pass
@@ -68,6 +71,7 @@ class Lookyloo():
68
71
  :param proxies: The proxies to use to connect to lookyloo (not the ones given to the capture itself) - More details: https://requests.readthedocs.io/en/latest/user/advanced/#proxies
69
72
  '''
70
73
  self.root_url = root_url
74
+ self.apikey: str | None = None
71
75
 
72
76
  if not urlparse(self.root_url).scheme:
73
77
  self.root_url = 'http://' + self.root_url
@@ -77,7 +81,8 @@ class Lookyloo():
77
81
  self.session.headers['user-agent'] = useragent if useragent else f'PyLookyloo / {version("pylookyloo")}'
78
82
  if proxies:
79
83
  self.session.proxies.update(proxies)
80
- self.apikey: str | None = None
84
+ retries = Retry(total=5, backoff_factor=0.1, status_forcelist=[500, 502, 503, 504])
85
+ self.session.mount('http://', HTTPAdapter(max_retries=retries))
81
86
 
82
87
  @property
83
88
  def is_up(self) -> bool:
@@ -1,12 +1,11 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: pylookyloo
3
- Version: 1.26.1
3
+ Version: 1.27.0
4
4
  Summary: Python CLI and module for Lookyloo
5
- Home-page: https://github.com/lookyloo/PyLookyloo
6
5
  License: BSD-3-Clause
7
6
  Author: Raphaël Vinot
8
7
  Author-email: raphael.vinot@circl.lu
9
- Requires-Python: >=3.8,<4.0
8
+ Requires-Python: >=3.9
10
9
  Classifier: Development Status :: 5 - Production/Stable
11
10
  Classifier: Environment :: Console
12
11
  Classifier: Intended Audience :: Information Technology
@@ -15,20 +14,19 @@ Classifier: Intended Audience :: Telecommunications Industry
15
14
  Classifier: License :: OSI Approved :: BSD License
16
15
  Classifier: Operating System :: POSIX :: Linux
17
16
  Classifier: Programming Language :: Python :: 3
18
- Classifier: Programming Language :: Python :: 3.8
19
17
  Classifier: Programming Language :: Python :: 3.9
20
18
  Classifier: Programming Language :: Python :: 3.10
21
19
  Classifier: Programming Language :: Python :: 3.11
22
20
  Classifier: Programming Language :: Python :: 3.12
21
+ 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 (<7.2) ; (python_version < "3.9") and (extra == "docs")
27
- Requires-Dist: Sphinx (>=7.2,<8.0) ; (python_version >= "3.9" and python_version < "3.10") and (extra == "docs")
28
- Requires-Dist: Sphinx (>=8,<9) ; (python_version >= "3.10") and (extra == "docs")
29
- Requires-Dist: requests (>=2.32.3,<3.0.0)
25
+ Requires-Dist: Sphinx (>=8.1.3) ; (python_version >= "3.10") and (extra == "docs")
26
+ Requires-Dist: requests (>=2.32.3)
30
27
  Project-URL: Documentation, https://pylookyloo.readthedocs.io/en/latest/
31
28
  Project-URL: Repository, https://github.com/lookyloo/PyLookyloo
29
+ Project-URL: issues, https://github.com/lookyloo/PyLookyloo/issues
32
30
  Description-Content-Type: text/markdown
33
31
 
34
32
  [![Documentation Status](https://readthedocs.org/projects/pylookyloo/badge/?version=latest)](https://pylookyloo.readthedocs.io/en/latest/?badge=latest)
@@ -0,0 +1,8 @@
1
+ pylookyloo/__init__.py,sha256=_JYXwXHL7ShZkeruvGd8qDTpxNRfuDjvV65SOMMU6yc,1922
2
+ pylookyloo/api.py,sha256=b9pzLGap2hCMZgdmOQ4-9JErU6aTTF4WQPJih24BoxU,28921
3
+ pylookyloo/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ pylookyloo-1.27.0.dist-info/LICENSE,sha256=4C4hLYrIkUD96Ggk-y_Go1Qf7PBZrEm9PSeTGe2nd4s,1516
5
+ pylookyloo-1.27.0.dist-info/METADATA,sha256=sTFungmhlKsMWBp6ObbZl4BnUk6cQJe60O0UDHH2-_k,2266
6
+ pylookyloo-1.27.0.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
7
+ pylookyloo-1.27.0.dist-info/entry_points.txt,sha256=y2c0Ujg8co6Xyf7MoxStVU-fLQMZBSGAg-KFidmsha4,44
8
+ pylookyloo-1.27.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.0
2
+ Generator: poetry-core 2.0.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,8 +0,0 @@
1
- pylookyloo/__init__.py,sha256=_JYXwXHL7ShZkeruvGd8qDTpxNRfuDjvV65SOMMU6yc,1922
2
- pylookyloo/api.py,sha256=2U7ExW9Cr7dJUOXXop_UIULR4Zru4SogC2Cu_wJ6OcM,28683
3
- pylookyloo/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- pylookyloo-1.26.1.dist-info/LICENSE,sha256=4C4hLYrIkUD96Ggk-y_Go1Qf7PBZrEm9PSeTGe2nd4s,1516
5
- pylookyloo-1.26.1.dist-info/METADATA,sha256=NwfOYpAMGHvhLk1kQzntIwKqR07HNrER1-0_SXzmGhY,2450
6
- pylookyloo-1.26.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
7
- pylookyloo-1.26.1.dist-info/entry_points.txt,sha256=y2c0Ujg8co6Xyf7MoxStVU-fLQMZBSGAg-KFidmsha4,44
8
- pylookyloo-1.26.1.dist-info/RECORD,,