From 45b938090012c20b93e531c1b25a0f3f5cff2336 Mon Sep 17 00:00:00 2001 From: Dextroz <25749668+Dextroz@users.noreply.github.com> Date: Thu, 2 May 2019 23:56:16 +0100 Subject: [PATCH] 0.0.4 (#6) * Dependency updates. * Fixed example, added changelogs. * Bumped version * Bumped version. --- Pipfile.lock | 12 ++++++------ README.md | 6 +++++- requirements.txt | 2 +- setup.py | 2 +- virustotal_python/virustotal.py | 2 +- 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/Pipfile.lock b/Pipfile.lock index 3519a52..096c454 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -47,10 +47,10 @@ }, "urllib3": { "hashes": [ - "sha256:4c291ca23bbb55c76518905869ef34bdd5f0e46af7afe6861e8375643ffee1a0", - "sha256:9a247273df709c4fedb38c711e44292304f73f39ab01beda9f6b9fc375669ac3" + "sha256:2393a695cd12afedd0dcb26fe5d50d0cf248e5a66f75dbd89a3d4eb333a61af4", + "sha256:a637e5fae88995b256e3409dc4d52c2e2e0ba32c42a6365fee8bbd2238de3cfb" ], - "version": "==1.24.2" + "version": "==1.24.3" } }, "develop": { @@ -186,10 +186,10 @@ }, "urllib3": { "hashes": [ - "sha256:4c291ca23bbb55c76518905869ef34bdd5f0e46af7afe6861e8375643ffee1a0", - "sha256:9a247273df709c4fedb38c711e44292304f73f39ab01beda9f6b9fc375669ac3" + "sha256:2393a695cd12afedd0dcb26fe5d50d0cf248e5a66f75dbd89a3d4eb333a61af4", + "sha256:a637e5fae88995b256e3409dc4d52c2e2e0ba32c42a6365fee8bbd2238de3cfb" ], - "version": "==1.24.2" + "version": "==1.24.3" }, "webencodings": { "hashes": [ diff --git a/README.md b/README.md index 3f6a102..86a03c2 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ pprint(resp) ```python # Example resp for url_scan(). # Assuming you have already initiated Virustotal() and imported pprint. -resp = vtotal.url_scan("ihaveaproblem.info") # Query a single url. +resp = vtotal.url_scan(["ihaveaproblem.info"]) # Query a single url. pprint(resp) {'json_resp': {'permalink': 'https://www.virustotal.com/url/fd21590d9df715452c8c000e1b5aa909c7c5ea434c2ddcad3f4ccfe9b0ee224e/analysis/1549973453/', 'resource': 'http://ihaveaproblem.info/', @@ -119,6 +119,10 @@ pprint(resp) ## Changelog +* 0.0.4 - README.md updated; dependencies updated. + +* 0.0.3 - Updated dependencies for urllib3 security vulnerability. + * 0.0.2 - Changes to file_rescan(), file_report(), url_scan(), url_report() to improve ease of use of the wrapper. See issue [#2](https://github.com/Dextroz/virustotal-python/issues/2). Examples updated for changes. * 0.0.1 - Inital release of virustotal-python. Covered all endpoints of the Virustotal public API. diff --git a/requirements.txt b/requirements.txt index d4f8598..6b1813f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,5 +16,5 @@ six==1.12.0 toml==0.10.0 tqdm==4.31.1 twine==1.13.0 -urllib3==1.24.2 +urllib3==1.24.3 webencodings==0.5.1 diff --git a/setup.py b/setup.py index 75c4615..cbac4a7 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name="virustotal-python", - version="0.0.3", + version="0.0.4", author="Dextroz", author_email="dextrozmlg@gmail.com", description="A light wrapper around the public VirusTotal API.", diff --git a/virustotal_python/virustotal.py b/virustotal_python/virustotal.py index 93c765e..14b2e48 100644 --- a/virustotal_python/virustotal.py +++ b/virustotal_python/virustotal.py @@ -34,7 +34,7 @@ class Virustotal(object): def __init__(self, API_KEY=None): self.API_KEY = API_KEY self.BASEURL = "https://www.virustotal.com/vtapi/v2/" - self.VERSION = "0.0.3" + self.VERSION = "0.0.4" self.headers = { "Accept-Encoding": "gzip, deflate", "User-Agent": f"gzip, virustotal-python {self.VERSION}",