agentguard-python-sdk 0.1.2__tar.gz → 0.1.3__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.
Files changed (17) hide show
  1. {agentguard_python_sdk-0.1.2 → agentguard_python_sdk-0.1.3}/PKG-INFO +2 -1
  2. {agentguard_python_sdk-0.1.2 → agentguard_python_sdk-0.1.3}/agentguard/client.py +8 -3
  3. {agentguard_python_sdk-0.1.2 → agentguard_python_sdk-0.1.3}/agentguard_python_sdk.egg-info/PKG-INFO +2 -1
  4. {agentguard_python_sdk-0.1.2 → agentguard_python_sdk-0.1.3}/agentguard_python_sdk.egg-info/requires.txt +1 -0
  5. {agentguard_python_sdk-0.1.2 → agentguard_python_sdk-0.1.3}/pyproject.toml +2 -1
  6. {agentguard_python_sdk-0.1.2 → agentguard_python_sdk-0.1.3}/README.md +0 -0
  7. {agentguard_python_sdk-0.1.2 → agentguard_python_sdk-0.1.3}/agentguard/__init__.py +0 -0
  8. {agentguard_python_sdk-0.1.2 → agentguard_python_sdk-0.1.3}/agentguard/auth.py +0 -0
  9. {agentguard_python_sdk-0.1.2 → agentguard_python_sdk-0.1.3}/agentguard/config.py +0 -0
  10. {agentguard_python_sdk-0.1.2 → agentguard_python_sdk-0.1.3}/agentguard/consent.py +0 -0
  11. {agentguard_python_sdk-0.1.2 → agentguard_python_sdk-0.1.3}/agentguard/errors.py +0 -0
  12. {agentguard_python_sdk-0.1.2 → agentguard_python_sdk-0.1.3}/agentguard/observability.py +0 -0
  13. {agentguard_python_sdk-0.1.2 → agentguard_python_sdk-0.1.3}/agentguard/types.py +0 -0
  14. {agentguard_python_sdk-0.1.2 → agentguard_python_sdk-0.1.3}/agentguard_python_sdk.egg-info/SOURCES.txt +0 -0
  15. {agentguard_python_sdk-0.1.2 → agentguard_python_sdk-0.1.3}/agentguard_python_sdk.egg-info/dependency_links.txt +0 -0
  16. {agentguard_python_sdk-0.1.2 → agentguard_python_sdk-0.1.3}/agentguard_python_sdk.egg-info/top_level.txt +0 -0
  17. {agentguard_python_sdk-0.1.2 → agentguard_python_sdk-0.1.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentguard-python-sdk
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: A production-grade middleware for AI agents to perform on-chain payments and verifiable consent.
5
5
  Author: AgentGuard Team
6
6
  License-Expression: MIT
@@ -8,6 +8,7 @@ Requires-Python: >=3.9
8
8
  Description-Content-Type: text/markdown
9
9
  Requires-Dist: httpx>=0.27.0
10
10
  Requires-Dist: pydantic>=2.0.0
11
+ Requires-Dist: pydantic-settings>=2.0.0
11
12
  Requires-Dist: pynacl>=1.5.0
12
13
  Requires-Dist: py-algorand-sdk>=2.0.0
13
14
 
@@ -55,11 +55,12 @@ def parse_algo_amount_to_microalgos(amount: str) -> int:
55
55
  class AgentGuardClient:
56
56
  def __init__(
57
57
  self,
58
- wallet_address: str,
58
+ wallet_address: Optional[str] = None,
59
59
  config: Optional[AgentGuardConfig] = None,
60
60
  private_key: str = None,
61
61
  backend_url: Optional[str] = None,
62
- indexer_url: Optional[str] = None
62
+ indexer_url: Optional[str] = None,
63
+ principal_id: Optional[str] = None
63
64
  ):
64
65
  """
65
66
  Initialize the AgentGuard client with a structured config object or direct overrides.
@@ -72,7 +73,11 @@ class AgentGuardClient:
72
73
  if indexer_url:
73
74
  self.config.indexer_url = indexer_url
74
75
 
75
- self.wallet_address = wallet_address
76
+ # Support principal_id as an alias for wallet_address
77
+ self.wallet_address = wallet_address or principal_id
78
+ if not self.wallet_address:
79
+ raise ValueError("Either wallet_address or principal_id must be provided.")
80
+
76
81
  self.base_url = self.config.backend_url.rstrip("/")
77
82
  self.private_key = private_key
78
83
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentguard-python-sdk
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: A production-grade middleware for AI agents to perform on-chain payments and verifiable consent.
5
5
  Author: AgentGuard Team
6
6
  License-Expression: MIT
@@ -8,6 +8,7 @@ Requires-Python: >=3.9
8
8
  Description-Content-Type: text/markdown
9
9
  Requires-Dist: httpx>=0.27.0
10
10
  Requires-Dist: pydantic>=2.0.0
11
+ Requires-Dist: pydantic-settings>=2.0.0
11
12
  Requires-Dist: pynacl>=1.5.0
12
13
  Requires-Dist: py-algorand-sdk>=2.0.0
13
14
 
@@ -1,4 +1,5 @@
1
1
  httpx>=0.27.0
2
2
  pydantic>=2.0.0
3
+ pydantic-settings>=2.0.0
3
4
  pynacl>=1.5.0
4
5
  py-algorand-sdk>=2.0.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "agentguard-python-sdk"
7
- version = "0.1.2"
7
+ version = "0.1.3"
8
8
  description = "A production-grade middleware for AI agents to perform on-chain payments and verifiable consent."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -15,6 +15,7 @@ authors = [
15
15
  dependencies = [
16
16
  "httpx>=0.27.0",
17
17
  "pydantic>=2.0.0",
18
+ "pydantic-settings>=2.0.0",
18
19
  "pynacl>=1.5.0",
19
20
  "py-algorand-sdk>=2.0.0"
20
21
  ]