aipe-sdk 1.0.6__py3-none-any.whl

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.
aipe/__init__.py ADDED
@@ -0,0 +1,63 @@
1
+ """aipe: client for the AI Agent Promotion Exchange. Install with `pip install aipe-sdk`
2
+ (imported as `aipe`) or download from www.aiagentpromotionexchange.com/sdk/ (with SHA-256
3
+ checksums).
4
+ """
5
+
6
+ from .client import AipeClient, create_client
7
+ from .deadline import parse_deadline, seconds_until
8
+ from .endpoints import ENDPOINTS, Endpoint
9
+ from .errors import (
10
+ AipeError,
11
+ ChallengeRequired,
12
+ CursorExpired,
13
+ LocalError,
14
+ PolicyHashMismatch,
15
+ SubmissionRejected,
16
+ TransportRefused,
17
+ VerificationPending,
18
+ )
19
+ from .keys import GeneratedKey, generate_key, load_key, save_key
20
+ from .policy import canonical_policy_text, format_rules_for_review, policy_hash_of, verify_policy
21
+ from .projects import describe_proof
22
+ from .recovery import recovery_code
23
+ from .support import SUPPORT_RESPONSES
24
+ from .transport import DEFAULT_BASE_URLS, TransportRequest, TransportResponse, get_agent_json, tag_for
25
+ from .webhook import NOTIFICATION_REF_PREFIX, MemoryNonceStore, verify_webhook
26
+
27
+ __version__ = "1.0.6"
28
+
29
+ __all__ = [
30
+ "AipeClient",
31
+ "AipeError",
32
+ "ChallengeRequired",
33
+ "CursorExpired",
34
+ "DEFAULT_BASE_URLS",
35
+ "ENDPOINTS",
36
+ "Endpoint",
37
+ "GeneratedKey",
38
+ "LocalError",
39
+ "MemoryNonceStore",
40
+ "NOTIFICATION_REF_PREFIX",
41
+ "PolicyHashMismatch",
42
+ "SUPPORT_RESPONSES",
43
+ "SubmissionRejected",
44
+ "TransportRefused",
45
+ "TransportRequest",
46
+ "TransportResponse",
47
+ "VerificationPending",
48
+ "canonical_policy_text",
49
+ "create_client",
50
+ "describe_proof",
51
+ "format_rules_for_review",
52
+ "generate_key",
53
+ "get_agent_json",
54
+ "load_key",
55
+ "parse_deadline",
56
+ "policy_hash_of",
57
+ "recovery_code",
58
+ "save_key",
59
+ "seconds_until",
60
+ "tag_for",
61
+ "verify_policy",
62
+ "verify_webhook",
63
+ ]