alis.open.pubsub.v1 1.4.0__tar.gz

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,8 @@
1
+ Metadata-Version: 2.4
2
+ Name: alis.open.pubsub.v1
3
+ Version: 1.4.0
4
+ Summary: Protobufs generated by Alis Build
5
+ Requires-Dist: google-common-protos>=0.0.1
6
+ Requires-Dist: alis-services-protobuf-open>=1.176.0
7
+ Dynamic: requires-dist
8
+ Dynamic: summary
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1 @@
1
+ __import__("pkg_resources").declare_namespace(__name__)
@@ -0,0 +1,44 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: alis/open/pubsub/v1/pubsub.proto
5
+ # Protobuf Python Version: 6.33.5
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 33,
16
+ 5,
17
+ '',
18
+ 'alis/open/pubsub/v1/pubsub.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
26
+
27
+
28
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n alis/open/pubsub/v1/pubsub.proto\x12\x13\x61lis.open.pubsub.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x97\x04\n\rPubSubMessage\x12\x44\n\x07message\x18\x01 \x01(\x0b\x32*.alis.open.pubsub.v1.PubSubMessage.MessageR\x07message\x12\"\n\x0csubscription\x18\x02 \x01(\tR\x0csubscription\x1a\x9b\x03\n\x07Message\x12\x12\n\x04\x64\x61ta\x18\x01 \x01(\x0cR\x04\x64\x61ta\x12Z\n\nattributes\x18\x02 \x03(\x0b\x32:.alis.open.pubsub.v1.PubSubMessage.Message.AttributesEntryR\nattributes\x12\x1d\n\nmessage_id\x18\x03 \x01(\tR\tmessageId\x12=\n\x0cpublish_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0bpublishTime\x12!\n\x0cordering_key\x18\x05 \x01(\tR\x0borderingKey\x12\x1f\n\x0bmessage_id1\x18\x06 \x01(\tR\nmessageId1\x12?\n\rpublish_time1\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0cpublishTime1\x1a=\n\x0f\x41ttributesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\'Z%go.alis.build/common/alis/open/pubsubb\x06proto3')
29
+
30
+ _globals = globals()
31
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'alis.open.pubsub.v1.pubsub_pb2', _globals)
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ _globals['DESCRIPTOR']._loaded_options = None
35
+ _globals['DESCRIPTOR']._serialized_options = b'Z%go.alis.build/common/alis/open/pubsub'
36
+ _globals['_PUBSUBMESSAGE_MESSAGE_ATTRIBUTESENTRY']._loaded_options = None
37
+ _globals['_PUBSUBMESSAGE_MESSAGE_ATTRIBUTESENTRY']._serialized_options = b'8\001'
38
+ _globals['_PUBSUBMESSAGE']._serialized_start=91
39
+ _globals['_PUBSUBMESSAGE']._serialized_end=626
40
+ _globals['_PUBSUBMESSAGE_MESSAGE']._serialized_start=215
41
+ _globals['_PUBSUBMESSAGE_MESSAGE']._serialized_end=626
42
+ _globals['_PUBSUBMESSAGE_MESSAGE_ATTRIBUTESENTRY']._serialized_start=565
43
+ _globals['_PUBSUBMESSAGE_MESSAGE_ATTRIBUTESENTRY']._serialized_end=626
44
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,101 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
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 import timestamp_pb2 as _timestamp_pb2
10
+ from google.protobuf.internal import containers as _containers
11
+ import builtins as _builtins
12
+ import sys
13
+ import typing as _typing
14
+
15
+ if sys.version_info >= (3, 11):
16
+ from typing import TypeAlias as _TypeAlias, Never as _Never
17
+ else:
18
+ from typing_extensions import TypeAlias as _TypeAlias, Never as _Never
19
+
20
+ DESCRIPTOR: _descriptor.FileDescriptor
21
+
22
+ @_typing.final
23
+ class PubSubMessage(_message.Message):
24
+ DESCRIPTOR: _descriptor.Descriptor
25
+
26
+ @_typing.final
27
+ class Message(_message.Message):
28
+ DESCRIPTOR: _descriptor.Descriptor
29
+
30
+ @_typing.final
31
+ class AttributesEntry(_message.Message):
32
+ DESCRIPTOR: _descriptor.Descriptor
33
+
34
+ KEY_FIELD_NUMBER: _builtins.int
35
+ VALUE_FIELD_NUMBER: _builtins.int
36
+ key: _builtins.str
37
+ value: _builtins.str
38
+ def __init__(
39
+ self,
40
+ *,
41
+ key: _builtins.str = ...,
42
+ value: _builtins.str = ...,
43
+ ) -> None: ...
44
+ _HasFieldArgType: _TypeAlias = _Never # noqa: Y015
45
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
46
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["key", b"key", "value", b"value"] # noqa: Y015
47
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
48
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
49
+
50
+ DATA_FIELD_NUMBER: _builtins.int
51
+ ATTRIBUTES_FIELD_NUMBER: _builtins.int
52
+ MESSAGE_ID_FIELD_NUMBER: _builtins.int
53
+ PUBLISH_TIME_FIELD_NUMBER: _builtins.int
54
+ ORDERING_KEY_FIELD_NUMBER: _builtins.int
55
+ MESSAGE_ID1_FIELD_NUMBER: _builtins.int
56
+ PUBLISH_TIME1_FIELD_NUMBER: _builtins.int
57
+ data: _builtins.bytes
58
+ message_id: _builtins.str
59
+ ordering_key: _builtins.str
60
+ message_id1: _builtins.str
61
+ @_builtins.property
62
+ def attributes(self) -> _containers.ScalarMap[_builtins.str, _builtins.str]: ...
63
+ @_builtins.property
64
+ def publish_time(self) -> _timestamp_pb2.Timestamp: ...
65
+ @_builtins.property
66
+ def publish_time1(self) -> _timestamp_pb2.Timestamp: ...
67
+ def __init__(
68
+ self,
69
+ *,
70
+ data: _builtins.bytes = ...,
71
+ attributes: _abc.Mapping[_builtins.str, _builtins.str] | None = ...,
72
+ message_id: _builtins.str = ...,
73
+ publish_time: _timestamp_pb2.Timestamp | None = ...,
74
+ ordering_key: _builtins.str = ...,
75
+ message_id1: _builtins.str = ...,
76
+ publish_time1: _timestamp_pb2.Timestamp | None = ...,
77
+ ) -> None: ...
78
+ _HasFieldArgType: _TypeAlias = _typing.Literal["publish_time", b"publish_time", "publish_time1", b"publish_time1"] # noqa: Y015
79
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
80
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["attributes", b"attributes", "data", b"data", "message_id", b"message_id", "message_id1", b"message_id1", "ordering_key", b"ordering_key", "publish_time", b"publish_time", "publish_time1", b"publish_time1"] # noqa: Y015
81
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
82
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
83
+
84
+ MESSAGE_FIELD_NUMBER: _builtins.int
85
+ SUBSCRIPTION_FIELD_NUMBER: _builtins.int
86
+ subscription: _builtins.str
87
+ @_builtins.property
88
+ def message(self) -> Global___PubSubMessage.Message: ...
89
+ def __init__(
90
+ self,
91
+ *,
92
+ message: Global___PubSubMessage.Message | None = ...,
93
+ subscription: _builtins.str = ...,
94
+ ) -> None: ...
95
+ _HasFieldArgType: _TypeAlias = _typing.Literal["message", b"message"] # noqa: Y015
96
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
97
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["message", b"message", "subscription", b"subscription"] # noqa: Y015
98
+ def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
99
+ def WhichOneof(self, oneof_group: _Never) -> None: ...
100
+
101
+ Global___PubSubMessage: _TypeAlias = PubSubMessage # noqa: Y015
@@ -0,0 +1,24 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+
7
+ GRPC_GENERATED_VERSION = '1.81.1'
8
+ GRPC_VERSION = grpc.__version__
9
+ _version_not_supported = False
10
+
11
+ try:
12
+ from grpc._utilities import first_version_is_lower
13
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14
+ except ImportError:
15
+ _version_not_supported = True
16
+
17
+ if _version_not_supported:
18
+ raise RuntimeError(
19
+ f'The grpc package installed is at version {GRPC_VERSION},'
20
+ + ' but the generated code in alis/open/pubsub/v1/pubsub_pb2_grpc.py depends on'
21
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
22
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24
+ )
@@ -0,0 +1,20 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
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
+
12
+ _T = _typing.TypeVar("_T")
13
+
14
+ class _MaybeAsyncIterator(_abc.AsyncIterator[_T], _abc.Iterator[_T], metaclass=_abc_1.ABCMeta): ...
15
+
16
+ class _ServicerContext(_grpc.ServicerContext, _aio.ServicerContext): # type: ignore[misc, type-arg]
17
+ ...
18
+
19
+ GRPC_GENERATED_VERSION: str
20
+ GRPC_VERSION: str
@@ -0,0 +1,8 @@
1
+ Metadata-Version: 2.4
2
+ Name: alis.open.pubsub.v1
3
+ Version: 1.4.0
4
+ Summary: Protobufs generated by Alis Build
5
+ Requires-Dist: google-common-protos>=0.0.1
6
+ Requires-Dist: alis-services-protobuf-open>=1.176.0
7
+ Dynamic: requires-dist
8
+ Dynamic: summary
@@ -0,0 +1,18 @@
1
+ setup.py
2
+ alis/__init__.py
3
+ alis/__init__.pyi
4
+ alis.open.pubsub.v1.egg-info/PKG-INFO
5
+ alis.open.pubsub.v1.egg-info/SOURCES.txt
6
+ alis.open.pubsub.v1.egg-info/dependency_links.txt
7
+ alis.open.pubsub.v1.egg-info/requires.txt
8
+ alis.open.pubsub.v1.egg-info/top_level.txt
9
+ alis/open/__init__.py
10
+ alis/open/__init__.pyi
11
+ alis/open/pubsub/__init__.py
12
+ alis/open/pubsub/__init__.pyi
13
+ alis/open/pubsub/v1/__init__.py
14
+ alis/open/pubsub/v1/__init__.pyi
15
+ alis/open/pubsub/v1/pubsub_pb2.py
16
+ alis/open/pubsub/v1/pubsub_pb2.pyi
17
+ alis/open/pubsub/v1/pubsub_pb2_grpc.py
18
+ alis/open/pubsub/v1/pubsub_pb2_grpc.pyi
@@ -0,0 +1,2 @@
1
+ google-common-protos>=0.0.1
2
+ alis-services-protobuf-open>=1.176.0
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,38 @@
1
+ import setuptools
2
+ import os
3
+ import glob
4
+
5
+ def find_package_data(base, globs, root="alis_protobuf"):
6
+ """Find all interesting data files, for setup(package_data=)
7
+ Arguments:
8
+ root: The directory to search in.
9
+ globs: A list of glob patterns to accept files.
10
+ """
11
+
12
+ rv_dirs = [root for root, dirs, files in os.walk(base)]
13
+ rv = []
14
+ for rv_dir in rv_dirs:
15
+ files = []
16
+ for pat in globs:
17
+ files += glob.glob(os.path.join(rv_dir, pat))
18
+ if not files:
19
+ continue
20
+ rv.extend([os.path.relpath(f, root) for f in files])
21
+ return rv
22
+
23
+ package_data = find_package_data("alis_protobuf", ["*.py", "*.pyi"])
24
+
25
+ setuptools.setup(
26
+ name="alis.open.pubsub.v1",
27
+ version="1.4.0",
28
+ description="Protobufs generated by Alis Build",
29
+ packages=setuptools.find_packages(),
30
+ include_package_data=True,
31
+ package_data={ # Optional
32
+ "alis_protobuf": package_data,
33
+ },
34
+ install_requires=[
35
+ 'google-common-protos>=0.0.1',
36
+ 'alis-services-protobuf-open>=1.176.0'
37
+ ]
38
+ )