axonflow 0.11.0__tar.gz → 1.0.0__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.
- {axonflow-0.11.0 → axonflow-1.0.0}/PKG-INFO +4 -4
- {axonflow-0.11.0 → axonflow-1.0.0}/README.md +3 -3
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow/__init__.py +4 -4
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow/client.py +612 -63
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow/code_governance.py +13 -1
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow/policies.py +37 -23
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow/types.py +120 -5
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow.egg-info/PKG-INFO +4 -4
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow.egg-info/SOURCES.txt +5 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/pyproject.toml +3 -3
- axonflow-1.0.0/tests/test_audit.py +402 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/tests/test_auth_headers.py +13 -13
- {axonflow-0.11.0 → axonflow-1.0.0}/tests/test_client.py +335 -14
- axonflow-1.0.0/tests/test_client_coverage.py +252 -0
- axonflow-1.0.0/tests/test_cost_controls.py +558 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/tests/test_gateway.py +61 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/tests/test_integration.py +1 -1
- axonflow-1.0.0/tests/test_interceptors_coverage.py +384 -0
- axonflow-1.0.0/tests/test_interceptors_execution.py +1064 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/tests/test_policies.py +41 -38
- {axonflow-0.11.0 → axonflow-1.0.0}/tests/test_selfhosted_zero_config.py +7 -7
- {axonflow-0.11.0 → axonflow-1.0.0}/tests/test_types.py +4 -4
- {axonflow-0.11.0 → axonflow-1.0.0}/LICENSE +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow/exceptions.py +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow/interceptors/__init__.py +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow/interceptors/anthropic.py +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow/interceptors/base.py +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow/interceptors/bedrock.py +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow/interceptors/gemini.py +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow/interceptors/ollama.py +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow/interceptors/openai.py +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow/py.typed +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow/utils/__init__.py +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow/utils/cache.py +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow/utils/logging.py +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow/utils/retry.py +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow.egg-info/dependency_links.txt +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow.egg-info/requires.txt +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/axonflow.egg-info/top_level.txt +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/setup.cfg +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/setup.py +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/tests/test_contract.py +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/tests/test_exceptions.py +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/tests/test_interceptors.py +0 -0
- {axonflow-0.11.0 → axonflow-1.0.0}/tests/test_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: axonflow
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.0
|
|
4
4
|
Summary: AxonFlow Python SDK - Enterprise AI Governance in 3 Lines of Code
|
|
5
5
|
Author-email: AxonFlow <dev@getaxonflow.com>
|
|
6
6
|
Maintainer-email: AxonFlow <dev@getaxonflow.com>
|
|
@@ -89,7 +89,7 @@ from axonflow import AxonFlow
|
|
|
89
89
|
|
|
90
90
|
async def main():
|
|
91
91
|
async with AxonFlow(
|
|
92
|
-
|
|
92
|
+
endpoint="https://your-agent.axonflow.com",
|
|
93
93
|
client_id="your-client-id",
|
|
94
94
|
client_secret="your-client-secret"
|
|
95
95
|
) as client:
|
|
@@ -110,7 +110,7 @@ asyncio.run(main())
|
|
|
110
110
|
from axonflow import AxonFlow
|
|
111
111
|
|
|
112
112
|
with AxonFlow.sync(
|
|
113
|
-
|
|
113
|
+
endpoint="https://your-agent.axonflow.com",
|
|
114
114
|
client_id="your-client-id",
|
|
115
115
|
client_secret="your-client-secret"
|
|
116
116
|
) as client:
|
|
@@ -226,7 +226,7 @@ print(f"Result: {result.result}")
|
|
|
226
226
|
from axonflow import AxonFlow, Mode, RetryConfig
|
|
227
227
|
|
|
228
228
|
client = AxonFlow(
|
|
229
|
-
|
|
229
|
+
endpoint="https://your-agent.axonflow.com",
|
|
230
230
|
client_id="your-client-id",
|
|
231
231
|
client_secret="your-client-secret",
|
|
232
232
|
license_key="optional-license-key", # For enterprise features
|
|
@@ -30,7 +30,7 @@ from axonflow import AxonFlow
|
|
|
30
30
|
|
|
31
31
|
async def main():
|
|
32
32
|
async with AxonFlow(
|
|
33
|
-
|
|
33
|
+
endpoint="https://your-agent.axonflow.com",
|
|
34
34
|
client_id="your-client-id",
|
|
35
35
|
client_secret="your-client-secret"
|
|
36
36
|
) as client:
|
|
@@ -51,7 +51,7 @@ asyncio.run(main())
|
|
|
51
51
|
from axonflow import AxonFlow
|
|
52
52
|
|
|
53
53
|
with AxonFlow.sync(
|
|
54
|
-
|
|
54
|
+
endpoint="https://your-agent.axonflow.com",
|
|
55
55
|
client_id="your-client-id",
|
|
56
56
|
client_secret="your-client-secret"
|
|
57
57
|
) as client:
|
|
@@ -167,7 +167,7 @@ print(f"Result: {result.result}")
|
|
|
167
167
|
from axonflow import AxonFlow, Mode, RetryConfig
|
|
168
168
|
|
|
169
169
|
client = AxonFlow(
|
|
170
|
-
|
|
170
|
+
endpoint="https://your-agent.axonflow.com",
|
|
171
171
|
client_id="your-client-id",
|
|
172
172
|
client_secret="your-client-secret",
|
|
173
173
|
license_key="optional-license-key", # For enterprise features
|
|
@@ -9,7 +9,7 @@ Example:
|
|
|
9
9
|
>>>
|
|
10
10
|
>>> # Async usage
|
|
11
11
|
>>> async with AxonFlow(
|
|
12
|
-
...
|
|
12
|
+
... endpoint="https://your-agent.axonflow.com",
|
|
13
13
|
... client_id="your-client-id",
|
|
14
14
|
... client_secret="your-client-secret"
|
|
15
15
|
... ) as client:
|
|
@@ -18,7 +18,7 @@ Example:
|
|
|
18
18
|
>>>
|
|
19
19
|
>>> # Sync usage
|
|
20
20
|
>>> client = AxonFlow.sync(
|
|
21
|
-
...
|
|
21
|
+
... endpoint="https://your-agent.axonflow.com",
|
|
22
22
|
... client_id="your-client-id",
|
|
23
23
|
... client_secret="your-client-secret"
|
|
24
24
|
... )
|
|
@@ -61,8 +61,8 @@ from axonflow.policies import (
|
|
|
61
61
|
CreatePolicyOverrideRequest,
|
|
62
62
|
CreateStaticPolicyRequest,
|
|
63
63
|
DynamicPolicy,
|
|
64
|
+
DynamicPolicyAction,
|
|
64
65
|
DynamicPolicyCondition,
|
|
65
|
-
DynamicPolicyConfig,
|
|
66
66
|
EffectivePoliciesOptions,
|
|
67
67
|
ListDynamicPoliciesOptions,
|
|
68
68
|
ListStaticPoliciesOptions,
|
|
@@ -173,7 +173,7 @@ __all__ = [
|
|
|
173
173
|
"DynamicPolicy",
|
|
174
174
|
"PolicyOverride",
|
|
175
175
|
"PolicyVersion",
|
|
176
|
-
"
|
|
176
|
+
"DynamicPolicyAction",
|
|
177
177
|
"DynamicPolicyCondition",
|
|
178
178
|
"TestPatternResult",
|
|
179
179
|
"TestPatternMatch",
|