gvm-tools 23.9.0__py3-none-any.whl → 25.4.3__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.
- {gvm_tools-23.9.0.dist-info → gvm_tools-25.4.3.dist-info}/METADATA +11 -7
- gvm_tools-25.4.3.dist-info/RECORD +13 -0
- {gvm_tools-23.9.0.dist-info → gvm_tools-25.4.3.dist-info}/WHEEL +1 -1
- gvmtools/__init__.py +1 -1
- gvmtools/__version__.py +1 -1
- gvmtools/cli.py +4 -4
- gvmtools/config.py +2 -2
- gvmtools/helper.py +1 -1
- gvmtools/parser.py +2 -3
- gvmtools/pyshell.py +1 -1
- gvmtools/script.py +1 -1
- gvm_tools-23.9.0.dist-info/RECORD +0 -13
- {gvm_tools-23.9.0.dist-info → gvm_tools-25.4.3.dist-info}/entry_points.txt +0 -0
- {gvm_tools-23.9.0.dist-info → gvm_tools-25.4.3.dist-info/licenses}/LICENSE +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: gvm-tools
|
|
3
|
-
Version:
|
|
3
|
+
Version: 25.4.3
|
|
4
4
|
Summary: Tools to control a GSM/GVM over GMP or OSP
|
|
5
|
-
Home-page: https://github.com/greenbone/gvm-tools/
|
|
6
5
|
License: GPL-3.0-or-later
|
|
6
|
+
License-File: LICENSE
|
|
7
7
|
Author: Greenbone AG
|
|
8
8
|
Author-email: info@greenbone.net
|
|
9
|
-
Requires-Python: >=3.9,<4.0
|
|
9
|
+
Requires-Python: >=3.9.2,<4.0.0
|
|
10
10
|
Classifier: Development Status :: 5 - Production/Stable
|
|
11
11
|
Classifier: Environment :: Console
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
@@ -15,12 +15,16 @@ Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
|
15
15
|
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
16
16
|
Classifier: Operating System :: OS Independent
|
|
17
17
|
Classifier: Programming Language :: Python :: 3
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
19
18
|
Classifier: Programming Language :: Python :: 3.10
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
21
24
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
22
|
-
Requires-Dist: python-gvm (>=
|
|
25
|
+
Requires-Dist: python-gvm (>=26.0.0)
|
|
23
26
|
Project-URL: Documentation, https://greenbone.github.io/gvm-tools/
|
|
27
|
+
Project-URL: Homepage, https://github.com/greenbone/gvm-tools/
|
|
24
28
|
Project-URL: Repository, https://github.com/greenbone/gvm-tools/
|
|
25
29
|
Description-Content-Type: text/markdown
|
|
26
30
|
|
|
@@ -225,7 +229,7 @@ Afterwards active the git hooks for auto-formatting and linting via
|
|
|
225
229
|
|
|
226
230
|
## License
|
|
227
231
|
|
|
228
|
-
Copyright (C) 2017-
|
|
232
|
+
Copyright (C) 2017-2024 [Greenbone AG](https://www.greenbone.net/)
|
|
229
233
|
|
|
230
234
|
Licensed under the [GNU General Public License v3.0 or later](LICENSE).
|
|
231
235
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
gvmtools/__init__.py,sha256=ejbguD-eiMOOuakxFsH0Car5fCkXbog3dtmRYAvKtAk,1144
|
|
2
|
+
gvmtools/__version__.py,sha256=jwP4qcb_K11oPg2VQx788s9GqrScS25XW7FeLJJZlBA,103
|
|
3
|
+
gvmtools/cli.py,sha256=fxCNAS2znykMeNKf4kFPQL7P4ld52Cq8guHFrm4xBJ4,4338
|
|
4
|
+
gvmtools/config.py,sha256=8n5yFHZBobdlNs7hv4GWJqsFfytMxFsgMmkPIgnV2mo,2806
|
|
5
|
+
gvmtools/helper.py,sha256=mlcuUy0F0F0kw2Nit5npqZPlbI5SItxl3g374UqeqTM,6315
|
|
6
|
+
gvmtools/parser.py,sha256=aDSb5lLroPYpVJbb7OwLBd7Hfp2LN9GMT6g1ZAP8zho,10957
|
|
7
|
+
gvmtools/pyshell.py,sha256=b-iml45-cBqreFcsHz8f4DKJl2cN6Yh4aiZvHw1Daf0,5335
|
|
8
|
+
gvmtools/script.py,sha256=6pIGWKNirQSYfcL8Nh69nxKfFH7_5GUMJMcPvZ1hIEQ,3586
|
|
9
|
+
gvm_tools-25.4.3.dist-info/METADATA,sha256=EhFQ_HyBXQ9msu7-3Ewcf7bb7EKw9YAcmdvBf29p_4M,7765
|
|
10
|
+
gvm_tools-25.4.3.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
11
|
+
gvm_tools-25.4.3.dist-info/entry_points.txt,sha256=7UOCf5Ip12567mLV6k8FefDkulyjgyhTYU_XCBi4v3s,111
|
|
12
|
+
gvm_tools-25.4.3.dist-info/licenses/LICENSE,sha256=WJ7YI-moTFb-uVrFjnzzhGJrnL9P2iqQe8NuED3hutI,35141
|
|
13
|
+
gvm_tools-25.4.3.dist-info/RECORD,,
|
gvmtools/__init__.py
CHANGED
gvmtools/__version__.py
CHANGED
gvmtools/cli.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
#
|
|
2
|
+
# SPDX-FileCopyrightText: 2018-2024 Greenbone AG
|
|
3
3
|
#
|
|
4
4
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
5
5
|
#
|
|
@@ -24,7 +24,7 @@ from gvm.errors import GvmError
|
|
|
24
24
|
from gvm.protocols.gmp import Gmp
|
|
25
25
|
from gvm.protocols.latest import Osp
|
|
26
26
|
from gvm.transforms import CheckCommandTransform
|
|
27
|
-
from gvm.xml import
|
|
27
|
+
from gvm.xml import parse_xml, pretty_print
|
|
28
28
|
|
|
29
29
|
from gvmtools.helper import authenticate, do_not_run_as_root
|
|
30
30
|
from gvmtools.parser import (
|
|
@@ -49,7 +49,7 @@ HELP_TEXT = """
|
|
|
49
49
|
gvm-cli socket --gmp-username foo --gmp-password foo myfile.xml
|
|
50
50
|
|
|
51
51
|
The protocol specifications for GMP and OSP are available at:
|
|
52
|
-
https://docs.greenbone.net/index.html#api_documentation"""
|
|
52
|
+
https://docs.greenbone.net/index.html#api_documentation""" # noqa: E501
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
def _load_infile(filename=None):
|
|
@@ -104,7 +104,7 @@ def main():
|
|
|
104
104
|
xml = input()
|
|
105
105
|
|
|
106
106
|
try:
|
|
107
|
-
|
|
107
|
+
parse_xml(xml)
|
|
108
108
|
except GvmError as e:
|
|
109
109
|
print(e, file=sys.stderr)
|
|
110
110
|
sys.exit(1)
|
gvmtools/config.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
#
|
|
2
|
+
# SPDX-FileCopyrightText: 2019-2024 Greenbone AG
|
|
3
3
|
#
|
|
4
4
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
5
5
|
#
|
|
@@ -84,7 +84,7 @@ class Config:
|
|
|
84
84
|
return self._defaults
|
|
85
85
|
|
|
86
86
|
def get(self, section, name):
|
|
87
|
-
if not
|
|
87
|
+
if section not in self._config:
|
|
88
88
|
return None
|
|
89
89
|
|
|
90
90
|
return self._config[section].get(name)
|
gvmtools/helper.py
CHANGED
gvmtools/parser.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
#
|
|
2
|
+
# SPDX-FileCopyrightText: 2018-2024 Greenbone AG
|
|
3
3
|
#
|
|
4
4
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
5
5
|
#
|
|
@@ -16,8 +16,7 @@
|
|
|
16
16
|
# You should have received a copy of the GNU General Public License
|
|
17
17
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
18
18
|
|
|
19
|
-
"""Command Line Interface Parser
|
|
20
|
-
"""
|
|
19
|
+
"""Command Line Interface Parser"""
|
|
21
20
|
|
|
22
21
|
import argparse
|
|
23
22
|
import logging
|
gvmtools/pyshell.py
CHANGED
gvmtools/script.py
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
gvmtools/__init__.py,sha256=qNXbmdfBHvNBmQvqF9AeRDO6nn3se10EYXFTge4tYFQ,1134
|
|
2
|
-
gvmtools/__version__.py,sha256=X9opsw4JQFtOYavPlxyVSQkrz6TZj3MfCkJdNaQKbno,103
|
|
3
|
-
gvmtools/cli.py,sha256=_Nfc6sOU6W1LP18ONG4TvMVvrTIkKpRxIq9XnUCeXpc,4334
|
|
4
|
-
gvmtools/config.py,sha256=sr-jwb86a8T5Jq8BcsflLYYn3xK76Mpz2B7yKaoQCKY,2796
|
|
5
|
-
gvmtools/helper.py,sha256=g_7km-PxD428ULLijiubebj47Ivciych7sHgJOweFYk,6305
|
|
6
|
-
gvmtools/parser.py,sha256=SME6F_QeRZAgiN09TZ2iEkCwY4ilkw5Kxeag4A4r_9w,10948
|
|
7
|
-
gvmtools/pyshell.py,sha256=eknIF9FT7HUI7Kz8ikgwJECb5YwtmCYtMRfP-4YQytI,5325
|
|
8
|
-
gvmtools/script.py,sha256=KvG2Jdvb5dipBpRD5BL39n2sJm4DKvs0pzMnhX0hr74,3576
|
|
9
|
-
gvm_tools-23.9.0.dist-info/LICENSE,sha256=WJ7YI-moTFb-uVrFjnzzhGJrnL9P2iqQe8NuED3hutI,35141
|
|
10
|
-
gvm_tools-23.9.0.dist-info/METADATA,sha256=RBzuNjSh-DDECDFYCah5Ivv6NG122JEkN_mnQE7YoOM,7574
|
|
11
|
-
gvm_tools-23.9.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
|
12
|
-
gvm_tools-23.9.0.dist-info/entry_points.txt,sha256=7UOCf5Ip12567mLV6k8FefDkulyjgyhTYU_XCBi4v3s,111
|
|
13
|
-
gvm_tools-23.9.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|