Skip to content

Commit 0251cc0

Browse files
author
zeloff
committed
update v4 methods
1 parent 61ef761 commit 0251cc0

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ Follow "API KEYS" tab.
2424
Generate API key with scope "api" and use it with the library.
2525

2626
# Documentation
27-
The full API methods description, usage examples, and integration guide are available in the official documentation: [API Reference](https://vulners.com/docs/api_reference/api_methods/).
27+
The full API methods description, usage examples, and integration guide are available in the official documentation: [API Reference](https://vulners.com/docs/api_reference/api/).
2828

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "vulners"
3-
version = "2.3.2"
3+
version = "2.3.3"
44
description = "Python library and command-line utility for Vulners (https://vulners.com)"
55
readme = "README.md"
66
authors = ["Vulners Team"]

vulners/vulners.py

+30-2
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,24 @@ def get_software_vulnerabilities(
249249
(
250250
"software",
251251
List(
252-
item=Dict(),
252+
item=Any(Dict, String),
253253
description="List of dicts. E.g., [{'product': 'curl', 'version': '8.11.1', ...}, ...]",
254254
),
255255
),
256+
(
257+
"match",
258+
String(
259+
required=False,
260+
description="'partial' (default) or 'full'",
261+
),
262+
),
263+
(
264+
"fields",
265+
List(
266+
required=False,
267+
description="List of fields to retrieve about each vulnerability",
268+
),
269+
),
256270
],
257271
content_handler=lambda c, _: c["result"],
258272
)
@@ -264,13 +278,27 @@ def get_software_vulnerabilities(
264278
(
265279
"software",
266280
List(
267-
item=Dict(),
281+
item=Any(Dict, String),
268282
description="List of dicts. E.g., [{'product': 'curl', 'version': '8.11.1', ...}, ...]",
269283
),
270284
),
271285
("application", Any(String, Dict, required=False)),
272286
("operation_system", Any(String, Dict, required=False)),
273287
("hardware", Any(String, Dict, required=False)),
288+
(
289+
"match",
290+
String(
291+
required=False,
292+
description="'partial' (default) or 'full'",
293+
),
294+
),
295+
(
296+
"fields",
297+
List(
298+
required=False,
299+
description="List of fields to retrieve about each vulnerability",
300+
),
301+
),
274302
],
275303
content_handler=lambda c, _: c["result"],
276304
)

0 commit comments

Comments
 (0)