Skip to main content

Python 3 implementation of the VirusTotal v3 API

Project description

virustotal3

virustotal3 provides an easy way to use VirusTotal version 3 REST endpoints, including those exclusive to VirusTotal Enterprise such as Live Hunt, Retro Hunt and Zip Files that were not available in version 2.

Documentation

https://virustotal3.readthedocs.io/en/latest/

Usage example

import os
import virustotal3.enterprise

API_KEY = os.environ['VT_API']

livehunt = virustotal3.enterprise.Livehunt(API_KEY)

rulesets = livehunt.get_rulesets()

print(rulesets)

Features

  • Access to many more features than the ones provided by the v2 API such as Live Hunt, Retro Hunt, Zip Files, Relationships, etc.
  • Easy to use methods for all API endpoints (except Graphs).
  • Simplified upload and download of files.
    • The API requires the use of a different endpoint for files larger than 32MB. the File.upload() method calculates the file size and picks the approriate endpoint.
  • Written in Python 3.

Installation

Install virustotal3 by running:

python3 setup.py install

Contribute

Support

The v3 API is in beta and under active development. While most of the implementation was tested and works perfectly, breaking changes might be introduced by VirusTotal. This rarely occurs, but recently URL.get_comments() and URL.get_votes() stopped working. An issue is current opened with VirusTotal (96772) and they are working on it.

If you are having issues, first make sure it does not come from the API itself. I'm in no way associated with VirusTotal. If it's an API bug, contact VirusTotal directly. Otherwise, open a GitHub issue.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

virustotal3-1.0.5.tar.gz (9.9 kB view details)

Uploaded Source

File details

Details for the file virustotal3-1.0.5.tar.gz.

File metadata

  • Download URL: virustotal3-1.0.5.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for virustotal3-1.0.5.tar.gz
Algorithm Hash digest
SHA256 8d80672981505a0e5aba837dea748ffeeddedb101516d6feca198448905581d1
MD5 59c2d450351a230275052aa45d8a6014
BLAKE2b-256 a0568122288f736ecd434f8c19110c889f55f8f843d73744e9311f7976c2dc36

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page