| Total Complexity | 0 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | """The module describes classes that implement methods for accessing service API functions |
||
| 2 | www.virustotai.com. |
||
| 3 | |||
| 4 | More information: https://virustotalapi3.readthedocs.io/en/latest |
||
| 5 | |||
| 6 | Author: Evgeny Drobotun (c) 2019 |
||
| 7 | License: MIT (https://github.com/drobotun/virustotalapi3/blob/master/LICENSE) |
||
| 8 | |||
| 9 | Requirements: |
||
| 10 | $ pip install requests |
||
| 11 | |||
| 12 | Example usage: |
||
| 13 | |||
| 14 | from vtapi3 import VirusTotalAPIFiles, VirusTotalAPIError |
||
| 15 | ... |
||
| 16 | vt_files = VirusTotalAPIFiles(<Insert API key string here>) |
||
| 17 | try: |
||
| 18 | result = vt_files.upload(<Insert faile name here>) |
||
| 19 | except VirusTotalAPIError as err: |
||
| 20 | print(err, err.err_code) |
||
| 21 | else: |
||
| 22 | if vt_files.get_last_http_error() == vt_files.HTTP_OK: |
||
| 23 | result = json.loads(result) |
||
| 24 | result = json.dumps(result, sort_keys=False, indent=4) |
||
| 25 | print(result) |
||
| 26 | else: |
||
| 27 | print('HTTP Error [' + str(vt_files.get_last_http_error()) +']') |
||
| 28 | ... |
||
| 29 | """ |
||
| 30 | __title__ = 'vtapi3' |
||
| 31 | __version__ = '1.2.1' |
||
| 32 | __author__ = 'Evgeny Drobotun' |
||
| 33 | __author_email__ = '[email protected]' |
||
| 34 | __license__ = 'MIT' |
||
| 35 | __copyright__ = 'Copyright (C) 2020 Evgeny Drobotun' |
||
| 36 | |||
| 37 | from .vtapi3base import VirusTotalAPI |
||
| 38 | from .vtapi3files import VirusTotalAPIFiles |
||
| 39 | from .vtapi3urls import VirusTotalAPIUrls |
||
| 40 | from .vtapi3domains import VirusTotalAPIDomains |
||
| 41 | from .vtapi3ipaddresses import VirusTotalAPIIPAddresses |
||
| 42 | from .vtapi3analyses import VirusTotalAPIAnalyses |
||
| 43 | from .vtapi3error import VirusTotalAPIError |
||
| 44 |