Skip to content

Commit 7d13c78

Browse files
authored
0.1.2 - Dependency update. (#28)
* chore(dependencies): Bump urllib3 version. For high sev security vulnerability. * chore(tests): Fixed an issue with test failures. Test asseration for Google LLC failing. Changed to GOOGLE. * chore: Bumped version and added classifiers. * chore: Bumped version to 0.1.2 * docs: Added 0.1.2 changelog.
1 parent 28e0750 commit 7d13c78

5 files changed

Lines changed: 86 additions & 82 deletions

File tree

Pipfile.lock

Lines changed: 76 additions & 76 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ To run the tests, perform the following steps:
220220

221221
## Changelog
222222

223+
* 0.1.2 - Update dependencies for security vulnerability. Fixed an issue with some tests failing.
224+
223225
* 0.1.1 - Added Context Manager support and tests. Updated dependencies and license year.
224226

225227
* 0.1.0 - Added support for the VirusTotal v3 API. Library redesign (new usage, examples, tests and more.) See [#24](https://github.com/dbrennand/virustotal-python/pull/24).

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name="virustotal-python",
8-
version="0.1.1",
8+
version="0.1.2",
99
author="dbrennand",
1010
description="A Python library to interact with the public VirusTotal v2 and v3 APIs.",
1111
long_description=long_description,
@@ -16,6 +16,8 @@
1616
"License :: OSI Approved :: MIT License",
1717
"Programming Language :: Python :: 3",
1818
"Programming Language :: Python :: 3.7",
19+
"Programming Language :: Python :: 3.8",
20+
"Programming Language :: Python :: 3.9",
1921
],
2022
keywords="VirusTotal Wrapper Public API Library v2 v3",
2123
)

virustotal_python/tests.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def test_retrieve_ip_info_v2(vtotal_v2):
231231
assert resp.status_code == 200
232232
assert resp.response_code == 1
233233
json = resp.json()
234-
assert json["as_owner"] == "Google LLC"
234+
assert json["as_owner"] == "GOOGLE"
235235
assert json["country"] == "US"
236236
assert json["verbose_msg"] == "IP address in dataset"
237237
for sample in json["detected_communicating_samples"]:
@@ -248,7 +248,7 @@ def test_retrieve_ip_info_v3(vtotal_v3):
248248
resp = vtotal_v3.request(f"ip_addresses/{IP}")
249249
assert resp.status_code == 200
250250
data = resp.data
251-
assert data["attributes"]["as_owner"] == "Google LLC"
251+
assert data["attributes"]["as_owner"] == "GOOGLE"
252252
assert data["attributes"]["country"] == "US"
253253
assert data["attributes"]["last_analysis_stats"]
254254
assert data["attributes"]["reputation"]
@@ -306,7 +306,7 @@ def test_contextmanager_v2():
306306
resp = vtotal.request("ip-address/report", params={"ip": IP})
307307
assert resp.status_code == 200
308308
data = resp.json()
309-
assert data["as_owner"] == "Google LLC"
309+
assert data["as_owner"] == "GOOGLE"
310310
assert data["country"] == "US"
311311

312312

@@ -320,5 +320,5 @@ def test_contextmanager_v3():
320320
assert resp.status_code == 200
321321
data = resp.data
322322
assert data["id"] == IP
323-
assert data["attributes"]["as_owner"] == "Google LLC"
323+
assert data["attributes"]["as_owner"] == "GOOGLE"
324324
assert data["attributes"]["country"] == "US"

virustotal_python/virustotal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def __init__(
243243
:param TIMEOUT: A float for the amount of time to wait in seconds for the HTTP request before timing out.
244244
:raises ValueError: Raises ValueError when no API_KEY is provided or the API_VERSION is invalid.
245245
"""
246-
self.VERSION = "0.1.1"
246+
self.VERSION = "0.1.2"
247247
if API_KEY is None:
248248
raise ValueError(
249249
"An API key is required to interact with the VirusTotal API.\nProvide one to the API_KEY parameter or by setting the environment variable 'VIRUSTOTAL_API_KEY'."

0 commit comments

Comments
 (0)