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.
Files changed (92) hide show
  1. loams/__init__.py +88 -0
  2. loams/_gen/facade.py +2911 -0
  3. loams/admin/v1/__init__.py +7 -0
  4. loams/admin/v1/__init__.pyi +0 -0
  5. loams/admin/v1/agent_connect.py +1043 -0
  6. loams/admin/v1/agent_pb2.py +124 -0
  7. loams/admin/v1/agent_pb2.pyi +324 -0
  8. loams/admin/v1/audit_connect.py +310 -0
  9. loams/admin/v1/audit_pb2.py +61 -0
  10. loams/admin/v1/audit_pb2.pyi +102 -0
  11. loams/admin/v1/common_pb2.py +47 -0
  12. loams/admin/v1/common_pb2.pyi +87 -0
  13. loams/admin/v1/key_connect.py +480 -0
  14. loams/admin/v1/key_pb2.py +67 -0
  15. loams/admin/v1/key_pb2.pyi +100 -0
  16. loams/admin/v1/org_connect.py +954 -0
  17. loams/admin/v1/org_pb2.py +112 -0
  18. loams/admin/v1/org_pb2.pyi +227 -0
  19. loams/admin/v1/project_connect.py +889 -0
  20. loams/admin/v1/project_pb2.py +105 -0
  21. loams/admin/v1/project_pb2.pyi +240 -0
  22. loams/aio.py +260 -0
  23. loams/approvals/v1/__init__.py +7 -0
  24. loams/approvals/v1/__init__.pyi +0 -0
  25. loams/approvals/v1/approvals_connect.py +424 -0
  26. loams/approvals/v1/approvals_pb2.py +82 -0
  27. loams/approvals/v1/approvals_pb2.pyi +235 -0
  28. loams/auth/v1/__init__.py +7 -0
  29. loams/auth/v1/__init__.pyi +0 -0
  30. loams/auth/v1/auth_connect.py +638 -0
  31. loams/auth/v1/auth_pb2.py +86 -0
  32. loams/auth/v1/auth_pb2.pyi +162 -0
  33. loams/devices/v1/__init__.py +7 -0
  34. loams/devices/v1/__init__.pyi +0 -0
  35. loams/devices/v1/devices_connect.py +801 -0
  36. loams/devices/v1/devices_pb2.py +95 -0
  37. loams/devices/v1/devices_pb2.pyi +263 -0
  38. loams/errors/v1/__init__.py +7 -0
  39. loams/errors/v1/__init__.pyi +0 -0
  40. loams/errors/v1/errors_pb2.py +40 -0
  41. loams/errors/v1/errors_pb2.pyi +24 -0
  42. loams/instance/v1/__init__.py +7 -0
  43. loams/instance/v1/__init__.pyi +0 -0
  44. loams/instance/v1/instance_connect.py +302 -0
  45. loams/instance/v1/instance_pb2.py +84 -0
  46. loams/instance/v1/instance_pb2.pyi +204 -0
  47. loams/live/v1/__init__.py +7 -0
  48. loams/live/v1/__init__.pyi +0 -0
  49. loams/live/v1/admin_connect.py +630 -0
  50. loams/live/v1/admin_pb2.py +96 -0
  51. loams/live/v1/admin_pb2.pyi +251 -0
  52. loams/live/v1/catalog_pb2.py +52 -0
  53. loams/live/v1/catalog_pb2.pyi +125 -0
  54. loams/live/v1/idempotency_pb2.py +37 -0
  55. loams/live/v1/idempotency_pb2.pyi +23 -0
  56. loams/live/v1/journal_pb2.py +44 -0
  57. loams/live/v1/journal_pb2.pyi +72 -0
  58. loams/live/v1/live_connect.py +492 -0
  59. loams/live/v1/live_pb2.py +100 -0
  60. loams/live/v1/live_pb2.pyi +257 -0
  61. loams/live/v1/value_pb2.py +52 -0
  62. loams/live/v1/value_pb2.pyi +67 -0
  63. loams/loams.py +334 -0
  64. loams/notifications/v1/__init__.py +7 -0
  65. loams/notifications/v1/__init__.pyi +0 -0
  66. loams/notifications/v1/notifications_connect.py +355 -0
  67. loams/notifications/v1/notifications_pb2.py +58 -0
  68. loams/notifications/v1/notifications_pb2.pyi +107 -0
  69. loams/operations/v1/__init__.py +7 -0
  70. loams/operations/v1/__init__.pyi +0 -0
  71. loams/operations/v1/operations_connect.py +420 -0
  72. loams/operations/v1/operations_pb2.py +74 -0
  73. loams/operations/v1/operations_pb2.pyi +164 -0
  74. loams/options/v1/__init__.py +7 -0
  75. loams/options/v1/__init__.pyi +0 -0
  76. loams/options/v1/options_pb2.py +39 -0
  77. loams/options/v1/options_pb2.pyi +32 -0
  78. loams/runtime/call.py +617 -0
  79. loams/runtime/consistency.py +87 -0
  80. loams/runtime/errors.py +317 -0
  81. loams/runtime/options.py +113 -0
  82. loams/runtime/pagination.py +113 -0
  83. loams/runtime/retry.py +86 -0
  84. loams/runtime/streams.py +206 -0
  85. loams/runtime/token_source.py +394 -0
  86. loams/runtime/transports.py +159 -0
  87. loams/runtime/uuidv7.py +102 -0
  88. loams/system.py +320 -0
  89. loams-0.1.0a2.dist-info/METADATA +123 -0
  90. loams-0.1.0a2.dist-info/RECORD +92 -0
  91. loams-0.1.0a2.dist-info/WHEEL +4 -0
  92. 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
+ ]