weave-python 0.28.2__py3-none-any.whl → 0.30.4__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 (104) hide show
  1. weave/weaveapi/auth/v1/service_pb2.py +184 -88
  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 +12 -4
  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 +16 -12
  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 +58 -16
  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 +29 -17
  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 +30 -4
  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 +50 -20
  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 +3 -3
  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 +86 -54
  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 +54 -18
  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 +22 -18
  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 +3 -3
  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 +224 -86
  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 +14 -8
  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 +47 -27
  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 +36 -10
  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 +256 -90
  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 +97 -21
  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 +3 -3
  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 +45 -21
  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 +25 -11
  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 +94 -34
  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 +37 -21
  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 +18 -4
  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 +10 -8
  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 +4 -4
  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 +17 -9
  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 +40 -22
  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 +17 -11
  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.28.2.dist-info → weave_python-0.30.4.dist-info}/METADATA +3 -3
  101. weave_python-0.30.4.dist-info/RECORD +131 -0
  102. {weave_python-0.28.2.dist-info → weave_python-0.30.4.dist-info}/WHEEL +1 -1
  103. weave_python-0.28.2.dist-info/RECORD +0 -120
  104. {weave_python-0.28.2.dist-info → weave_python-0.30.4.dist-info}/licenses/LICENSE +0 -0
@@ -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/storage/v1/storage.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
@@ -12,7 +12,7 @@ from google.protobuf import symbol_database as _symbol_database
12
12
  from google.protobuf.internal import builder as _builder
13
13
 
14
14
  _runtime_version.ValidateProtobufRuntimeVersion(
15
- _runtime_version.Domain.PUBLIC, 6, 32, 0, "", "weaveapi/storage/v1/storage.proto"
15
+ _runtime_version.Domain.PUBLIC, 6, 33, 5, "", "weaveapi/storage/v1/storage.proto"
16
16
  )
17
17
  # @@protoc_insertion_point(imports)
18
18
 
@@ -20,7 +20,7 @@ _sym_db = _symbol_database.Default()
20
20
 
21
21
 
22
22
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
23
- b'\n!weaveapi/storage/v1/storage.proto\x12\x13weaveapi.storage.v1\x1a(weaveapi/storage/v1/nosql_database.proto\x1a&weaveapi/storage/v1/object_store.proto\x1a&weaveapi/storage/v1/sql_database.proto"\xd8\x02\n\x11StorageConnection\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x45\n\x0cobject_store\x18\x04 \x01(\x0b\x32 .weaveapi.storage.v1.ObjectStoreH\x00R\x0bobjectStore\x12\x45\n\x0csql_database\x18\x05 \x01(\x0b\x32 .weaveapi.storage.v1.SqlDatabaseH\x00R\x0bsqlDatabase\x12K\n\x0enosql_database\x18\x06 \x01(\x0b\x32".weaveapi.storage.v1.NoSqlDatabaseH\x00R\rnosqlDatabaseB\t\n\x07storageB\xd1\x01\n\x17\x63om.weaveapi.storage.v1B\x0cStorageProtoP\x01Z:github.com/weave-labs/weave-go/weaveapi/storage/v1;storage\xa2\x02\x03WSX\xaa\x02\x13Weaveapi.Storage.V1\xca\x02\x13Weaveapi\\Storage\\V1\xe2\x02\x1fWeaveapi\\Storage\\V1\\GPBMetadata\xea\x02\x15Weaveapi::Storage::V1b\x06proto3'
23
+ b'\n!weaveapi/storage/v1/storage.proto\x12\x13weaveapi.storage.v1\x1a(weaveapi/storage/v1/nosql_database.proto\x1a&weaveapi/storage/v1/object_store.proto\x1a&weaveapi/storage/v1/sql_database.proto"\xe4\x02\n\x11StorageConnection\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12I\n\x0cobject_store\x18\x04 \x01(\x0b\x32 .weaveapi.storage.v1.ObjectStoreB\x02(\x01H\x00R\x0bobjectStore\x12I\n\x0csql_database\x18\x05 \x01(\x0b\x32 .weaveapi.storage.v1.SqlDatabaseB\x02(\x01H\x00R\x0bsqlDatabase\x12O\n\x0enosql_database\x18\x06 \x01(\x0b\x32".weaveapi.storage.v1.NoSqlDatabaseB\x02(\x01H\x00R\rnosqlDatabaseB\t\n\x07storageB\xd1\x01\n\x17\x63om.weaveapi.storage.v1B\x0cStorageProtoP\x01Z:github.com/weave-labs/weave-go/weaveapi/storage/v1;storage\xa2\x02\x03WSX\xaa\x02\x13Weaveapi.Storage.V1\xca\x02\x13Weaveapi\\Storage\\V1\xe2\x02\x1fWeaveapi\\Storage\\V1\\GPBMetadata\xea\x02\x15Weaveapi::Storage::V1b\x08\x65\x64itionsp\xe8\x07'
24
24
  )
25
25
 
26
26
  _globals = globals()
@@ -33,6 +33,20 @@ if not _descriptor._USE_C_DESCRIPTORS:
33
33
  _globals[
34
34
  "DESCRIPTOR"
35
35
  ]._serialized_options = b"\n\027com.weaveapi.storage.v1B\014StorageProtoP\001Z:github.com/weave-labs/weave-go/weaveapi/storage/v1;storage\242\002\003WSX\252\002\023Weaveapi.Storage.V1\312\002\023Weaveapi\\Storage\\V1\342\002\037Weaveapi\\Storage\\V1\\GPBMetadata\352\002\025Weaveapi::Storage::V1"
36
+ _globals["_STORAGECONNECTION"].fields_by_name["object_store"]._loaded_options = None
37
+ _globals["_STORAGECONNECTION"].fields_by_name[
38
+ "object_store"
39
+ ]._serialized_options = b"(\001"
40
+ _globals["_STORAGECONNECTION"].fields_by_name["sql_database"]._loaded_options = None
41
+ _globals["_STORAGECONNECTION"].fields_by_name[
42
+ "sql_database"
43
+ ]._serialized_options = b"(\001"
44
+ _globals["_STORAGECONNECTION"].fields_by_name[
45
+ "nosql_database"
46
+ ]._loaded_options = None
47
+ _globals["_STORAGECONNECTION"].fields_by_name[
48
+ "nosql_database"
49
+ ]._serialized_options = b"(\001"
36
50
  _globals["_STORAGECONNECTION"]._serialized_start = 181
37
- _globals["_STORAGECONNECTION"]._serialized_end = 525
51
+ _globals["_STORAGECONNECTION"]._serialized_end = 537
38
52
  # @@protoc_insertion_point(module_scope)
@@ -3,82 +3,91 @@
3
3
  isort:skip_file
4
4
  """
5
5
 
6
- import builtins
7
- import google.protobuf.descriptor
8
- import google.protobuf.message
9
- import typing
10
- import weaveapi.storage.v1.nosql_database_pb2
11
- import weaveapi.storage.v1.object_store_pb2
12
- import weaveapi.storage.v1.sql_database_pb2
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import message as _message
8
+ from weaveapi.storage.v1 import nosql_database_pb2 as _nosql_database_pb2
9
+ from weaveapi.storage.v1 import object_store_pb2 as _object_store_pb2
10
+ from weaveapi.storage.v1 import sql_database_pb2 as _sql_database_pb2
11
+ import builtins as _builtins
12
+ import sys
13
+ import typing as _typing
13
14
 
14
- DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
15
+ if sys.version_info >= (3, 10):
16
+ from typing import TypeAlias as _TypeAlias
17
+ else:
18
+ from typing_extensions import TypeAlias as _TypeAlias
15
19
 
16
- @typing.final
17
- class StorageConnection(google.protobuf.message.Message):
18
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
20
+ DESCRIPTOR: _descriptor.FileDescriptor
19
21
 
20
- ORGANIZATION_ID_FIELD_NUMBER: builtins.int
21
- NAME_FIELD_NUMBER: builtins.int
22
- DESCRIPTION_FIELD_NUMBER: builtins.int
23
- OBJECT_STORE_FIELD_NUMBER: builtins.int
24
- SQL_DATABASE_FIELD_NUMBER: builtins.int
25
- NOSQL_DATABASE_FIELD_NUMBER: builtins.int
26
- organization_id: builtins.str
27
- name: builtins.str
28
- description: builtins.str
29
- @property
30
- def object_store(self) -> weaveapi.storage.v1.object_store_pb2.ObjectStore: ...
31
- @property
32
- def sql_database(self) -> weaveapi.storage.v1.sql_database_pb2.SqlDatabase: ...
33
- @property
34
- def nosql_database(
35
- self,
36
- ) -> weaveapi.storage.v1.nosql_database_pb2.NoSqlDatabase: ...
22
+ @_typing.final
23
+ class StorageConnection(_message.Message):
24
+ DESCRIPTOR: _descriptor.Descriptor
25
+
26
+ ORGANIZATION_ID_FIELD_NUMBER: _builtins.int
27
+ NAME_FIELD_NUMBER: _builtins.int
28
+ DESCRIPTION_FIELD_NUMBER: _builtins.int
29
+ OBJECT_STORE_FIELD_NUMBER: _builtins.int
30
+ SQL_DATABASE_FIELD_NUMBER: _builtins.int
31
+ NOSQL_DATABASE_FIELD_NUMBER: _builtins.int
32
+ organization_id: _builtins.str
33
+ name: _builtins.str
34
+ description: _builtins.str
35
+ @_builtins.property
36
+ def object_store(self) -> _object_store_pb2.ObjectStore: ...
37
+ @_builtins.property
38
+ def sql_database(self) -> _sql_database_pb2.SqlDatabase: ...
39
+ @_builtins.property
40
+ def nosql_database(self) -> _nosql_database_pb2.NoSqlDatabase: ...
37
41
  def __init__(
38
42
  self,
39
43
  *,
40
- organization_id: builtins.str = ...,
41
- name: builtins.str = ...,
42
- description: builtins.str = ...,
43
- object_store: weaveapi.storage.v1.object_store_pb2.ObjectStore | None = ...,
44
- sql_database: weaveapi.storage.v1.sql_database_pb2.SqlDatabase | None = ...,
45
- nosql_database: weaveapi.storage.v1.nosql_database_pb2.NoSqlDatabase
46
- | None = ...,
47
- ) -> None: ...
48
- def HasField(
49
- self,
50
- field_name: typing.Literal[
51
- "nosql_database",
52
- b"nosql_database",
53
- "object_store",
54
- b"object_store",
55
- "sql_database",
56
- b"sql_database",
57
- "storage",
58
- b"storage",
59
- ],
60
- ) -> builtins.bool: ...
61
- def ClearField(
62
- self,
63
- field_name: typing.Literal[
64
- "description",
65
- b"description",
66
- "name",
67
- b"name",
68
- "nosql_database",
69
- b"nosql_database",
70
- "object_store",
71
- b"object_store",
72
- "organization_id",
73
- b"organization_id",
74
- "sql_database",
75
- b"sql_database",
76
- "storage",
77
- b"storage",
78
- ],
44
+ organization_id: _builtins.str | None = ...,
45
+ name: _builtins.str | None = ...,
46
+ description: _builtins.str | None = ...,
47
+ object_store: _object_store_pb2.ObjectStore | None = ...,
48
+ sql_database: _sql_database_pb2.SqlDatabase | None = ...,
49
+ nosql_database: _nosql_database_pb2.NoSqlDatabase | None = ...,
79
50
  ) -> None: ...
51
+ _HasFieldArgType: _TypeAlias = _typing.Literal[
52
+ "description",
53
+ b"description",
54
+ "name",
55
+ b"name",
56
+ "nosql_database",
57
+ b"nosql_database",
58
+ "object_store",
59
+ b"object_store",
60
+ "organization_id",
61
+ b"organization_id",
62
+ "sql_database",
63
+ b"sql_database",
64
+ "storage",
65
+ b"storage",
66
+ ] # noqa: Y015
67
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
68
+ _ClearFieldArgType: _TypeAlias = _typing.Literal[
69
+ "description",
70
+ b"description",
71
+ "name",
72
+ b"name",
73
+ "nosql_database",
74
+ b"nosql_database",
75
+ "object_store",
76
+ b"object_store",
77
+ "organization_id",
78
+ b"organization_id",
79
+ "sql_database",
80
+ b"sql_database",
81
+ "storage",
82
+ b"storage",
83
+ ] # noqa: Y015
84
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
85
+ _WhichOneofReturnType_storage: _TypeAlias = _typing.Literal[
86
+ "object_store", "sql_database", "nosql_database"
87
+ ] # noqa: Y015
88
+ _WhichOneofArgType_storage: _TypeAlias = _typing.Literal["storage", b"storage"] # noqa: Y015
80
89
  def WhichOneof(
81
- self, oneof_group: typing.Literal["storage", b"storage"]
82
- ) -> typing.Literal["object_store", "sql_database", "nosql_database"] | None: ...
90
+ self, oneof_group: _WhichOneofArgType_storage
91
+ ) -> _WhichOneofReturnType_storage | None: ...
83
92
 
84
- global___StorageConnection = StorageConnection
93
+ Global___StorageConnection: _TypeAlias = StorageConnection # 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/dataset.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
@@ -12,7 +12,7 @@ from google.protobuf import symbol_database as _symbol_database
12
12
  from google.protobuf.internal import builder as _builder
13
13
 
14
14
  _runtime_version.ValidateProtobufRuntimeVersion(
15
- _runtime_version.Domain.PUBLIC, 6, 32, 0, "", "weaveapi/synthesize/v1/dataset.proto"
15
+ _runtime_version.Domain.PUBLIC, 6, 33, 5, "", "weaveapi/synthesize/v1/dataset.proto"
16
16
  )
17
17
  # @@protoc_insertion_point(imports)
18
18
 
@@ -20,7 +20,7 @@ _sym_db = _symbol_database.Default()
20
20
 
21
21
 
22
22
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
23
- b'\n$weaveapi/synthesize/v1/dataset.proto\x12\x16weaveapi.synthesize.v1"\xae\x01\n\x07\x44\x61taset\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x1d\n\nstorage_id\x18\x04 \x01(\tR\tstorageId\x12\x1b\n\tschema_id\x18\x05 \x01(\tR\x08schemaId\x12!\n\x0cis_synthetic\x18\x06 \x01(\x08R\x0bisSynthetic"\x88\x01\n\x06Schema\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x38\n\x07\x63olumns\x18\x04 \x03(\x0b\x32\x1e.weaveapi.synthesize.v1.ColumnR\x07\x63olumns"\xb3\x01\n\x06\x43olumn\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12=\n\tdata_type\x18\x03 \x01(\x0e\x32 .weaveapi.synthesize.v1.DataTypeR\x08\x64\x61taType\x12$\n\x0eis_primary_key\x18\x04 \x01(\x08R\x0cisPrimaryKey\x12 \n\x0b\x64\x65scription\x18\x05 \x01(\tR\x0b\x64\x65scription*\xf3\x01\n\x08\x44\x61taType\x12\x19\n\x15\x44\x41TA_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10\x44\x41TA_TYPE_STRING\x10\x01\x12\x15\n\x11\x44\x41TA_TYPE_INTEGER\x10\x02\x12\x13\n\x0f\x44\x41TA_TYPE_FLOAT\x10\x03\x12\x15\n\x11\x44\x41TA_TYPE_BOOLEAN\x10\x04\x12\x17\n\x13\x44\x41TA_TYPE_TIMESTAMP\x10\x05\x12\x12\n\x0e\x44\x41TA_TYPE_DATE\x10\x06\x12\x14\n\x10\x44\x41TA_TYPE_BINARY\x10\x07\x12\x19\n\x15\x44\x41TA_TYPE_CATEGORICAL\x10\x08\x12\x15\n\x11\x44\x41TA_TYPE_ORDINAL\x10\tB\xe6\x01\n\x1a\x63om.weaveapi.synthesize.v1B\x0c\x44\x61tasetProtoP\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'
23
+ b'\n$weaveapi/synthesize/v1/dataset.proto\x12\x16weaveapi.synthesize.v1"\xae\x01\n\x07\x44\x61taset\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x1d\n\nstorage_id\x18\x04 \x01(\tR\tstorageId\x12\x1b\n\tschema_id\x18\x05 \x01(\tR\x08schemaId\x12!\n\x0cis_synthetic\x18\x06 \x01(\x08R\x0bisSynthetic"\x8c\x01\n\x06Schema\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12<\n\x07\x63olumns\x18\x04 \x03(\x0b\x32\x1e.weaveapi.synthesize.v1.ColumnB\x02(\x01R\x07\x63olumns"\xb3\x01\n\x06\x43olumn\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12=\n\tdata_type\x18\x03 \x01(\x0e\x32 .weaveapi.synthesize.v1.DataTypeR\x08\x64\x61taType\x12$\n\x0eis_primary_key\x18\x04 \x01(\x08R\x0cisPrimaryKey\x12 \n\x0b\x64\x65scription\x18\x05 \x01(\tR\x0b\x64\x65scription*\xf3\x01\n\x08\x44\x61taType\x12\x19\n\x15\x44\x41TA_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10\x44\x41TA_TYPE_STRING\x10\x01\x12\x15\n\x11\x44\x41TA_TYPE_INTEGER\x10\x02\x12\x13\n\x0f\x44\x41TA_TYPE_FLOAT\x10\x03\x12\x15\n\x11\x44\x41TA_TYPE_BOOLEAN\x10\x04\x12\x17\n\x13\x44\x41TA_TYPE_TIMESTAMP\x10\x05\x12\x12\n\x0e\x44\x41TA_TYPE_DATE\x10\x06\x12\x14\n\x10\x44\x41TA_TYPE_BINARY\x10\x07\x12\x19\n\x15\x44\x41TA_TYPE_CATEGORICAL\x10\x08\x12\x15\n\x11\x44\x41TA_TYPE_ORDINAL\x10\tB\xe6\x01\n\x1a\x63om.weaveapi.synthesize.v1B\x0c\x44\x61tasetProtoP\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\x08\x65\x64itionsp\xe8\x07'
24
24
  )
25
25
 
26
26
  _globals = globals()
@@ -33,12 +33,14 @@ if not _descriptor._USE_C_DESCRIPTORS:
33
33
  _globals[
34
34
  "DESCRIPTOR"
35
35
  ]._serialized_options = b'\n\032com.weaveapi.synthesize.v1B\014DatasetProtoP\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'
36
- _globals["_DATATYPE"]._serialized_start = 563
37
- _globals["_DATATYPE"]._serialized_end = 806
36
+ _globals["_SCHEMA"].fields_by_name["columns"]._loaded_options = None
37
+ _globals["_SCHEMA"].fields_by_name["columns"]._serialized_options = b"(\001"
38
+ _globals["_DATATYPE"]._serialized_start = 567
39
+ _globals["_DATATYPE"]._serialized_end = 810
38
40
  _globals["_DATASET"]._serialized_start = 65
39
41
  _globals["_DATASET"]._serialized_end = 239
40
42
  _globals["_SCHEMA"]._serialized_start = 242
41
- _globals["_SCHEMA"]._serialized_end = 378
42
- _globals["_COLUMN"]._serialized_start = 381
43
- _globals["_COLUMN"]._serialized_end = 560
43
+ _globals["_SCHEMA"]._serialized_end = 382
44
+ _globals["_COLUMN"]._serialized_start = 385
45
+ _globals["_COLUMN"]._serialized_end = 564
44
46
  # @@protoc_insertion_point(module_scope)
@@ -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