0.1.0 - Library redesign and VirusTotal v3 API support.
0.1.0
Issue
Pull Request
Changes
Support has been added for the 3rd version of the VirusTotal public API.
The library has been redesigned to accommodate support for the 3rd version of the VirusTotal public API.
Notable Changes
-
Usage is now via
request()
. The first parameter being the resource endpoint (e.g:files/{id}
) followed by query parameters, data sent in the body of the request, JSON payload, files and the request method. -
The library now returns the class
VirustotalResponse
however, to preserve the response dictionary returned byvirustotal-python
versions <= 0.0.9, theCOMPATIBILITY_ENABLED
parameter can be provided to theVirustotal
class. Additionally, if a HTTP status code other than 200 (successful) occurs, then the classVirustotalError
is returned (unlessCOMPATIBILITY_ENABLED
) is provided. Then again, the old dictionary response is returned. -
New tests have been created to test the majority of the endpoints.
-
New examples can be found in the
examples
directory. Most of the use cases have been covered. -
New README with examples and how to run tests.
-
Add ability to provide API key via the environment variable
VIRUSTOTAL_API_KEY
. -
Add ability to provide a timeout for requests.