pyoaev 2.3.2__tar.gz → 2.3.4__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.
- {pyoaev-2.3.2/pyoaev.egg-info → pyoaev-2.3.4}/PKG-INFO +2 -1
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/__init__.py +1 -1
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/_version.py +1 -1
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/backends/backend.py +2 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4/pyoaev.egg-info}/PKG-INFO +2 -1
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev.egg-info/SOURCES.txt +1 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev.egg-info/requires.txt +1 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyproject.toml +2 -1
- pyoaev-2.3.4/test/backends/test_backend.py +11 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/LICENSE +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/README.md +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/docs/conf.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/__init__.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/attack_pattern.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/collector.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/cve.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/document.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/endpoint.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/inject.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/inject_expectation/__init__.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/inject_expectation/inject_expectation.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/inject_expectation/model/__init__.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/inject_expectation/model/expectation.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/inject_expectation_trace.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/injector.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/injector_contract.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/inputs/__init__.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/inputs/search.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/kill_chain_phase.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/me.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/organization.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/payload.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/security_platform.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/tag.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/team.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/apis/user.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/backends/__init__.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/backends/protocol.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/base.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/client.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/configuration/__init__.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/configuration/configuration.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/configuration/connector_config_schema_generator.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/configuration/settings_loader.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/configuration/sources.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/contracts/__init__.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/contracts/contract_builder.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/contracts/contract_config.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/contracts/contract_utils.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/contracts/variable_helper.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/daemons/__init__.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/daemons/base_daemon.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/daemons/collector_daemon.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/exceptions.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/helpers.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/mixins.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/security_domain/__init__.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/security_domain/types.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/signatures/__init__.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/signatures/signature_match.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/signatures/signature_type.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/signatures/types.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev/utils.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev.egg-info/dependency_links.txt +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/pyoaev.egg-info/top_level.txt +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/scripts/release.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/setup.cfg +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/test/__init__.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/test/apis/__init__.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/test/apis/endpoint/__init__.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/test/apis/endpoint/test_endpoint.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/test/apis/expectation/__init__.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/test/apis/expectation/test_expectation.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/test/apis/injector_contract/__init__.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/test/apis/injector_contract/test_injector_contract.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/test/configuration/__init__.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/test/configuration/test_configuration.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/test/configuration/test_sources.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/test/daemons/__init__.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/test/daemons/test_base_daemon.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/test/daemons/test_collector_daemon.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/test/signatures/__init__.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/test/signatures/test_signature_match.py +0 -0
- {pyoaev-2.3.2 → pyoaev-2.3.4}/test/signatures/test_signature_type.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyoaev
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.4
|
|
4
4
|
Summary: Python API client for OpenAEV.
|
|
5
5
|
Author-email: Filigran <contact@filigran.io>
|
|
6
6
|
Maintainer-email: Filigran <contact@filigran.io>
|
|
@@ -44,6 +44,7 @@ Requires-Dist: types-pytz<2025.3.0.0,>=2025.2.0.20250326; extra == "dev"
|
|
|
44
44
|
Requires-Dist: pre-commit<4.3.0,>=4.2.0; extra == "dev"
|
|
45
45
|
Requires-Dist: types-python-dateutil<2.10.0,>=2.9.0; extra == "dev"
|
|
46
46
|
Requires-Dist: wheel<0.46.0,>=0.45.1; extra == "dev"
|
|
47
|
+
Requires-Dist: coverage>=7.13.5; extra == "dev"
|
|
47
48
|
Provides-Extra: doc
|
|
48
49
|
Requires-Dist: autoapi<2.1.0,>=2.0.1; extra == "doc"
|
|
49
50
|
Requires-Dist: sphinx-autodoc-typehints<3.3.0,>=3.2.0; extra == "doc"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import dataclasses
|
|
2
2
|
import json
|
|
3
|
+
from http.cookiejar import DefaultCookiePolicy
|
|
3
4
|
from typing import TYPE_CHECKING, Any, BinaryIO, Dict, Optional, Union
|
|
4
5
|
|
|
5
6
|
import requests
|
|
@@ -67,6 +68,7 @@ class RequestsResponse(protocol.BackendResponse):
|
|
|
67
68
|
class RequestsBackend(protocol.Backend):
|
|
68
69
|
def __init__(self, session: Optional[requests.Session] = None) -> None:
|
|
69
70
|
self._client: requests.Session = session or requests.Session()
|
|
71
|
+
self._client.cookies.set_policy(DefaultCookiePolicy(allowed_domains=[]))
|
|
70
72
|
|
|
71
73
|
@property
|
|
72
74
|
def client(self) -> requests.Session:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyoaev
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.4
|
|
4
4
|
Summary: Python API client for OpenAEV.
|
|
5
5
|
Author-email: Filigran <contact@filigran.io>
|
|
6
6
|
Maintainer-email: Filigran <contact@filigran.io>
|
|
@@ -44,6 +44,7 @@ Requires-Dist: types-pytz<2025.3.0.0,>=2025.2.0.20250326; extra == "dev"
|
|
|
44
44
|
Requires-Dist: pre-commit<4.3.0,>=4.2.0; extra == "dev"
|
|
45
45
|
Requires-Dist: types-python-dateutil<2.10.0,>=2.9.0; extra == "dev"
|
|
46
46
|
Requires-Dist: wheel<0.46.0,>=0.45.1; extra == "dev"
|
|
47
|
+
Requires-Dist: coverage>=7.13.5; extra == "dev"
|
|
47
48
|
Provides-Extra: doc
|
|
48
49
|
Requires-Dist: autoapi<2.1.0,>=2.0.1; extra == "doc"
|
|
49
50
|
Requires-Dist: sphinx-autodoc-typehints<3.3.0,>=3.2.0; extra == "doc"
|
|
@@ -70,6 +70,7 @@ test/apis/expectation/__init__.py
|
|
|
70
70
|
test/apis/expectation/test_expectation.py
|
|
71
71
|
test/apis/injector_contract/__init__.py
|
|
72
72
|
test/apis/injector_contract/test_injector_contract.py
|
|
73
|
+
test/backends/test_backend.py
|
|
73
74
|
test/configuration/__init__.py
|
|
74
75
|
test/configuration/test_configuration.py
|
|
75
76
|
test/configuration/test_sources.py
|
|
@@ -53,7 +53,8 @@ dev = [
|
|
|
53
53
|
"types-pytz (>=2025.2.0.20250326,<2025.3.0.0)",
|
|
54
54
|
"pre-commit (>=4.2.0,<4.3.0)",
|
|
55
55
|
"types-python-dateutil (>=2.9.0,<2.10.0)",
|
|
56
|
-
"wheel (>=0.45.1,<0.46.0)"
|
|
56
|
+
"wheel (>=0.45.1,<0.46.0)",
|
|
57
|
+
"coverage>=7.13.5"
|
|
57
58
|
]
|
|
58
59
|
doc = [
|
|
59
60
|
"autoapi (>=2.0.1,<2.1.0)",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import unittest
|
|
2
|
+
|
|
3
|
+
from pyoaev.backends import backend as module
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class TestRequestsBackend(unittest.TestCase):
|
|
7
|
+
def test_no_cookie_allowed(self):
|
|
8
|
+
backend = module.RequestsBackend()
|
|
9
|
+
|
|
10
|
+
self.assertIsNotNone(backend._client.cookies._policy.allowed_domains())
|
|
11
|
+
self.assertEqual(len(backend._client.cookies._policy.allowed_domains()), 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
|
|
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
|
|
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
|
|
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
|