API reference¶
PyProject¶
- class pyvariot.PyVARIoT(root_url: str = 'https://www.variotdbs.pl/', useragent: str | None = None, *, proxies: dict[str, str] | None = None)¶
- get_exploit(exploit_id: str, /, *, jsonld: bool = False) dict[str, Any]¶
Get an exploit by its ID.
- Parameters:
exploit_id – The ID of the exploit to get.
jsonld – Whether to return the JSON-LD representation of the exploit.
- get_exploits(*, jsonld: bool = False, since: datetime | None = None, before: datetime | None = None, limit: int | None = None, offset: int | None = None) dict[str, Any]¶
Get exploits on an interval.
- Parameters:
jsonld – Whether to return the JSON-LD representation of the exploits.
since – The date from which to get the exploits.
before – The date until which to get the exploits.
limit – The maximum number of exploits to get in one call.
offset – The offset to start getting the exploits.
- get_exploits_iter(*, jsonld: bool = False, since: datetime | None = None, before: datetime | None = None, limit: int | None = None, offset: int | None = None) Generator[dict[str, Any], None, None]¶
Get exploits on an interval, automatically iterates over all the matching exploits.
- Parameters:
jsonld – Whether to return the JSON-LD representation of the exploits.
since – The date from which to get the exploits.
before – The date until which to get the exploits.
limit – The maximum number of exploits to get in one call.
offset – The offset to start getting the exploits.
- get_vulnerabilities(*, jsonld: bool = False, since: datetime | None = None, before: datetime | None = None, limit: int | None = None, offset: int | None = None) dict[str, Any]¶
Get vulnerabilities on an interval.
- Parameters:
jsonld – Whether to return the JSON-LD representation of the vulnerabilities.
since – The date from which to get the vulnerabilities.
before – The date until which to get the vulnerabilities.
limit – The maximum number of vulnerabilities to get in one call.
offset – The offset to start getting the vulnerabilities.
- get_vulnerabilities_iter(*, jsonld: bool = False, since: datetime | None = None, before: datetime | None = None, limit: int | None = None, offset: int | None = None) Generator[dict[str, Any], None, None]¶
Get vulnerabilities on an interval, automatically iterates over all the matching vulerabilities.
- Parameters:
jsonld – Whether to return the JSON-LD representation of the vulnerabilities.
since – The date from which to get the vulnerabilities.
before – The date until which to get the vulnerabilities.
limit – The maximum number of vulnerabilities to get in one call.
offset – The offset to start getting the vulnerabilities.
- get_vulnerability(vulnerability_id: str, /, *, jsonld: bool = False) dict[str, Any]¶
Get a vulnerability by its ID.
- Parameters:
vulnerability_id – The ID of the vulnerability to get.
jsonld – Whether to return the JSON-LD representation of the vulnerability.
- property is_up: bool¶
Test if the given instance is accessible