Skip to content

Commit cc45e08

Browse files
authored
Merge pull request #34 from dbrennand/1.0.0
1.0.0
2 parents a729191 + 8c2d808 commit cc45e08

26 files changed

Lines changed: 2129 additions & 1359 deletions

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
on:
3+
- pull_request
4+
- push
5+
6+
jobs:
7+
Test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Check out repository
11+
uses: actions/checkout@v2
12+
13+
- name: Set up Python
14+
id: setup-python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: 3.7
18+
19+
- name: Load cached Poetry installation
20+
uses: actions/cache@v2
21+
with:
22+
path: ~/.local
23+
key: poetry-0
24+
25+
- name: Install Poetry
26+
uses: snok/install-poetry@v1
27+
with:
28+
virtualenvs-create: true
29+
virtualenvs-in-project: true
30+
installer-parallel: true
31+
32+
- name: Load cached venv
33+
id: cached-poetry-dependencies
34+
uses: actions/cache@v2
35+
with:
36+
path: .venv
37+
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
38+
39+
- name: Install dependencies if cache does not exist
40+
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
41+
run: poetry install --no-interaction --no-root
42+
43+
- name: Install library
44+
run: poetry install --no-interaction
45+
46+
- name: Run tests
47+
run: |
48+
source .venv/bin/activate
49+
black . --check
50+
pytest tests/ --cov=virustotal_python

.github/workflows/publish.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Publish
2+
on:
3+
push:
4+
tags:
5+
- "*.*.*"
6+
7+
jobs:
8+
Publish:
9+
if: github.repository == 'dbrennand/virustotal-python' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out repository
13+
uses: actions/checkout@v2
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: 3.7
19+
20+
- name: Load cached Poetry installation
21+
uses: actions/cache@v2
22+
with:
23+
path: ~/.local
24+
key: poetry-0
25+
26+
- name: Install Poetry
27+
uses: snok/install-poetry@v1
28+
29+
- name: Configure Poetry
30+
run: poetry config pypi-token.pypi "${{ secrets.PYPI_API_KEY }}"
31+
32+
- name: Publish virustotal-python
33+
run: poetry publish --build

CHANGELOG.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Changelog
2+
3+
## 1.0.0
4+
5+
### Breaking Changes
6+
7+
* The `Virustotal` class now defaults to version 3 of the VirusTotal API.
8+
9+
* Dropped support for `COMPATIBILITY_ENABLED` parameter on the `Virustotal` class.
10+
11+
### Docs
12+
13+
* Updated README content including instructions for running tests and improve general readability.
14+
15+
* Moved to using Google docstring format.
16+
17+
* Improved type hints.
18+
19+
* Refactored examples to favour version 3 of the VirusTotal API.
20+
21+
* Added a proper CHANGELOG.
22+
23+
### Tests
24+
25+
* Added new unit tests with 95% coverage.
26+
27+
### Misc Changes
28+
29+
* `API_VERSION` can now accept an `int` to specify VirusTotal API version to use.
30+
31+
* Add GitHub actions workflows for automated testing and publishing.
32+
33+
## 0.2.0
34+
35+
Added `large_file` parameter to `request` so a file larger than 32MB can be submitted for analysis. See [#33](https://github.com/dbrennand/virustotal-python/pull/33). Thank you @smk762.
36+
37+
## 0.1.3
38+
39+
Update urllib3 to 1.26.5 to address [CVE-2021-33503](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-33503).
40+
41+
## 0.1.2
42+
43+
Update dependencies for security vulnerability. Fixed an issue with some tests failing.
44+
45+
## 0.1.1
46+
47+
Added Context Manager support and tests. Updated dependencies and license year.
48+
49+
## 0.1.0
50+
51+
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).
52+
53+
## 0.0.9
54+
55+
Update dependencies for security vulnerability.
56+
57+
## 0.0.8
58+
59+
Updated dependencies, removed method `file_rescan`
60+
61+
## 0.0.7
62+
63+
Added tests. Updated dependencies, Updated examples and README, `url_report` param `scan` now accepts `type(int)`, no longer `type(str)`
64+
65+
## 0.0.6
66+
67+
Fixed usage example and dependencies in README.md, Setup github.io website, updated requirements.txt.
68+
69+
## 0.0.5
70+
71+
Added proxy support. Via HTTP(S) or using SOCKS: See [#8](https://github.com/dbrennand/virustotal-python/pull/8).
72+
73+
## 0.0.4
74+
75+
README.md updated; dependencies updated.
76+
77+
## 0.0.3
78+
79+
Updated dependencies for `urllib3` security vulnerability.
80+
81+
## 0.0.2
82+
83+
Changes to file_rescan(), file_report(), url_scan(), url_report() to improve ease of use of the wrapper. See issue [#2](https://github.com/dbrennand/virustotal-python/issues/2). Examples updated for changes.
84+
85+
## 0.0.1
86+
87+
Initial release of virustotal-python. Covered all endpoints of the Virustotal public API.

Pipfile

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)