Skip to content

0.1.0 - Library redesign and VirusTotal v3 API support.

Compare
Choose a tag to compare
@dbrennand dbrennand released this 21 Nov 23:48
· 137 commits to master since this release
05dfa8a

0.1.0

Issue

#23

Pull Request

#24

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 by virustotal-python versions <= 0.0.9, the COMPATIBILITY_ENABLED parameter can be provided to the Virustotal class. Additionally, if a HTTP status code other than 200 (successful) occurs, then the class VirustotalError is returned (unless COMPATIBILITY_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.