File size: 1,308 Bytes
551b309
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
"""AffixIO admission and evidence controls for Hugging Face inference."""

# Credit: @paparichens

from .integrity import IntegrityError  # noqa: I001
from .integrity import enforce as _enforce_integrity

_enforce_integrity()

from .client import AffixHuggingFace, AuthorisedStream  # noqa: E402
from .errors import (  # noqa: E402
    AdmissionDenied,
    AffixAPIError,
    AffixHuggingFaceError,
    ConfigurationError,
    EvidenceError,
    RegistrationThrottled,
    StreamNotComplete,
    TrialExhausted,
)
from .models import (  # noqa: E402
    AdmissionChecks,
    AdmissionProof,
    AffixReceipt,
    AuthorisedResult,
    CompletionEvidence,
    GateReceipt,
    ModelRef,
)
from .trial import TrialCredentials, TrialQuota, credentials_path  # noqa: E402

__version__ = "0.3.0"

__all__ = [
    "AdmissionChecks",
    "AdmissionDenied",
    "AdmissionProof",
    "AffixAPIError",
    "AffixHuggingFace",
    "AffixHuggingFaceError",
    "AffixReceipt",
    "AuthorisedResult",
    "AuthorisedStream",
    "CompletionEvidence",
    "ConfigurationError",
    "EvidenceError",
    "GateReceipt",
    "IntegrityError",
    "ModelRef",
    "RegistrationThrottled",
    "StreamNotComplete",
    "TrialCredentials",
    "TrialExhausted",
    "TrialQuota",
    "__version__",
    "credentials_path",
]