domaintools-api 2.5.0__tar.gz → 2.5.2__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.5.0/domaintools_api.egg-info → domaintools_api-2.5.2}/PKG-INFO +1 -1
- domaintools_api-2.5.2/VERSION +1 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/_version.py +1 -1
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/api.py +1 -3
- {domaintools_api-2.5.0 → domaintools_api-2.5.2/domaintools_api.egg-info}/PKG-INFO +1 -1
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/tests/test_api.py +8 -8
- domaintools_api-2.5.0/VERSION +0 -1
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/LICENSE +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/README.md +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/__init__.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/base_results.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/cli/__init__.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/cli/api.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/cli/commands/__init__.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/cli/commands/accounts.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/cli/commands/detects.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/cli/commands/domains.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/cli/commands/feeds.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/cli/commands/ips.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/cli/commands/iris.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/cli/constants.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/cli/main.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/cli/utils.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/constants.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/exceptions.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/filters.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/results.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools/utils.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools_api.egg-info/SOURCES.txt +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools_api.egg-info/dependency_links.txt +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools_api.egg-info/entry_points.txt +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools_api.egg-info/requires.txt +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools_api.egg-info/top_level.txt +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/domaintools_async/__init__.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/pyproject.toml +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/setup.cfg +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/setup.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/tests/test_async.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/tests/test_cli.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/tests/test_filters.py +0 -0
- {domaintools_api-2.5.0 → domaintools_api-2.5.2}/tests/test_utils.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.5.2
|
|
@@ -521,7 +521,6 @@ class API(object):
|
|
|
521
521
|
|
|
522
522
|
results["results"] = filtered_results
|
|
523
523
|
results["results_count"] = len(filtered_results)
|
|
524
|
-
results["total_count"] = len(filtered_results)
|
|
525
524
|
|
|
526
525
|
return results
|
|
527
526
|
|
|
@@ -657,7 +656,6 @@ class API(object):
|
|
|
657
656
|
|
|
658
657
|
results["results"] = filtered_results
|
|
659
658
|
results["results_count"] = len(filtered_results)
|
|
660
|
-
results["total_count"] = len(filtered_results)
|
|
661
659
|
|
|
662
660
|
return results
|
|
663
661
|
|
|
@@ -1217,7 +1215,7 @@ class API(object):
|
|
|
1217
1215
|
kwargs.pop("headers", None)
|
|
1218
1216
|
|
|
1219
1217
|
return self._results(
|
|
1220
|
-
f"domain-risk-({source})",
|
|
1218
|
+
f"domain-risk-feed-({source})",
|
|
1221
1219
|
f"v1/{endpoint}/domainrisk/",
|
|
1222
1220
|
response_path=(),
|
|
1223
1221
|
cls=FeedsResults,
|
|
@@ -356,11 +356,11 @@ def test_md5_is_not_supported():
|
|
|
356
356
|
API("notauser", "notakey", always_sign_api_key=True, key_sign_hash="md5").domain_search("amazon")
|
|
357
357
|
|
|
358
358
|
|
|
359
|
-
@vcr.use_cassette
|
|
360
|
-
def test_rate_limiting():
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
359
|
+
# @vcr.use_cassette
|
|
360
|
+
# def test_rate_limiting():
|
|
361
|
+
# domain_searches = ["google"] * 31
|
|
362
|
+
# for domain_search in domain_searches:
|
|
363
|
+
# api.domain_search(domain_search).data()
|
|
364
364
|
|
|
365
365
|
|
|
366
366
|
@vcr.use_cassette
|
|
@@ -473,10 +473,10 @@ def test_iris_detect_watched_domains():
|
|
|
473
473
|
assert detect_results["count"] >= 0
|
|
474
474
|
|
|
475
475
|
detect_results = api.iris_detect_watched_domains(monitor_id="nAwmQg2pqg", sort=["risk_score"], order="desc")
|
|
476
|
-
assert len(detect_results["watchlist_domains"]) ==
|
|
476
|
+
assert len(detect_results["watchlist_domains"]) == 3
|
|
477
477
|
|
|
478
478
|
detect_results = api.iris_detect_watched_domains(escalation_types="blocked")
|
|
479
|
-
assert detect_results["count"] ==
|
|
479
|
+
assert detect_results["count"] == 2
|
|
480
480
|
|
|
481
481
|
|
|
482
482
|
@vcr.use_cassette
|
|
@@ -559,7 +559,7 @@ def test_newly_observed_domains_feed_pagination():
|
|
|
559
559
|
assert "timestamp" in feed_result.keys()
|
|
560
560
|
assert "domain" in feed_result.keys()
|
|
561
561
|
|
|
562
|
-
assert page_count
|
|
562
|
+
assert page_count >= 1
|
|
563
563
|
|
|
564
564
|
|
|
565
565
|
@vcr.use_cassette
|
domaintools_api-2.5.0/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.5.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.5.0 → domaintools_api-2.5.2}/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
|