burnledger 0.1.0__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.
burnledger/__init__.py ADDED
@@ -0,0 +1,102 @@
1
+ """BurnLedger Python SDK.
2
+
3
+ Usage::
4
+
5
+ from burnledger import BurnLedger
6
+
7
+ with BurnLedger(api_key="dp_...") as dp:
8
+ att = dp.attest("user@example.com", system_ids=["..."])
9
+ result = dp.verify(att.id, "user@example.com", timeout=60)
10
+ cert = dp.get_certificate(result.certificate.id)
11
+ """
12
+
13
+ from burnledger._client import AsyncBurnLedger, BurnLedger
14
+ from burnledger._errors import (
15
+ APIError,
16
+ AuthenticationError,
17
+ ConflictError,
18
+ BurnLedgerError,
19
+ NotFoundError,
20
+ RateLimitError,
21
+ ServerError,
22
+ TimeoutError,
23
+ ValidationError,
24
+ VerificationError,
25
+ )
26
+ from burnledger._models import (
27
+ Attestation,
28
+ AttestationStatus,
29
+ CertificateResponse,
30
+ CertificateStatus,
31
+ ConnectorType,
32
+ ConsistencyProof,
33
+ HashScope,
34
+ HealthStatus,
35
+ InclusionProof,
36
+ LogEntry,
37
+ LogEntryType,
38
+ ProofMode,
39
+ RevocationStatus,
40
+ SignedTreeHead,
41
+ System,
42
+ SystemAttestation,
43
+ TransparencyResult,
44
+ TransparencyStatus,
45
+ VerificationResult,
46
+ VerificationSystem,
47
+ VerifyResult,
48
+ Webhook,
49
+ )
50
+ from burnledger._pagination import AsyncPaginator, SyncPaginator
51
+ from burnledger._verify import PublicKeyInfo, issuance_bytes, verify_certificate, verify_transparency
52
+ from burnledger._webhooks import verify_webhook_signature
53
+
54
+ __all__ = [
55
+ # Clients
56
+ "BurnLedger",
57
+ "AsyncBurnLedger",
58
+ # Verification
59
+ "verify_certificate",
60
+ "verify_transparency",
61
+ "issuance_bytes",
62
+ "verify_webhook_signature",
63
+ "PublicKeyInfo",
64
+ # Models
65
+ "Attestation",
66
+ "CertificateResponse",
67
+ "ConsistencyProof",
68
+ "InclusionProof",
69
+ "LogEntry",
70
+ "RevocationStatus",
71
+ "SignedTreeHead",
72
+ "System",
73
+ "SystemAttestation",
74
+ "VerificationSystem",
75
+ "VerifyResult",
76
+ "Webhook",
77
+ # Enums
78
+ "AttestationStatus",
79
+ "CertificateStatus",
80
+ "ConnectorType",
81
+ "HashScope",
82
+ "HealthStatus",
83
+ "LogEntryType",
84
+ "ProofMode",
85
+ "TransparencyResult",
86
+ "TransparencyStatus",
87
+ "VerificationResult",
88
+ # Pagination
89
+ "AsyncPaginator",
90
+ "SyncPaginator",
91
+ # Errors
92
+ "APIError",
93
+ "AuthenticationError",
94
+ "ConflictError",
95
+ "BurnLedgerError",
96
+ "NotFoundError",
97
+ "RateLimitError",
98
+ "ServerError",
99
+ "TimeoutError",
100
+ "ValidationError",
101
+ "VerificationError",
102
+ ]