Commit 05dfa8a
authored
v0.1.0 - Library redesign (#24)
* Add v3 progress checklist.
* Add EOF. Fix a spelling mistake. Add 0.1.0 changelog (Will probably add to this more later).
* Bump description and version.
* Add new parameter to file_scan.
* Add username to LICENSE.
* Fix license in file.
Remove ImportError print.
Add API_VERSION parameter and docstring to __init__
Adjust headers for each API version.
Raise exception when API_VERSION is invalid.
file_scan: Update docstring, added new parameter upload_url, added support for v3 API.
Add new method file_upload_url.
* Move comment up to beginning of if state for clarity.
* Remove proxies from individual make_request calls. Add inside make_request.
Add file_id method.
add file_id_analyse method.
* Remove checklist.
* Add progress on re-write for v3 API support with backwards compatibility.
See issue #23
* Move check on API_KEY before self.API_KEY.
* Add link to v2 docs for error().
* Rename backwards_compatibility to COMPATIBILITY_ENABLED.
Move to init method of Virustotal class.
* Fix for issue where API_KEY is needed in query parameters. Might find something better soon.
Fix mistake with BASEURL being BASE_URL.
* Make requests response object @Property and fix naming causing AttributeError.
* Add more @Property.
* Remove truthy check.
* Add VirustotalError exception class.
Alter wording to retrieve.
Add data and object_type properties. Usage with v3 API endpoints.
Simplify response_code property.
Replace json parameter with data in request().
Make method the last parameter in request().
Add docstring raises for validate_response().
* Add testing file to ignore.
* Replace examples.py as oldexamples.py
* Add some new examples.
* Fix docstring :returns:. Fix return type hint.
* Update packages in lock file.
* Update requirements.txt with only nessasary packages.
* Push progress on new README.
* Add spacing to NOTES.
* Add link to file in NOTE.
* Push example with timeout and proxies.
* Add examples to README.
Add API key image.
* Add word.
* Add comment about MAX with v2 API.
* Add useful comments to examples.
* Add examples for providing an API key via an environment variable.
* Add example about retrieving info about a domain.
* Edit changelog.
Remove WIP.
* Add correct documentation for examples.
* Add domain_info example.
* Add start of comment.py example.
* Add example for use with environment variable.
* Alter file ID. A more interesting file.
* Add json to request().
Fix docstring for data.
Add docstring for json.
* FIX: json.decoder.JSONDecodeError when user attempts to run json() and no JSON is present.
* Alter to empty dict instead of None in case the user runs .data instead of .json().
* Add comments examples for v3 and v3.
* Fix raises docstring.
* Add graphs examples.
* Add meta, cursor and links.
* Add ip examples.
* Add missing example for v2.
* Add search and metadata endpoint examples.
* Add example of using a cursor.
* Progress on new tests.
* Add progress on tests.
* Add final tests.
Remove skips.
All tests pass.
* Add section on how to run tests.
* Add NOTE about how links are not retrieve from objects.
* Alter word.
* Add comment and catch for AttributeError which can occur.
* Remove "as err"
* Add missing class name.
* Add correct variable for example.
* Alter wording slightly.
* Alter wording in docstring.
* Alter wording slightly in sentence.
* Fixes to some wording. Added some comments to examples.
* Capitalise URL_ID.
* Fix example variable.
* Alter comments.
* Alter wording.
* Move comment down.
* Edit example description.
Remove repeated code.
* Alter comment and print.
* Alter example description.
* Alter description.
* Alter description again.
* Alter description back.
* Alter keywords and description.
* Alter file description.
* Remove fullstops.
* Fix class docstring.
* Fix docstrings.
* Add example to comment.
* Move v2 and v3 examples around.
* Move v2 example above v3 example.
* Add link to PR for 0.1.0.
* Alter wording slightly in CHANGELOG for 0.1.01 parent 5446bdd commit 05dfa8a
19 files changed
Lines changed: 1512 additions & 415 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
8 | 15 | | |
9 | 16 | | |
10 | 17 | | |
| |||
19 | 26 | | |
20 | 27 | | |
21 | 28 | | |
22 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
23 | 47 | | |
24 | 48 | | |
25 | | - | |
26 | 49 | | |
27 | | - | |
28 | | - | |
| 50 | + | |
| 51 | + | |
29 | 52 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
36 | 60 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
95 | 143 | | |
96 | 144 | | |
| 145 | + | |
| 146 | + | |
97 | 147 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
111 | 181 | | |
112 | 182 | | |
113 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
114 | 189 | | |
115 | | - | |
| 190 | + | |
| 191 | + | |
116 | 192 | | |
117 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
118 | 211 | | |
119 | 212 | | |
120 | 213 | | |
| 214 | + | |
| 215 | + | |
121 | 216 | | |
122 | 217 | | |
123 | 218 | | |
| |||
134 | 229 | | |
135 | 230 | | |
136 | 231 | | |
137 | | - | |
| 232 | + | |
138 | 233 | | |
139 | 234 | | |
140 | 235 | | |
141 | | - | |
| 236 | + | |
142 | 237 | | |
143 | 238 | | |
144 | | - | |
| 239 | + | |
0 commit comments