Skip to content

Commit 8cabd4c

Browse files
authored
Merge pull request #137 from auths-dev/dev-pythonSdkCleaning
refactor: simplify python sdk for launch, docstrings
2 parents de22ab3 + 72094cf commit 8cabd4c

7 files changed

Lines changed: 17 additions & 75 deletions

File tree

packages/auths-python/python/auths/__init__.py

Lines changed: 11 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -66,82 +66,18 @@
6666
)
6767

6868
__all__ = [
69+
# Core verification (the launch use case)
70+
"verify_attestation",
71+
"verify_chain",
72+
"VerificationResult",
73+
"VerificationReport",
74+
"VerificationError",
75+
76+
# Client
6977
"Auths",
78+
79+
# Common types users will encounter
7080
"AuthsError",
71-
"VerificationError",
72-
"CryptoError",
73-
"KeychainError",
74-
"StorageError",
75-
"NetworkError",
76-
"IdentityError",
77-
"VerificationResult",
78-
"VerificationStatus",
7981
"ChainLink",
80-
"VerificationReport",
81-
"verify_at_time",
82-
"verify_at_time_with_capability",
83-
"verify_attestation",
84-
"verify_chain",
85-
"verify_attestation_with_capability",
86-
"verify_chain_with_capability",
87-
"verify_chain_with_witnesses",
88-
"verify_device_authorization",
89-
"sign_bytes",
90-
"sign_action",
91-
"verify_action_envelope",
92-
"get_token",
93-
"AgentAuth",
94-
"ArtifactPublishResult",
95-
"ArtifactSigningResult",
96-
"Attestation",
97-
"AttestationService",
98-
"CommitSigningResult",
99-
"AuthsClaims",
100-
"Outcome",
101-
"PolicyBuilder",
102-
"ReasonCode",
103-
"eval_context_from_commit_result",
104-
"compile_policy",
105-
"parse_identity_bundle",
106-
"parse_identity_bundle_info",
107-
"IdentityBundleInfo",
108-
"TrustLevel",
109-
"CommitResult",
110-
"ErrorCode",
111-
"VerifyResult",
112-
"LayoutInfo",
113-
"LayoutError",
114-
"discover_layout",
115-
"generate_allowed_signers",
116-
"verify_commit_range",
117-
"Identity",
118-
"AgentIdentity",
119-
"DelegatedAgent",
120-
"IdentityService",
121-
"Device",
122-
"DeviceExtension",
123-
"DeviceService",
124-
"IdentityRotationResult",
125-
"WitnessConfig",
126-
"WitnessKey",
127-
"Org",
128-
"OrgMember",
129-
"OrgService",
130-
"OrgError",
131-
"AuditReport",
132-
"AuditService",
133-
"AuditSummary",
134-
"CommitRecord",
135-
"TrustEntry",
136-
"TrustService",
137-
"Witness",
138-
"WitnessService",
139-
"Check",
140-
"DiagnosticReport",
141-
"DoctorService",
142-
"PairingResponse",
143-
"PairingResult",
144-
"PairingService",
145-
"PairingSession",
146-
"PairingError",
82+
"VerificationStatus",
14783
]

packages/auths-python/python/auths/audit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Audit reports and commit history analysis."""
12
from __future__ import annotations
23

34
import json

packages/auths-python/python/auths/doctor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Diagnostic checks for identity and signing health."""
12
from __future__ import annotations
23

34
import json

packages/auths-python/python/auths/org.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Organization management — Stripe-style API."""
12
from __future__ import annotations
23

34
import json

packages/auths-python/python/auths/pairing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Device pairing sessions — Stripe-style API."""
12
from __future__ import annotations
23

34
import json

packages/auths-python/python/auths/trust.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Trust pinning and identity verification levels."""
12
from __future__ import annotations
23

34
import enum

packages/auths-python/python/auths/witness.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Witness management for attestation countersigning."""
12
from __future__ import annotations
23

34
import json

0 commit comments

Comments
 (0)