pylookyloo 1.26.1__tar.gz → 1.27.0__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.
Potentially problematic release.
This version of pylookyloo might be problematic. Click here for more details.
- {pylookyloo-1.26.1 → pylookyloo-1.27.0}/PKG-INFO +7 -9
- {pylookyloo-1.26.1 → pylookyloo-1.27.0}/pylookyloo/api.py +6 -1
- pylookyloo-1.27.0/pyproject.toml +49 -0
- pylookyloo-1.26.1/pyproject.toml +0 -56
- {pylookyloo-1.26.1 → pylookyloo-1.27.0}/LICENSE +0 -0
- {pylookyloo-1.26.1 → pylookyloo-1.27.0}/README.md +0 -0
- {pylookyloo-1.26.1 → pylookyloo-1.27.0}/pylookyloo/__init__.py +0 -0
- {pylookyloo-1.26.1 → pylookyloo-1.27.0}/pylookyloo/py.typed +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: pylookyloo
|
|
3
|
-
Version: 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
|
+
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 (
|
|
27
|
-
Requires-Dist:
|
|
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
|
[](https://pylookyloo.readthedocs.io/en/latest/?badge=latest)
|
|
@@ -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
|
-
|
|
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:
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "pylookyloo"
|
|
3
|
+
version = "1.27.0"
|
|
4
|
+
description = "Python CLI and module for Lookyloo"
|
|
5
|
+
authors = [
|
|
6
|
+
{name="Raphaël Vinot", email="raphael.vinot@circl.lu"}
|
|
7
|
+
]
|
|
8
|
+
license = "BSD-3-Clause"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.9"
|
|
11
|
+
|
|
12
|
+
dynamic = [ "classifiers" ]
|
|
13
|
+
|
|
14
|
+
dependencies = [
|
|
15
|
+
"requests (>=2.32.3)"
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
[project.urls]
|
|
19
|
+
repository = "https://github.com/lookyloo/PyLookyloo"
|
|
20
|
+
issues = "https://github.com/lookyloo/PyLookyloo/issues"
|
|
21
|
+
documentation = "https://pylookyloo.readthedocs.io/en/latest/"
|
|
22
|
+
|
|
23
|
+
[tool.poetry]
|
|
24
|
+
classifiers = [
|
|
25
|
+
'Development Status :: 5 - Production/Stable',
|
|
26
|
+
'Environment :: Console',
|
|
27
|
+
'Operating System :: POSIX :: Linux',
|
|
28
|
+
'Intended Audience :: Science/Research',
|
|
29
|
+
'Intended Audience :: Telecommunications Industry',
|
|
30
|
+
'Intended Audience :: Information Technology',
|
|
31
|
+
'Topic :: Security',
|
|
32
|
+
'Topic :: Internet',
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
[project.scripts]
|
|
36
|
+
lookyloo = 'pylookyloo:main'
|
|
37
|
+
|
|
38
|
+
[project.optional-dependencies]
|
|
39
|
+
|
|
40
|
+
docs = ["Sphinx (>=8.1.3) ; python_version >= \"3.10\""]
|
|
41
|
+
|
|
42
|
+
[tool.poetry.group.dev.dependencies]
|
|
43
|
+
mypy = "^1.14.1"
|
|
44
|
+
types-requests = "^2.32.0.20241016"
|
|
45
|
+
pytest = "^8.3.4"
|
|
46
|
+
|
|
47
|
+
[build-system]
|
|
48
|
+
requires = ["poetry-core>=2.0"]
|
|
49
|
+
build-backend = "poetry.core.masonry.api"
|
pylookyloo-1.26.1/pyproject.toml
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
[tool.poetry]
|
|
2
|
-
name = "pylookyloo"
|
|
3
|
-
version = "1.26.1"
|
|
4
|
-
description = "Python CLI and module for Lookyloo"
|
|
5
|
-
authors = ["Raphaël Vinot <raphael.vinot@circl.lu>"]
|
|
6
|
-
license = "BSD-3-Clause"
|
|
7
|
-
repository = "https://github.com/lookyloo/PyLookyloo"
|
|
8
|
-
documentation = "https://pylookyloo.readthedocs.io/en/latest/"
|
|
9
|
-
|
|
10
|
-
readme = "README.md"
|
|
11
|
-
|
|
12
|
-
classifiers = [
|
|
13
|
-
'License :: OSI Approved :: BSD License',
|
|
14
|
-
'Development Status :: 5 - Production/Stable',
|
|
15
|
-
'Environment :: Console',
|
|
16
|
-
'Operating System :: POSIX :: Linux',
|
|
17
|
-
'Intended Audience :: Science/Research',
|
|
18
|
-
'Intended Audience :: Telecommunications Industry',
|
|
19
|
-
'Intended Audience :: Information Technology',
|
|
20
|
-
'Programming Language :: Python :: 3.8',
|
|
21
|
-
'Programming Language :: Python :: 3.9',
|
|
22
|
-
'Programming Language :: Python :: 3.10',
|
|
23
|
-
'Programming Language :: Python :: 3.11',
|
|
24
|
-
'Programming Language :: Python :: 3.12',
|
|
25
|
-
'Topic :: Security',
|
|
26
|
-
'Topic :: Internet',
|
|
27
|
-
]
|
|
28
|
-
|
|
29
|
-
[tool.poetry.scripts]
|
|
30
|
-
lookyloo = 'pylookyloo:main'
|
|
31
|
-
|
|
32
|
-
[tool.poetry.dependencies]
|
|
33
|
-
python = "^3.8"
|
|
34
|
-
requests = "^2.32.3"
|
|
35
|
-
Sphinx = [
|
|
36
|
-
{version = "<7.2", python = "<3.9", optional = true},
|
|
37
|
-
{version = "^7.2", python = ">=3.9,<3.10", optional = true},
|
|
38
|
-
{version = "^8", python = ">=3.10", optional = true}
|
|
39
|
-
]
|
|
40
|
-
|
|
41
|
-
[tool.poetry.group.dev.dependencies]
|
|
42
|
-
mypy = "^1.11.2"
|
|
43
|
-
types-requests = "^2.32.0.20240914"
|
|
44
|
-
ipython = [
|
|
45
|
-
{version = "<8.13.0", python = "<3.9"},
|
|
46
|
-
{version = "^8.18.0", python = ">=3.9"},
|
|
47
|
-
{version = "^8.19.0", python = ">=3.10"}
|
|
48
|
-
]
|
|
49
|
-
pytest = "^8.3.3"
|
|
50
|
-
|
|
51
|
-
[tool.poetry.extras]
|
|
52
|
-
docs = ["Sphinx"]
|
|
53
|
-
|
|
54
|
-
[build-system]
|
|
55
|
-
requires = ["poetry_core"]
|
|
56
|
-
build-backend = "poetry.core.masonry.api"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|