weave-python 0.28.1__py3-none-any.whl → 0.30.3__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 (105) hide show
  1. weave/weaveapi/auth/v1/service_pb2.py +194 -98
  2. weave/weaveapi/auth/v1/service_pb2.pyi +1288 -1134
  3. weave/weaveapi/auth/v1/service_pb2_grpc.pyi +248 -335
  4. weave/weaveapi/auth/v1/session_pb2.py +14 -6
  5. weave/weaveapi/auth/v1/session_pb2.pyi +109 -89
  6. weave/weaveapi/auth/v1/session_pb2_grpc.pyi +11 -10
  7. weave/weaveapi/auth/v1/usage_pb2.py +18 -14
  8. weave/weaveapi/auth/v1/usage_pb2.pyi +251 -197
  9. weave/weaveapi/auth/v1/usage_pb2_grpc.pyi +11 -10
  10. weave/weaveapi/auth/v1/user_pb2.py +60 -18
  11. weave/weaveapi/auth/v1/user_pb2.pyi +588 -505
  12. weave/weaveapi/auth/v1/user_pb2_grpc.pyi +11 -10
  13. weave/weaveapi/generate/v1/configuration_pb2.py +31 -19
  14. weave/weaveapi/generate/v1/configuration_pb2.pyi +277 -241
  15. weave/weaveapi/generate/v1/configuration_pb2_grpc.pyi +11 -10
  16. weave/weaveapi/generate/v1/generate_pb2.py +32 -6
  17. weave/weaveapi/generate/v1/generate_pb2.pyi +138 -40
  18. weave/weaveapi/generate/v1/generate_pb2_grpc.pyi +11 -10
  19. weave/weaveapi/generate/v1/service_pb2.py +52 -22
  20. weave/weaveapi/generate/v1/service_pb2.pyi +264 -135
  21. weave/weaveapi/generate/v1/service_pb2_grpc.py +47 -0
  22. weave/weaveapi/generate/v1/service_pb2_grpc.pyi +89 -78
  23. weave/weaveapi/llmx/v1/architecture_pb2.py +42 -42
  24. weave/weaveapi/llmx/v1/architecture_pb2.pyi +664 -555
  25. weave/weaveapi/llmx/v1/architecture_pb2_grpc.pyi +11 -10
  26. weave/weaveapi/llmx/v1/capabilities_pb2.py +88 -56
  27. weave/weaveapi/llmx/v1/capabilities_pb2.pyi +967 -852
  28. weave/weaveapi/llmx/v1/capabilities_pb2_grpc.pyi +11 -10
  29. weave/weaveapi/llmx/v1/model_pb2.py +56 -20
  30. weave/weaveapi/llmx/v1/model_pb2.pyi +533 -455
  31. weave/weaveapi/llmx/v1/model_pb2_grpc.pyi +11 -10
  32. weave/weaveapi/llmx/v1/pricing_pb2.py +24 -20
  33. weave/weaveapi/llmx/v1/pricing_pb2.pyi +194 -172
  34. weave/weaveapi/llmx/v1/pricing_pb2_grpc.pyi +11 -10
  35. weave/weaveapi/llmx/v1/provider_pb2.py +6 -6
  36. weave/weaveapi/llmx/v1/provider_pb2.pyi +84 -59
  37. weave/weaveapi/llmx/v1/provider_pb2_grpc.pyi +11 -10
  38. weave/weaveapi/llmx/v1/service_pb2.py +228 -90
  39. weave/weaveapi/llmx/v1/service_pb2.pyi +1651 -1403
  40. weave/weaveapi/llmx/v1/service_pb2_grpc.pyi +160 -203
  41. weave/weaveapi/mcpregistry/v1/server_pb2.py +16 -10
  42. weave/weaveapi/mcpregistry/v1/server_pb2.pyi +143 -121
  43. weave/weaveapi/mcpregistry/v1/server_pb2_grpc.pyi +11 -10
  44. weave/weaveapi/mcpregistry/v1/service_pb2.py +51 -31
  45. weave/weaveapi/mcpregistry/v1/service_pb2.pyi +132 -122
  46. weave/weaveapi/mcpregistry/v1/service_pb2_grpc.pyi +87 -112
  47. weave/weaveapi/payment/v1/invoice_pb2.py +38 -12
  48. weave/weaveapi/payment/v1/invoice_pb2.pyi +352 -291
  49. weave/weaveapi/payment/v1/invoice_pb2_grpc.pyi +11 -10
  50. weave/weaveapi/payment/v1/service_pb2.py +264 -98
  51. weave/weaveapi/payment/v1/service_pb2.pyi +1381 -1242
  52. weave/weaveapi/payment/v1/service_pb2_grpc.pyi +229 -319
  53. weave/weaveapi/payment/v1/subscription_pb2.py +99 -23
  54. weave/weaveapi/payment/v1/subscription_pb2.pyi +727 -611
  55. weave/weaveapi/payment/v1/subscription_pb2_grpc.pyi +11 -10
  56. weave/weaveapi/storage/v1/auth_pb2.py +6 -6
  57. weave/weaveapi/storage/v1/auth_pb2.pyi +42 -29
  58. weave/weaveapi/storage/v1/auth_pb2_grpc.pyi +11 -10
  59. weave/weaveapi/storage/v1/nosql_database_pb2.py +47 -23
  60. weave/weaveapi/storage/v1/nosql_database_pb2.pyi +438 -372
  61. weave/weaveapi/storage/v1/nosql_database_pb2_grpc.pyi +11 -10
  62. weave/weaveapi/storage/v1/object_store_pb2.py +27 -13
  63. weave/weaveapi/storage/v1/object_store_pb2.pyi +203 -187
  64. weave/weaveapi/storage/v1/object_store_pb2_grpc.pyi +11 -10
  65. weave/weaveapi/storage/v1/service_pb2.py +96 -36
  66. weave/weaveapi/storage/v1/service_pb2.pyi +414 -357
  67. weave/weaveapi/storage/v1/service_pb2_grpc.pyi +88 -107
  68. weave/weaveapi/storage/v1/sql_database_pb2.py +39 -23
  69. weave/weaveapi/storage/v1/sql_database_pb2.pyi +481 -400
  70. weave/weaveapi/storage/v1/sql_database_pb2_grpc.pyi +11 -10
  71. weave/weaveapi/storage/v1/storage_pb2.py +20 -6
  72. weave/weaveapi/storage/v1/storage_pb2.pyi +79 -70
  73. weave/weaveapi/storage/v1/storage_pb2_grpc.pyi +11 -10
  74. weave/weaveapi/synthesize/v1/dataset_pb2.py +14 -12
  75. weave/weaveapi/synthesize/v1/dataset_pb2.pyi +158 -128
  76. weave/weaveapi/synthesize/v1/dataset_pb2_grpc.pyi +11 -10
  77. weave/weaveapi/synthesize/v1/inline_data_pb2.py +9 -9
  78. weave/weaveapi/synthesize/v1/inline_data_pb2.pyi +31 -27
  79. weave/weaveapi/synthesize/v1/inline_data_pb2_grpc.pyi +11 -10
  80. weave/weaveapi/synthesize/v1/relationship_pb2.py +19 -11
  81. weave/weaveapi/synthesize/v1/relationship_pb2.pyi +67 -64
  82. weave/weaveapi/synthesize/v1/relationship_pb2_grpc.pyi +11 -10
  83. weave/weaveapi/synthesize/v1/service_pb2.py +42 -24
  84. weave/weaveapi/synthesize/v1/service_pb2.pyi +202 -168
  85. weave/weaveapi/synthesize/v1/service_pb2_grpc.pyi +67 -79
  86. weave/weaveapi/synthesize/v1/training_pb2.py +19 -13
  87. weave/weaveapi/synthesize/v1/training_pb2.pyi +119 -106
  88. weave/weaveapi/synthesize/v1/training_pb2_grpc.pyi +11 -10
  89. weave/weavesql/llmxdb/capabilities.py +487 -0
  90. weave/weavesql/llmxdb/changes.py +297 -0
  91. weave/weavesql/llmxdb/models.py +594 -0
  92. weave/weavesql/llmxdb/providers.py +348 -0
  93. weave/weavesql/llmxdb/scraper_runs.py +287 -0
  94. weave/weavesql/llmxdb/search.py +721 -0
  95. weave/weavesql/weavedb/dataset.py +75 -0
  96. weave/weavesql/weavedb/models.py +135 -0
  97. weave/weavesql/weavedb/relationships.py +72 -0
  98. weave/weavesql/weavedb/storage.py +113 -0
  99. weave/weavesql/weavedb/synthesizer.py +107 -0
  100. weave_python-0.30.3.dist-info/METADATA +52 -0
  101. weave_python-0.30.3.dist-info/RECORD +131 -0
  102. {weave_python-0.28.1.dist-info → weave_python-0.30.3.dist-info}/WHEEL +1 -1
  103. weave_python-0.30.3.dist-info/licenses/LICENSE +120 -0
  104. weave_python-0.28.1.dist-info/METADATA +0 -6
  105. weave_python-0.28.1.dist-info/RECORD +0 -119
@@ -3,31 +3,30 @@
3
3
  isort:skip_file
4
4
  """
5
5
 
6
- import builtins
7
- import collections.abc
8
- import google.protobuf.descriptor
9
- import google.protobuf.internal.containers
10
- import google.protobuf.internal.enum_type_wrapper
11
- import google.protobuf.message
6
+ from collections import abc as _abc
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import message as _message
9
+ from google.protobuf.internal import containers as _containers
10
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
11
+ import builtins as _builtins
12
12
  import sys
13
- import typing
13
+ import typing as _typing
14
14
 
15
15
  if sys.version_info >= (3, 10):
16
- import typing as typing_extensions
16
+ from typing import TypeAlias as _TypeAlias
17
17
  else:
18
- import typing_extensions
18
+ from typing_extensions import TypeAlias as _TypeAlias
19
19
 
20
- DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
20
+ DESCRIPTOR: _descriptor.FileDescriptor
21
21
 
22
22
  class _DataType:
23
- ValueType = typing.NewType("ValueType", builtins.int)
24
- V: typing_extensions.TypeAlias = ValueType
23
+ ValueType = _typing.NewType("ValueType", _builtins.int)
24
+ V: _TypeAlias = ValueType # noqa: Y015
25
25
 
26
26
  class _DataTypeEnumTypeWrapper(
27
- google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DataType.ValueType],
28
- builtins.type,
27
+ _enum_type_wrapper._EnumTypeWrapper[_DataType.ValueType], _builtins.type
29
28
  ):
30
- DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
29
+ DESCRIPTOR: _descriptor.EnumDescriptor
31
30
  DATA_TYPE_UNSPECIFIED: _DataType.ValueType # 0
32
31
  DATA_TYPE_STRING: _DataType.ValueType # 1
33
32
  DATA_TYPE_INTEGER: _DataType.ValueType # 2
@@ -52,141 +51,172 @@ DATA_TYPE_DATE: DataType.ValueType # 6
52
51
  DATA_TYPE_BINARY: DataType.ValueType # 7
53
52
  DATA_TYPE_CATEGORICAL: DataType.ValueType # 8
54
53
  DATA_TYPE_ORDINAL: DataType.ValueType # 9
55
- global___DataType = DataType
54
+ Global___DataType: _TypeAlias = DataType # noqa: Y015
56
55
 
57
- @typing.final
58
- class Dataset(google.protobuf.message.Message):
56
+ @_typing.final
57
+ class Dataset(_message.Message):
59
58
  """Dataset represents a tabular dataset within a storage source"""
60
59
 
61
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
62
-
63
- ID_FIELD_NUMBER: builtins.int
64
- NAME_FIELD_NUMBER: builtins.int
65
- DESCRIPTION_FIELD_NUMBER: builtins.int
66
- STORAGE_ID_FIELD_NUMBER: builtins.int
67
- SCHEMA_ID_FIELD_NUMBER: builtins.int
68
- IS_SYNTHETIC_FIELD_NUMBER: builtins.int
69
- id: builtins.str
70
- name: builtins.str
71
- description: builtins.str
72
- storage_id: builtins.str
73
- schema_id: builtins.str
74
- is_synthetic: builtins.bool
60
+ DESCRIPTOR: _descriptor.Descriptor
61
+
62
+ ID_FIELD_NUMBER: _builtins.int
63
+ NAME_FIELD_NUMBER: _builtins.int
64
+ DESCRIPTION_FIELD_NUMBER: _builtins.int
65
+ STORAGE_ID_FIELD_NUMBER: _builtins.int
66
+ SCHEMA_ID_FIELD_NUMBER: _builtins.int
67
+ IS_SYNTHETIC_FIELD_NUMBER: _builtins.int
68
+ id: _builtins.str
69
+ name: _builtins.str
70
+ description: _builtins.str
71
+ storage_id: _builtins.str
72
+ schema_id: _builtins.str
73
+ is_synthetic: _builtins.bool
75
74
  def __init__(
76
75
  self,
77
76
  *,
78
- id: builtins.str = ...,
79
- name: builtins.str = ...,
80
- description: builtins.str = ...,
81
- storage_id: builtins.str = ...,
82
- schema_id: builtins.str = ...,
83
- is_synthetic: builtins.bool = ...,
77
+ id: _builtins.str | None = ...,
78
+ name: _builtins.str | None = ...,
79
+ description: _builtins.str | None = ...,
80
+ storage_id: _builtins.str | None = ...,
81
+ schema_id: _builtins.str | None = ...,
82
+ is_synthetic: _builtins.bool | None = ...,
84
83
  ) -> None: ...
85
- def ClearField(
86
- self,
87
- field_name: typing.Literal[
88
- "description",
89
- b"description",
90
- "id",
91
- b"id",
92
- "is_synthetic",
93
- b"is_synthetic",
94
- "name",
95
- b"name",
96
- "schema_id",
97
- b"schema_id",
98
- "storage_id",
99
- b"storage_id",
100
- ],
101
- ) -> None: ...
102
-
103
- global___Dataset = Dataset
104
-
105
- @typing.final
106
- class Schema(google.protobuf.message.Message):
107
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
108
-
109
- ID_FIELD_NUMBER: builtins.int
110
- NAME_FIELD_NUMBER: builtins.int
111
- DESCRIPTION_FIELD_NUMBER: builtins.int
112
- COLUMNS_FIELD_NUMBER: builtins.int
113
- id: builtins.str
114
- name: builtins.str
115
- description: builtins.str
116
- @property
84
+ _HasFieldArgType: _TypeAlias = _typing.Literal[
85
+ "description",
86
+ b"description",
87
+ "id",
88
+ b"id",
89
+ "is_synthetic",
90
+ b"is_synthetic",
91
+ "name",
92
+ b"name",
93
+ "schema_id",
94
+ b"schema_id",
95
+ "storage_id",
96
+ b"storage_id",
97
+ ] # noqa: Y015
98
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
99
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
100
+ "description",
101
+ b"description",
102
+ "id",
103
+ b"id",
104
+ "is_synthetic",
105
+ b"is_synthetic",
106
+ "name",
107
+ b"name",
108
+ "schema_id",
109
+ b"schema_id",
110
+ "storage_id",
111
+ b"storage_id",
112
+ ] # noqa: Y015
113
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
114
+
115
+ Global___Dataset: _TypeAlias = Dataset # noqa: Y015
116
+
117
+ @_typing.final
118
+ class Schema(_message.Message):
119
+ DESCRIPTOR: _descriptor.Descriptor
120
+
121
+ ID_FIELD_NUMBER: _builtins.int
122
+ NAME_FIELD_NUMBER: _builtins.int
123
+ DESCRIPTION_FIELD_NUMBER: _builtins.int
124
+ COLUMNS_FIELD_NUMBER: _builtins.int
125
+ id: _builtins.str
126
+ name: _builtins.str
127
+ description: _builtins.str
128
+ @_builtins.property
117
129
  def columns(
118
130
  self,
119
- ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
120
- global___Column
121
- ]: ...
131
+ ) -> _containers.RepeatedCompositeFieldContainer[Global___Column]: ...
122
132
  def __init__(
123
133
  self,
124
134
  *,
125
- id: builtins.str = ...,
126
- name: builtins.str = ...,
127
- description: builtins.str = ...,
128
- columns: collections.abc.Iterable[global___Column] | None = ...,
129
- ) -> None: ...
130
- def ClearField(
131
- self,
132
- field_name: typing.Literal[
133
- "columns",
134
- b"columns",
135
- "description",
136
- b"description",
137
- "id",
138
- b"id",
139
- "name",
140
- b"name",
141
- ],
135
+ id: _builtins.str | None = ...,
136
+ name: _builtins.str | None = ...,
137
+ description: _builtins.str | None = ...,
138
+ columns: _abc.Iterable[Global___Column] | None = ...,
142
139
  ) -> None: ...
143
-
144
- global___Schema = Schema
145
-
146
- @typing.final
147
- class Column(google.protobuf.message.Message):
140
+ _HasFieldArgType: _TypeAlias = _typing.Literal[
141
+ "columns",
142
+ b"columns",
143
+ "description",
144
+ b"description",
145
+ "id",
146
+ b"id",
147
+ "name",
148
+ b"name",
149
+ ] # noqa: Y015
150
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
151
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
152
+ "columns",
153
+ b"columns",
154
+ "description",
155
+ b"description",
156
+ "id",
157
+ b"id",
158
+ "name",
159
+ b"name",
160
+ ] # noqa: Y015
161
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
162
+
163
+ Global___Schema: _TypeAlias = Schema # noqa: Y015
164
+
165
+ @_typing.final
166
+ class Column(_message.Message):
148
167
  """Column represents a column in a tabular dataset"""
149
168
 
150
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
169
+ DESCRIPTOR: _descriptor.Descriptor
151
170
 
152
- ID_FIELD_NUMBER: builtins.int
153
- NAME_FIELD_NUMBER: builtins.int
154
- DATA_TYPE_FIELD_NUMBER: builtins.int
155
- IS_PRIMARY_KEY_FIELD_NUMBER: builtins.int
156
- DESCRIPTION_FIELD_NUMBER: builtins.int
157
- id: builtins.str
171
+ ID_FIELD_NUMBER: _builtins.int
172
+ NAME_FIELD_NUMBER: _builtins.int
173
+ DATA_TYPE_FIELD_NUMBER: _builtins.int
174
+ IS_PRIMARY_KEY_FIELD_NUMBER: _builtins.int
175
+ DESCRIPTION_FIELD_NUMBER: _builtins.int
176
+ id: _builtins.str
158
177
  """Unique identifier for this column"""
159
- name: builtins.str
178
+ name: _builtins.str
160
179
  """Name of the column"""
161
- data_type: global___DataType.ValueType
180
+ data_type: Global___DataType.ValueType
162
181
  """Data type of the column"""
163
- is_primary_key: builtins.bool
182
+ is_primary_key: _builtins.bool
164
183
  """Whether this column is a primary key"""
165
- description: builtins.str
184
+ description: _builtins.str
166
185
  """Optional description"""
167
186
  def __init__(
168
187
  self,
169
188
  *,
170
- id: builtins.str = ...,
171
- name: builtins.str = ...,
172
- data_type: global___DataType.ValueType = ...,
173
- is_primary_key: builtins.bool = ...,
174
- description: builtins.str = ...,
189
+ id: _builtins.str | None = ...,
190
+ name: _builtins.str | None = ...,
191
+ data_type: Global___DataType.ValueType | None = ...,
192
+ is_primary_key: _builtins.bool | None = ...,
193
+ description: _builtins.str | None = ...,
175
194
  ) -> None: ...
176
- def ClearField(
177
- self,
178
- field_name: typing.Literal[
179
- "data_type",
180
- b"data_type",
181
- "description",
182
- b"description",
183
- "id",
184
- b"id",
185
- "is_primary_key",
186
- b"is_primary_key",
187
- "name",
188
- b"name",
189
- ],
190
- ) -> None: ...
191
-
192
- global___Column = Column
195
+ _HasFieldArgType: _TypeAlias = _typing.Literal[
196
+ "data_type",
197
+ b"data_type",
198
+ "description",
199
+ b"description",
200
+ "id",
201
+ b"id",
202
+ "is_primary_key",
203
+ b"is_primary_key",
204
+ "name",
205
+ b"name",
206
+ ] # noqa: Y015
207
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
208
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
209
+ "data_type",
210
+ b"data_type",
211
+ "description",
212
+ b"description",
213
+ "id",
214
+ b"id",
215
+ "is_primary_key",
216
+ b"is_primary_key",
217
+ "name",
218
+ b"name",
219
+ ] # noqa: Y015
220
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
221
+
222
+ Global___Column: _TypeAlias = Column # noqa: Y015
@@ -3,18 +3,19 @@
3
3
  isort:skip_file
4
4
  """
5
5
 
6
- import abc
7
- import collections.abc
8
- import grpc
9
- import grpc.aio
10
- import typing
6
+ from collections import abc as _abc
7
+ from grpc import aio as _aio
8
+ import abc as _abc_1
9
+ import grpc as _grpc
10
+ import typing as _typing
11
11
 
12
- _T = typing.TypeVar("_T")
12
+ _T = _typing.TypeVar("_T")
13
13
 
14
14
  class _MaybeAsyncIterator(
15
- collections.abc.AsyncIterator[_T],
16
- collections.abc.Iterator[_T],
17
- metaclass=abc.ABCMeta,
15
+ _abc.AsyncIterator[_T], _abc.Iterator[_T], metaclass=_abc_1.ABCMeta
18
16
  ): ...
19
- class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
17
+ class _ServicerContext(_grpc.ServicerContext, _aio.ServicerContext): # type: ignore[misc, type-arg]
20
18
  ...
19
+
20
+ GRPC_GENERATED_VERSION: str
21
+ GRPC_VERSION: str
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: weaveapi/synthesize/v1/inline_data.proto
5
- # Protobuf Python Version: 6.32.0
5
+ # Protobuf Python Version: 6.33.5
6
6
  """Generated protocol buffer code."""
7
7
 
8
8
  from google.protobuf import descriptor as _descriptor
@@ -14,8 +14,8 @@ from google.protobuf.internal import builder as _builder
14
14
  _runtime_version.ValidateProtobufRuntimeVersion(
15
15
  _runtime_version.Domain.PUBLIC,
16
16
  6,
17
- 32,
18
- 0,
17
+ 33,
18
+ 5,
19
19
  "",
20
20
  "weaveapi/synthesize/v1/inline_data.proto",
21
21
  )
@@ -25,7 +25,7 @@ _sym_db = _symbol_database.Default()
25
25
 
26
26
 
27
27
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
28
- b'\n(weaveapi/synthesize/v1/inline_data.proto\x12\x16weaveapi.synthesize.v1"d\n\nInlineData\x12:\n\x06\x66ormat\x18\x01 \x01(\x0e\x32".weaveapi.synthesize.v1.DataFormatR\x06\x66ormat\x12\x1a\n\x08\x63ontents\x18\x02 \x01(\x0cR\x08\x63ontents*\x98\x01\n\nDataFormat\x12\x1b\n\x17\x44\x41TA_FORMAT_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x44\x41TA_FORMAT_CSV\x10\x01\x12\x14\n\x10\x44\x41TA_FORMAT_JSON\x10\x02\x12\x17\n\x13\x44\x41TA_FORMAT_PARQUET\x10\x03\x12\x14\n\x10\x44\x41TA_FORMAT_AVRO\x10\x04\x12\x13\n\x0f\x44\x41TA_FORMAT_ORC\x10\x05\x42\xe9\x01\n\x1a\x63om.weaveapi.synthesize.v1B\x0fInlineDataProtoP\x01Z@github.com/weave-labs/weave-go/weaveapi/synthesize/v1;synthesize\xa2\x02\x03WSX\xaa\x02\x16Weaveapi.Synthesize.V1\xca\x02\x16Weaveapi\\Synthesize\\V1\xe2\x02"Weaveapi\\Synthesize\\V1\\GPBMetadata\xea\x02\x18Weaveapi::Synthesize::V1b\x06proto3'
28
+ b'\n(weaveapi/synthesize/v1/inline_data.proto\x12\x16weaveapi.synthesize.v1\x1a!google/protobuf/go_features.proto"d\n\nInlineData\x12:\n\x06\x66ormat\x18\x01 \x01(\x0e\x32".weaveapi.synthesize.v1.DataFormatR\x06\x66ormat\x12\x1a\n\x08\x63ontents\x18\x02 \x01(\x0cR\x08\x63ontents*\x98\x01\n\nDataFormat\x12\x1b\n\x17\x44\x41TA_FORMAT_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x44\x41TA_FORMAT_CSV\x10\x01\x12\x14\n\x10\x44\x41TA_FORMAT_JSON\x10\x02\x12\x17\n\x13\x44\x41TA_FORMAT_PARQUET\x10\x03\x12\x14\n\x10\x44\x41TA_FORMAT_AVRO\x10\x04\x12\x13\n\x0f\x44\x41TA_FORMAT_ORC\x10\x05\x42\xf1\x01\n\x1a\x63om.weaveapi.synthesize.v1B\x0fInlineDataProtoP\x01Z@github.com/weave-labs/weave-go/weaveapi/synthesize/v1;synthesize\xa2\x02\x03WSX\xaa\x02\x16Weaveapi.Synthesize.V1\xca\x02\x16Weaveapi\\Synthesize\\V1\xe2\x02"Weaveapi\\Synthesize\\V1\\GPBMetadata\xea\x02\x18Weaveapi::Synthesize::V1\x92\x03\x05\xd2>\x02\x10\x03\x62\x08\x65\x64itionsp\xe8\x07'
29
29
  )
30
30
 
31
31
  _globals = globals()
@@ -37,9 +37,9 @@ if not _descriptor._USE_C_DESCRIPTORS:
37
37
  _globals["DESCRIPTOR"]._loaded_options = None
38
38
  _globals[
39
39
  "DESCRIPTOR"
40
- ]._serialized_options = b'\n\032com.weaveapi.synthesize.v1B\017InlineDataProtoP\001Z@github.com/weave-labs/weave-go/weaveapi/synthesize/v1;synthesize\242\002\003WSX\252\002\026Weaveapi.Synthesize.V1\312\002\026Weaveapi\\Synthesize\\V1\342\002"Weaveapi\\Synthesize\\V1\\GPBMetadata\352\002\030Weaveapi::Synthesize::V1'
41
- _globals["_DATAFORMAT"]._serialized_start = 171
42
- _globals["_DATAFORMAT"]._serialized_end = 323
43
- _globals["_INLINEDATA"]._serialized_start = 68
44
- _globals["_INLINEDATA"]._serialized_end = 168
40
+ ]._serialized_options = b'\n\032com.weaveapi.synthesize.v1B\017InlineDataProtoP\001Z@github.com/weave-labs/weave-go/weaveapi/synthesize/v1;synthesize\242\002\003WSX\252\002\026Weaveapi.Synthesize.V1\312\002\026Weaveapi\\Synthesize\\V1\342\002"Weaveapi\\Synthesize\\V1\\GPBMetadata\352\002\030Weaveapi::Synthesize::V1\222\003\005\322>\002\020\003'
41
+ _globals["_DATAFORMAT"]._serialized_start = 206
42
+ _globals["_DATAFORMAT"]._serialized_end = 358
43
+ _globals["_INLINEDATA"]._serialized_start = 103
44
+ _globals["_INLINEDATA"]._serialized_end = 203
45
45
  # @@protoc_insertion_point(module_scope)
@@ -3,29 +3,28 @@
3
3
  isort:skip_file
4
4
  """
5
5
 
6
- import builtins
7
- import google.protobuf.descriptor
8
- import google.protobuf.internal.enum_type_wrapper
9
- import google.protobuf.message
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import message as _message
8
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
9
+ import builtins as _builtins
10
10
  import sys
11
- import typing
11
+ import typing as _typing
12
12
 
13
13
  if sys.version_info >= (3, 10):
14
- import typing as typing_extensions
14
+ from typing import TypeAlias as _TypeAlias
15
15
  else:
16
- import typing_extensions
16
+ from typing_extensions import TypeAlias as _TypeAlias
17
17
 
18
- DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
18
+ DESCRIPTOR: _descriptor.FileDescriptor
19
19
 
20
20
  class _DataFormat:
21
- ValueType = typing.NewType("ValueType", builtins.int)
22
- V: typing_extensions.TypeAlias = ValueType
21
+ ValueType = _typing.NewType("ValueType", _builtins.int)
22
+ V: _TypeAlias = ValueType # noqa: Y015
23
23
 
24
24
  class _DataFormatEnumTypeWrapper(
25
- google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DataFormat.ValueType],
26
- builtins.type,
25
+ _enum_type_wrapper._EnumTypeWrapper[_DataFormat.ValueType], _builtins.type
27
26
  ):
28
- DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
27
+ DESCRIPTOR: _descriptor.EnumDescriptor
29
28
  DATA_FORMAT_UNSPECIFIED: _DataFormat.ValueType # 0
30
29
  DATA_FORMAT_CSV: _DataFormat.ValueType # 1
31
30
  DATA_FORMAT_JSON: _DataFormat.ValueType # 2
@@ -42,31 +41,36 @@ DATA_FORMAT_JSON: DataFormat.ValueType # 2
42
41
  DATA_FORMAT_PARQUET: DataFormat.ValueType # 3
43
42
  DATA_FORMAT_AVRO: DataFormat.ValueType # 4
44
43
  DATA_FORMAT_ORC: DataFormat.ValueType # 5
45
- global___DataFormat = DataFormat
44
+ Global___DataFormat: _TypeAlias = DataFormat # noqa: Y015
46
45
 
47
- @typing.final
48
- class InlineData(google.protobuf.message.Message):
46
+ @_typing.final
47
+ class InlineData(_message.Message):
49
48
  """Inline represents data sent directly in the request. This is used for
50
49
  small datasets that are sent directly in the request body. Please use
51
50
  with caution as this can cause issues with large datasets.
52
51
  """
53
52
 
54
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
53
+ DESCRIPTOR: _descriptor.Descriptor
55
54
 
56
- FORMAT_FIELD_NUMBER: builtins.int
57
- CONTENTS_FIELD_NUMBER: builtins.int
58
- format: global___DataFormat.ValueType
55
+ FORMAT_FIELD_NUMBER: _builtins.int
56
+ CONTENTS_FIELD_NUMBER: _builtins.int
57
+ format: Global___DataFormat.ValueType
59
58
  """Format of the inline data"""
60
- contents: builtins.bytes
59
+ contents: _builtins.bytes
61
60
  """The content of the inline data"""
62
61
  def __init__(
63
62
  self,
64
63
  *,
65
- format: global___DataFormat.ValueType = ...,
66
- contents: builtins.bytes = ...,
67
- ) -> None: ...
68
- def ClearField(
69
- self, field_name: typing.Literal["contents", b"contents", "format", b"format"]
64
+ format: Global___DataFormat.ValueType | None = ...,
65
+ contents: _builtins.bytes | None = ...,
70
66
  ) -> None: ...
67
+ _HasFieldArgType: _TypeAlias = _typing.Literal[
68
+ "contents", b"contents", "format", b"format"
69
+ ] # noqa: Y015
70
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
71
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
72
+ "contents", b"contents", "format", b"format"
73
+ ] # noqa: Y015
74
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
71
75
 
72
- global___InlineData = InlineData
76
+ Global___InlineData: _TypeAlias = InlineData # noqa: Y015
@@ -3,18 +3,19 @@
3
3
  isort:skip_file
4
4
  """
5
5
 
6
- import abc
7
- import collections.abc
8
- import grpc
9
- import grpc.aio
10
- import typing
6
+ from collections import abc as _abc
7
+ from grpc import aio as _aio
8
+ import abc as _abc_1
9
+ import grpc as _grpc
10
+ import typing as _typing
11
11
 
12
- _T = typing.TypeVar("_T")
12
+ _T = _typing.TypeVar("_T")
13
13
 
14
14
  class _MaybeAsyncIterator(
15
- collections.abc.AsyncIterator[_T],
16
- collections.abc.Iterator[_T],
17
- metaclass=abc.ABCMeta,
15
+ _abc.AsyncIterator[_T], _abc.Iterator[_T], metaclass=_abc_1.ABCMeta
18
16
  ): ...
19
- class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
17
+ class _ServicerContext(_grpc.ServicerContext, _aio.ServicerContext): # type: ignore[misc, type-arg]
20
18
  ...
19
+
20
+ GRPC_GENERATED_VERSION: str
21
+ GRPC_VERSION: str
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: weaveapi/synthesize/v1/relationship.proto
5
- # Protobuf Python Version: 6.32.0
5
+ # Protobuf Python Version: 6.33.5
6
6
  """Generated protocol buffer code."""
7
7
 
8
8
  from google.protobuf import descriptor as _descriptor
@@ -14,8 +14,8 @@ from google.protobuf.internal import builder as _builder
14
14
  _runtime_version.ValidateProtobufRuntimeVersion(
15
15
  _runtime_version.Domain.PUBLIC,
16
16
  6,
17
- 32,
18
- 0,
17
+ 33,
18
+ 5,
19
19
  "",
20
20
  "weaveapi/synthesize/v1/relationship.proto",
21
21
  )
@@ -25,7 +25,7 @@ _sym_db = _symbol_database.Default()
25
25
 
26
26
 
27
27
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
28
- b'\n)weaveapi/synthesize/v1/relationship.proto\x12\x16weaveapi.synthesize.v1"\xed\x01\n\x12\x43olumnRelationship\x12?\n\x06source\x18\x01 \x01(\x0b\x32\'.weaveapi.synthesize.v1.ColumnReferenceR\x06source\x12?\n\x06target\x18\x02 \x01(\x0b\x32\'.weaveapi.synthesize.v1.ColumnReferenceR\x06target\x12U\n\x11relationship_type\x18\x03 \x01(\x0e\x32(.weaveapi.synthesize.v1.RelationshipTypeR\x10relationshipType"M\n\x0f\x43olumnReference\x12\x1d\n\ndataset_id\x18\x01 \x01(\tR\tdatasetId\x12\x1b\n\tcolumn_id\x18\x02 \x01(\tR\x08\x63olumnId*\x9f\x02\n\x10RelationshipType\x12!\n\x1dRELATIONSHIP_TYPE_UNSPECIFIED\x10\x00\x12)\n%RELATIONSHIP_TYPE_CONTEXT_FOREIGN_KEY\x10\x01\x12-\n)RELATIONSHIP_TYPE_NON_CONTEXT_FOREIGN_KEY\x10\x02\x12!\n\x1dRELATIONSHIP_TYPE_ONE_TO_MANY\x10\x03\x12!\n\x1dRELATIONSHIP_TYPE_MANY_TO_ONE\x10\x04\x12"\n\x1eRELATIONSHIP_TYPE_MANY_TO_MANY\x10\x05\x12$\n RELATIONSHIP_TYPE_SELF_REFERENCE\x10\x06\x42\xeb\x01\n\x1a\x63om.weaveapi.synthesize.v1B\x11RelationshipProtoP\x01Z@github.com/weave-labs/weave-go/weaveapi/synthesize/v1;synthesize\xa2\x02\x03WSX\xaa\x02\x16Weaveapi.Synthesize.V1\xca\x02\x16Weaveapi\\Synthesize\\V1\xe2\x02"Weaveapi\\Synthesize\\V1\\GPBMetadata\xea\x02\x18Weaveapi::Synthesize::V1b\x06proto3'
28
+ b'\n)weaveapi/synthesize/v1/relationship.proto\x12\x16weaveapi.synthesize.v1\x1a!google/protobuf/go_features.proto"\xf5\x01\n\x12\x43olumnRelationship\x12\x43\n\x06source\x18\x01 \x01(\x0b\x32\'.weaveapi.synthesize.v1.ColumnReferenceB\x02(\x01R\x06source\x12\x43\n\x06target\x18\x02 \x01(\x0b\x32\'.weaveapi.synthesize.v1.ColumnReferenceB\x02(\x01R\x06target\x12U\n\x11relationship_type\x18\x03 \x01(\x0e\x32(.weaveapi.synthesize.v1.RelationshipTypeR\x10relationshipType"M\n\x0f\x43olumnReference\x12\x1d\n\ndataset_id\x18\x01 \x01(\tR\tdatasetId\x12\x1b\n\tcolumn_id\x18\x02 \x01(\tR\x08\x63olumnId*\x9f\x02\n\x10RelationshipType\x12!\n\x1dRELATIONSHIP_TYPE_UNSPECIFIED\x10\x00\x12)\n%RELATIONSHIP_TYPE_CONTEXT_FOREIGN_KEY\x10\x01\x12-\n)RELATIONSHIP_TYPE_NON_CONTEXT_FOREIGN_KEY\x10\x02\x12!\n\x1dRELATIONSHIP_TYPE_ONE_TO_MANY\x10\x03\x12!\n\x1dRELATIONSHIP_TYPE_MANY_TO_ONE\x10\x04\x12"\n\x1eRELATIONSHIP_TYPE_MANY_TO_MANY\x10\x05\x12$\n RELATIONSHIP_TYPE_SELF_REFERENCE\x10\x06\x42\xf3\x01\n\x1a\x63om.weaveapi.synthesize.v1B\x11RelationshipProtoP\x01Z@github.com/weave-labs/weave-go/weaveapi/synthesize/v1;synthesize\xa2\x02\x03WSX\xaa\x02\x16Weaveapi.Synthesize.V1\xca\x02\x16Weaveapi\\Synthesize\\V1\xe2\x02"Weaveapi\\Synthesize\\V1\\GPBMetadata\xea\x02\x18Weaveapi::Synthesize::V1\x92\x03\x05\xd2>\x02\x10\x03\x62\x08\x65\x64itionsp\xe8\x07'
29
29
  )
30
30
 
31
31
  _globals = globals()
@@ -37,11 +37,19 @@ if not _descriptor._USE_C_DESCRIPTORS:
37
37
  _globals["DESCRIPTOR"]._loaded_options = None
38
38
  _globals[
39
39
  "DESCRIPTOR"
40
- ]._serialized_options = b'\n\032com.weaveapi.synthesize.v1B\021RelationshipProtoP\001Z@github.com/weave-labs/weave-go/weaveapi/synthesize/v1;synthesize\242\002\003WSX\252\002\026Weaveapi.Synthesize.V1\312\002\026Weaveapi\\Synthesize\\V1\342\002"Weaveapi\\Synthesize\\V1\\GPBMetadata\352\002\030Weaveapi::Synthesize::V1'
41
- _globals["_RELATIONSHIPTYPE"]._serialized_start = 389
42
- _globals["_RELATIONSHIPTYPE"]._serialized_end = 676
43
- _globals["_COLUMNRELATIONSHIP"]._serialized_start = 70
44
- _globals["_COLUMNRELATIONSHIP"]._serialized_end = 307
45
- _globals["_COLUMNREFERENCE"]._serialized_start = 309
46
- _globals["_COLUMNREFERENCE"]._serialized_end = 386
40
+ ]._serialized_options = b'\n\032com.weaveapi.synthesize.v1B\021RelationshipProtoP\001Z@github.com/weave-labs/weave-go/weaveapi/synthesize/v1;synthesize\242\002\003WSX\252\002\026Weaveapi.Synthesize.V1\312\002\026Weaveapi\\Synthesize\\V1\342\002"Weaveapi\\Synthesize\\V1\\GPBMetadata\352\002\030Weaveapi::Synthesize::V1\222\003\005\322>\002\020\003'
41
+ _globals["_COLUMNRELATIONSHIP"].fields_by_name["source"]._loaded_options = None
42
+ _globals["_COLUMNRELATIONSHIP"].fields_by_name[
43
+ "source"
44
+ ]._serialized_options = b"(\001"
45
+ _globals["_COLUMNRELATIONSHIP"].fields_by_name["target"]._loaded_options = None
46
+ _globals["_COLUMNRELATIONSHIP"].fields_by_name[
47
+ "target"
48
+ ]._serialized_options = b"(\001"
49
+ _globals["_RELATIONSHIPTYPE"]._serialized_start = 432
50
+ _globals["_RELATIONSHIPTYPE"]._serialized_end = 719
51
+ _globals["_COLUMNRELATIONSHIP"]._serialized_start = 105
52
+ _globals["_COLUMNRELATIONSHIP"]._serialized_end = 350
53
+ _globals["_COLUMNREFERENCE"]._serialized_start = 352
54
+ _globals["_COLUMNREFERENCE"]._serialized_end = 429
47
55
  # @@protoc_insertion_point(module_scope)