Skip to content

Commit

Permalink
Merge pull request #39 from dbrennand/1.0.2
Browse files Browse the repository at this point in the history
1.0.2
  • Loading branch information
dbrennand authored Feb 8, 2023
2 parents 9ee5e8b + 15db548 commit 68e8849
Show file tree
Hide file tree
Showing 6 changed files with 548 additions and 151 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.0.2

* chore(deps): Update all dependencies.

## 1.0.1

* chore(deps): Update all dependencies.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 dbrennand
Copyright (c) 2023 dbrennand

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
683 changes: 538 additions & 145 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "virustotal-python"
version = "1.0.1"
version = "1.0.2"
description = "A Python library to interact with the public VirusTotal v3 and v2 APIs."
authors = ["dbrennand"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion virustotal_python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

__all__ = ["Virustotal", "VirustotalResponse", "VirustotalError"]
__author__ = "dbrennand"
__version__ = "1.0.1"
__version__ = "1.0.2"
6 changes: 3 additions & 3 deletions virustotal_python/virustotal.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
MIT License
Copyright (c) 2022 dbrennand
Copyright (c) 2023 dbrennand
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -267,14 +267,14 @@ def __init__(
self.BASEURL = "https://www.virustotal.com/vtapi/v2/"
self.HEADERS = {
"Accept-Encoding": "gzip, deflate",
"User-Agent": f"gzip, virustotal-python 1.0.1",
"User-Agent": f"gzip, virustotal-python 1.0.2",
}
elif (API_VERSION == "v3") or (API_VERSION == 3):
self.API_VERSION = API_VERSION
self.BASEURL = "https://www.virustotal.com/api/v3/"
self.HEADERS = {
"Accept-Encoding": "gzip, deflate",
"User-Agent": f"gzip, virustotal-python 1.0.1",
"User-Agent": f"gzip, virustotal-python 1.0.2",
"x-apikey": f"{self.API_KEY}",
}
else:
Expand Down

0 comments on commit 68e8849

Please sign in to comment.