AccessGate 0.2.0a1__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.
@@ -0,0 +1,118 @@
1
+ """AccessGate: composable, default-deny authorization for Python."""
2
+
3
+ from .abac import (
4
+ POLICY_SCHEMA_VERSION,
5
+ ActionAttribute,
6
+ AllOf,
7
+ AnyOf,
8
+ AttributePolicy,
9
+ AttributeRef,
10
+ AttributeSource,
11
+ Comparison,
12
+ Condition,
13
+ ConditionResult,
14
+ ConditionState,
15
+ ContextAttribute,
16
+ Literal,
17
+ Not,
18
+ OperatorRegistry,
19
+ PolicySchemaError,
20
+ ResourceAttribute,
21
+ SubjectAttribute,
22
+ attribute_policy_from_dict,
23
+ condition_from_dict,
24
+ dumps_policy,
25
+ load_policy_schema,
26
+ loads_policy,
27
+ )
28
+ from .engine import AuthorizationEngine, ErrorMode
29
+ from .exceptions import AuthorizationDenied
30
+ from .integrity import (
31
+ CANONICAL_POLICY_FORMAT,
32
+ POLICY_SET_SCHEMA_VERSION,
33
+ SIGNED_POLICY_ENVELOPE_VERSION,
34
+ PolicyIntegrityError,
35
+ PolicySignatureVerifier,
36
+ PolicySigner,
37
+ canonical_policy_bytes,
38
+ dumps_signed_policy,
39
+ loads_signed_policy,
40
+ policy_fingerprint,
41
+ policy_set_fingerprint,
42
+ )
43
+ from .policies import (
44
+ AuthenticatedPolicy,
45
+ FunctionPolicy,
46
+ MissEffect,
47
+ OwnerPolicy,
48
+ RolePolicy,
49
+ TenantBoundaryPolicy,
50
+ )
51
+ from .protocols import (
52
+ AuditSink,
53
+ DecisionStrategy,
54
+ Policy,
55
+ ResourceResolver,
56
+ SubjectResolver,
57
+ )
58
+ from .strategies import DenyOverrides
59
+ from .types import AuthorizationRequest, Decision, Effect, Resource, Subject
60
+
61
+ __all__ = [
62
+ "ActionAttribute",
63
+ "AllOf",
64
+ "AuditSink",
65
+ "AnyOf",
66
+ "AuthenticatedPolicy",
67
+ "AttributePolicy",
68
+ "AttributeRef",
69
+ "AttributeSource",
70
+ "AuthorizationDenied",
71
+ "AuthorizationEngine",
72
+ "AuthorizationRequest",
73
+ "CANONICAL_POLICY_FORMAT",
74
+ "Comparison",
75
+ "Condition",
76
+ "ConditionResult",
77
+ "ConditionState",
78
+ "ContextAttribute",
79
+ "Decision",
80
+ "DecisionStrategy",
81
+ "DenyOverrides",
82
+ "Effect",
83
+ "ErrorMode",
84
+ "FunctionPolicy",
85
+ "Literal",
86
+ "MissEffect",
87
+ "Not",
88
+ "OperatorRegistry",
89
+ "OwnerPolicy",
90
+ "Policy",
91
+ "POLICY_SET_SCHEMA_VERSION",
92
+ "PolicyIntegrityError",
93
+ "PolicySignatureVerifier",
94
+ "PolicySigner",
95
+ "POLICY_SCHEMA_VERSION",
96
+ "PolicySchemaError",
97
+ "Resource",
98
+ "ResourceAttribute",
99
+ "ResourceResolver",
100
+ "RolePolicy",
101
+ "Subject",
102
+ "SubjectAttribute",
103
+ "SubjectResolver",
104
+ "SIGNED_POLICY_ENVELOPE_VERSION",
105
+ "TenantBoundaryPolicy",
106
+ "attribute_policy_from_dict",
107
+ "canonical_policy_bytes",
108
+ "condition_from_dict",
109
+ "dumps_policy",
110
+ "dumps_signed_policy",
111
+ "load_policy_schema",
112
+ "loads_policy",
113
+ "loads_signed_policy",
114
+ "policy_fingerprint",
115
+ "policy_set_fingerprint",
116
+ ]
117
+
118
+ __version__ = "0.2.0a1"