domaintools-api 2.4.0__tar.gz → 2.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {domaintools_api-2.4.0/domaintools_api.egg-info → domaintools_api-2.4.1}/PKG-INFO +1 -1
- domaintools_api-2.4.1/VERSION +1 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/_version.py +1 -1
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/api.py +2 -2
- {domaintools_api-2.4.0 → domaintools_api-2.4.1/domaintools_api.egg-info}/PKG-INFO +1 -1
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/tests/test_api.py +11 -1
- domaintools_api-2.4.0/VERSION +0 -1
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/LICENSE +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/README.md +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/__init__.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/base_results.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/cli/__init__.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/cli/api.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/cli/commands/__init__.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/cli/commands/accounts.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/cli/commands/detects.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/cli/commands/domains.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/cli/commands/feeds.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/cli/commands/ips.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/cli/commands/iris.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/cli/constants.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/cli/main.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/cli/utils.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/constants.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/exceptions.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/filters.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/results.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools/utils.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools_api.egg-info/SOURCES.txt +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools_api.egg-info/dependency_links.txt +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools_api.egg-info/entry_points.txt +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools_api.egg-info/requires.txt +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools_api.egg-info/top_level.txt +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools_async/__init__.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/pyproject.toml +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/setup.cfg +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/setup.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/tests/test_async.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/tests/test_cli.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/tests/test_filters.py +0 -0
- {domaintools_api-2.4.0 → domaintools_api-2.4.1}/tests/test_utils.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.4.1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from datetime import datetime, timedelta, timezone
|
|
2
|
-
from hashlib import sha1, sha256
|
|
2
|
+
from hashlib import sha1, sha256
|
|
3
3
|
from hmac import new as hmac
|
|
4
4
|
|
|
5
5
|
import re
|
|
@@ -24,7 +24,7 @@ from domaintools.filters import (
|
|
|
24
24
|
from domaintools.utils import validate_feeds_parameters
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
AVAILABLE_KEY_SIGN_HASHES = ["sha1", "sha256"
|
|
27
|
+
AVAILABLE_KEY_SIGN_HASHES = ["sha1", "sha256"]
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
def delimited(items, character="|"):
|
|
@@ -342,11 +342,20 @@ def test_exception_handling():
|
|
|
342
342
|
API("notauser", "notakey").domain_search("amazon").data()
|
|
343
343
|
with pytest.raises(
|
|
344
344
|
ValueError,
|
|
345
|
-
match=r"Invalid value 'notahash' for 'key_sign_hash'. Values available are sha1,sha256
|
|
345
|
+
match=r"Invalid value 'notahash' for 'key_sign_hash'. Values available are sha1,sha256",
|
|
346
346
|
):
|
|
347
347
|
API("notauser", "notakey", always_sign_api_key=True, key_sign_hash="notahash").domain_search("amazon")
|
|
348
348
|
|
|
349
349
|
|
|
350
|
+
@vcr.use_cassette
|
|
351
|
+
def test_md5_is_not_supported():
|
|
352
|
+
with pytest.raises(
|
|
353
|
+
ValueError,
|
|
354
|
+
match=r"Invalid value 'md5' for 'key_sign_hash'. Values available are sha1,sha256",
|
|
355
|
+
):
|
|
356
|
+
API("notauser", "notakey", always_sign_api_key=True, key_sign_hash="md5").domain_search("amazon")
|
|
357
|
+
|
|
358
|
+
|
|
350
359
|
@vcr.use_cassette
|
|
351
360
|
def test_rate_limiting():
|
|
352
361
|
domain_searches = ["google"] * 31
|
|
@@ -377,6 +386,7 @@ def test_formats():
|
|
|
377
386
|
|
|
378
387
|
|
|
379
388
|
@vcr.use_cassette
|
|
389
|
+
@pytest.mark.skip(reason="Iris endpoint is already deprecated in light of enrich and investigate")
|
|
380
390
|
def test_iris():
|
|
381
391
|
with pytest.raises(ValueError):
|
|
382
392
|
api.iris()
|
domaintools_api-2.4.0/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.4.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{domaintools_api-2.4.0 → domaintools_api-2.4.1}/domaintools_api.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|