Skip to main content

A Python library/command line to interact with VirusShare API v2.

Project description

PyVirusShare

A Python 3 library to interact with VirusShare API v2. The project is inspired from the latest update from VirusShare and the existed tool, vt-py; a client library for VirusTotal.

Installation

pip3 install PyVirusShare

Usage

Library Usage Demo

from virusshare import VirusShare

v = VirusShare('<api_key>')

result = v.info('a1ac533baaf7de1dae53cf5b465aeca28a7f20bdfc79e5a0a39437dd728c231f')

print(result['data'])
"""
{
    "filetype": "PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows",
    "md5": "985d5ff3a3ede247c561c0ea4cedd342",
    "exif": {
        "CharacterSet": "Unicode",
        "CodeSize": 291328,
        "Comments": "Mono.Security.dll",
        "CompanyName": "MONO development team",
        "EntryPoint": "0x2000",
        "FileDescription": "Mono.Security.dll",
        "FileFlags": "(none)",
        "FileFlagsMask": "0x003f",
        "FileOS": "Win32",
        "FileSize": "286 kB",
...
..
.
"""
Method Example
Virustotal.info v.info('<hash_str>')
Virustotal.download v.download('<hash_str>', '/tmp')
Virustotal.quick v.quick('<hash_str>')
Virustotal.source v.source('<hash_str>')

Command Line Usage

TODO

TODO

  • Test on Linux
  • Test on Windows
  • Implement the functionalities with the list of hashes and its rate limit system.

License

This project is licensed under the terms of the MIT license.

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

PyVirusShare-1.0.2.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file PyVirusShare-1.0.2.tar.gz.

File metadata

  • Download URL: PyVirusShare-1.0.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for PyVirusShare-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8333461b77f9e1666dd97284205987d19fff10f021b23243ad599d1dbceeed33
MD5 00061306c1d514b30854e1510ed4e96a
BLAKE2b-256 9d8b417d3f7328782ac05a34f5670a4ef85f18c978831b80fb1e8278d955f521

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