loams 0.1.0a2__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.
- loams/__init__.py +88 -0
- loams/_gen/facade.py +2911 -0
- loams/admin/v1/__init__.py +7 -0
- loams/admin/v1/__init__.pyi +0 -0
- loams/admin/v1/agent_connect.py +1043 -0
- loams/admin/v1/agent_pb2.py +124 -0
- loams/admin/v1/agent_pb2.pyi +324 -0
- loams/admin/v1/audit_connect.py +310 -0
- loams/admin/v1/audit_pb2.py +61 -0
- loams/admin/v1/audit_pb2.pyi +102 -0
- loams/admin/v1/common_pb2.py +47 -0
- loams/admin/v1/common_pb2.pyi +87 -0
- loams/admin/v1/key_connect.py +480 -0
- loams/admin/v1/key_pb2.py +67 -0
- loams/admin/v1/key_pb2.pyi +100 -0
- loams/admin/v1/org_connect.py +954 -0
- loams/admin/v1/org_pb2.py +112 -0
- loams/admin/v1/org_pb2.pyi +227 -0
- loams/admin/v1/project_connect.py +889 -0
- loams/admin/v1/project_pb2.py +105 -0
- loams/admin/v1/project_pb2.pyi +240 -0
- loams/aio.py +260 -0
- loams/approvals/v1/__init__.py +7 -0
- loams/approvals/v1/__init__.pyi +0 -0
- loams/approvals/v1/approvals_connect.py +424 -0
- loams/approvals/v1/approvals_pb2.py +82 -0
- loams/approvals/v1/approvals_pb2.pyi +235 -0
- loams/auth/v1/__init__.py +7 -0
- loams/auth/v1/__init__.pyi +0 -0
- loams/auth/v1/auth_connect.py +638 -0
- loams/auth/v1/auth_pb2.py +86 -0
- loams/auth/v1/auth_pb2.pyi +162 -0
- loams/devices/v1/__init__.py +7 -0
- loams/devices/v1/__init__.pyi +0 -0
- loams/devices/v1/devices_connect.py +801 -0
- loams/devices/v1/devices_pb2.py +95 -0
- loams/devices/v1/devices_pb2.pyi +263 -0
- loams/errors/v1/__init__.py +7 -0
- loams/errors/v1/__init__.pyi +0 -0
- loams/errors/v1/errors_pb2.py +40 -0
- loams/errors/v1/errors_pb2.pyi +24 -0
- loams/instance/v1/__init__.py +7 -0
- loams/instance/v1/__init__.pyi +0 -0
- loams/instance/v1/instance_connect.py +302 -0
- loams/instance/v1/instance_pb2.py +84 -0
- loams/instance/v1/instance_pb2.pyi +204 -0
- loams/live/v1/__init__.py +7 -0
- loams/live/v1/__init__.pyi +0 -0
- loams/live/v1/admin_connect.py +630 -0
- loams/live/v1/admin_pb2.py +96 -0
- loams/live/v1/admin_pb2.pyi +251 -0
- loams/live/v1/catalog_pb2.py +52 -0
- loams/live/v1/catalog_pb2.pyi +125 -0
- loams/live/v1/idempotency_pb2.py +37 -0
- loams/live/v1/idempotency_pb2.pyi +23 -0
- loams/live/v1/journal_pb2.py +44 -0
- loams/live/v1/journal_pb2.pyi +72 -0
- loams/live/v1/live_connect.py +492 -0
- loams/live/v1/live_pb2.py +100 -0
- loams/live/v1/live_pb2.pyi +257 -0
- loams/live/v1/value_pb2.py +52 -0
- loams/live/v1/value_pb2.pyi +67 -0
- loams/loams.py +334 -0
- loams/notifications/v1/__init__.py +7 -0
- loams/notifications/v1/__init__.pyi +0 -0
- loams/notifications/v1/notifications_connect.py +355 -0
- loams/notifications/v1/notifications_pb2.py +58 -0
- loams/notifications/v1/notifications_pb2.pyi +107 -0
- loams/operations/v1/__init__.py +7 -0
- loams/operations/v1/__init__.pyi +0 -0
- loams/operations/v1/operations_connect.py +420 -0
- loams/operations/v1/operations_pb2.py +74 -0
- loams/operations/v1/operations_pb2.pyi +164 -0
- loams/options/v1/__init__.py +7 -0
- loams/options/v1/__init__.pyi +0 -0
- loams/options/v1/options_pb2.py +39 -0
- loams/options/v1/options_pb2.pyi +32 -0
- loams/runtime/call.py +617 -0
- loams/runtime/consistency.py +87 -0
- loams/runtime/errors.py +317 -0
- loams/runtime/options.py +113 -0
- loams/runtime/pagination.py +113 -0
- loams/runtime/retry.py +86 -0
- loams/runtime/streams.py +206 -0
- loams/runtime/token_source.py +394 -0
- loams/runtime/transports.py +159 -0
- loams/runtime/uuidv7.py +102 -0
- loams/system.py +320 -0
- loams-0.1.0a2.dist-info/METADATA +123 -0
- loams-0.1.0a2.dist-info/RECORD +92 -0
- loams-0.1.0a2.dist-info/WHEEL +4 -0
- loams-0.1.0a2.dist-info/licenses/LICENSE +202 -0
loams/__init__.py
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"""The Loams SDK for Python.
|
|
2
|
+
|
|
3
|
+
``from loams import Loams`` is the SDK's front door, so this module re-exports
|
|
4
|
+
the clients and the token-source factories. Without it the package installs but
|
|
5
|
+
the documented imports fail: Python treats a directory with no ``__init__.py`` as
|
|
6
|
+
a namespace package, and a namespace package has none of these attributes.
|
|
7
|
+
|
|
8
|
+
The token sources are re-exported in matched sync and async pairs because every
|
|
9
|
+
one of them has an async twin, and picking the wrong one is a bug that only shows
|
|
10
|
+
up as a blocking call on the event loop -- ``aio.py`` had been importing the
|
|
11
|
+
sync ``api_key`` under the name ``async_api_key_source``.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
from loams.aio import AsyncLoams
|
|
15
|
+
from loams.loams import Loams
|
|
16
|
+
from loams.runtime.errors import (
|
|
17
|
+
AbortedError,
|
|
18
|
+
AlreadyExistsError,
|
|
19
|
+
DeadlineExceededError,
|
|
20
|
+
FailedPreconditionError,
|
|
21
|
+
FeatureNotInVariantError,
|
|
22
|
+
InternalError,
|
|
23
|
+
InvalidArgumentError,
|
|
24
|
+
LoamsError,
|
|
25
|
+
NotFoundError,
|
|
26
|
+
PermissionDeniedError,
|
|
27
|
+
ResourceExhaustedError,
|
|
28
|
+
TokenExpiredError,
|
|
29
|
+
UnauthenticatedError,
|
|
30
|
+
UnavailableError,
|
|
31
|
+
UnimplementedError,
|
|
32
|
+
is_loams_error,
|
|
33
|
+
)
|
|
34
|
+
from loams.runtime.options import CallOptions, ConsistencyOptions
|
|
35
|
+
from loams.runtime.token_source import (
|
|
36
|
+
OidcExchangeOptions,
|
|
37
|
+
api_key,
|
|
38
|
+
async_api_key,
|
|
39
|
+
async_env_token,
|
|
40
|
+
async_oidc_exchange,
|
|
41
|
+
async_refreshing,
|
|
42
|
+
async_static_token,
|
|
43
|
+
env_token,
|
|
44
|
+
oidc_exchange,
|
|
45
|
+
refreshing,
|
|
46
|
+
static_token,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
__all__ = [
|
|
50
|
+
# The per-call options, because every generated method takes
|
|
51
|
+
# `options: CallOptions | None` and there is no other way to set a deadline, a
|
|
52
|
+
# caller header or an idempotency key on one call. They were reachable only as
|
|
53
|
+
# `loams.runtime.options`, which reads as internal and carries no stability
|
|
54
|
+
# promise -- so the documented parameter was unusable from the public surface.
|
|
55
|
+
# `OidcExchangeOptions` was already exported, so options types are public here
|
|
56
|
+
# too; these two are the ones a call site actually needs.
|
|
57
|
+
"CallOptions",
|
|
58
|
+
"ConsistencyOptions",
|
|
59
|
+
"AbortedError",
|
|
60
|
+
"AlreadyExistsError",
|
|
61
|
+
"DeadlineExceededError",
|
|
62
|
+
"FailedPreconditionError",
|
|
63
|
+
"FeatureNotInVariantError",
|
|
64
|
+
"InternalError",
|
|
65
|
+
"InvalidArgumentError",
|
|
66
|
+
"LoamsError",
|
|
67
|
+
"NotFoundError",
|
|
68
|
+
"PermissionDeniedError",
|
|
69
|
+
"ResourceExhaustedError",
|
|
70
|
+
"TokenExpiredError",
|
|
71
|
+
"UnauthenticatedError",
|
|
72
|
+
"UnavailableError",
|
|
73
|
+
"UnimplementedError",
|
|
74
|
+
"is_loams_error",
|
|
75
|
+
"AsyncLoams",
|
|
76
|
+
"Loams",
|
|
77
|
+
"OidcExchangeOptions",
|
|
78
|
+
"api_key",
|
|
79
|
+
"async_api_key",
|
|
80
|
+
"async_env_token",
|
|
81
|
+
"async_oidc_exchange",
|
|
82
|
+
"async_refreshing",
|
|
83
|
+
"async_static_token",
|
|
84
|
+
"env_token",
|
|
85
|
+
"oidc_exchange",
|
|
86
|
+
"refreshing",
|
|
87
|
+
"static_token",
|
|
88
|
+
]
|