krista-common-proto-schema 1.0.4__py3-none-any.whl → 1.0.5__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.
Potentially problematic release.
This version of krista-common-proto-schema might be problematic. Click here for more details.
- krista_common_proto_schema/__init__.py +20 -0
- krista_common_proto_schema/common/__init__.py +1 -0
- krista_common_proto_schema/common/message_pb2.py +40 -0
- krista_common_proto_schema/common/user_pb2.py +39 -0
- {krista_common_proto_schema-1.0.4.dist-info → krista_common_proto_schema-1.0.5.dist-info}/METADATA +1 -1
- krista_common_proto_schema-1.0.5.dist-info/RECORD +8 -0
- krista_common_proto_schema-1.0.5.dist-info/top_level.txt +1 -0
- krista_common_proto_schema-1.0.4.dist-info/RECORD +0 -4
- krista_common_proto_schema-1.0.4.dist-info/top_level.txt +0 -1
- {krista_common_proto_schema-1.0.4.dist-info → krista_common_proto_schema-1.0.5.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Krista Common Proto Schema Package
|
|
3
|
+
|
|
4
|
+
This package contains compiled Protocol Buffer definitions
|
|
5
|
+
that can be imported directly in Python projects.
|
|
6
|
+
|
|
7
|
+
Usage:
|
|
8
|
+
from krista_common_proto_schema import user_pb2, message_pb2
|
|
9
|
+
|
|
10
|
+
user = user_pb2.User(id=1, name="John")
|
|
11
|
+
message = message_pb2.Message(id=1, sender=user, content="Hello")
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
__version__ = "1.0.5"
|
|
15
|
+
|
|
16
|
+
# Import compiled proto modules for easy access
|
|
17
|
+
from . import user_pb2
|
|
18
|
+
from . import message_pb2
|
|
19
|
+
|
|
20
|
+
__all__ = ["user_pb2", "message_pb2"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Auto-generated package file."""
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: common/message.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
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
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'common/message.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from common import user_pb2 as common_dot_user__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14\x63ommon/message.proto\x12\x06\x63ommon\x1a\x11\x63ommon/user.proto\"z\n\x07Message\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x1c\n\x06sender\x18\x02 \x01(\x0b\x32\x0c.common.User\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12\x11\n\ttimestamp\x18\x04 \x01(\x03\x12!\n\x04type\x18\x05 \x01(\x0e\x32\x13.common.MessageType*7\n\x0bMessageType\x12\x08\n\x04TEXT\x10\x00\x12\t\n\x05IMAGE\x10\x01\x12\t\n\x05VIDEO\x10\x02\x12\x08\n\x04\x46ILE\x10\x03\x42\'\n\x17\x63om.krista.proto.commonB\x0cMessageProtob\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'common.message_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\027com.krista.proto.commonB\014MessageProto'
|
|
36
|
+
_globals['_MESSAGETYPE']._serialized_start=175
|
|
37
|
+
_globals['_MESSAGETYPE']._serialized_end=230
|
|
38
|
+
_globals['_MESSAGE']._serialized_start=51
|
|
39
|
+
_globals['_MESSAGE']._serialized_end=173
|
|
40
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: common/user.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
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
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'common/user.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11\x63ommon/user.proto\x12\x06\x63ommon\"c\n\x04User\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05\x65mail\x18\x03 \x01(\t\x12\x12\n\ncreated_at\x18\x04 \x01(\x03\x12\x1e\n\x04role\x18\x05 \x01(\x0e\x32\x10.common.UserRole*7\n\x08UserRole\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05\x41\x44MIN\x10\x01\x12\x08\n\x04USER\x10\x02\x12\t\n\x05GUEST\x10\x03\x42$\n\x17\x63om.krista.proto.commonB\tUserProtob\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'common.user_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\027com.krista.proto.commonB\tUserProto'
|
|
35
|
+
_globals['_USERROLE']._serialized_start=130
|
|
36
|
+
_globals['_USERROLE']._serialized_end=185
|
|
37
|
+
_globals['_USER']._serialized_start=29
|
|
38
|
+
_globals['_USER']._serialized_end=128
|
|
39
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
krista_common_proto_schema/__init__.py,sha256=sqZyioGFhsm_8u58vhITbQMa4d_j6FY2rB9qeoqYTLI,501
|
|
2
|
+
krista_common_proto_schema/common/__init__.py,sha256=F-pk241YZkXOLy5dhC6gwY7dCZrLE0s-vKbuuSD4G6w,35
|
|
3
|
+
krista_common_proto_schema/common/message_pb2.py,sha256=o3uIIFI57x1U8MNrg6clNKBUMEcp0jxCw9zcwCg0gPk,1944
|
|
4
|
+
krista_common_proto_schema/common/user_pb2.py,sha256=VMjeEId9OEyM16als34Mvl1ccBn_EWBHoAHqLpg16QI,1802
|
|
5
|
+
krista_common_proto_schema-1.0.5.dist-info/METADATA,sha256=gah6lVZU19UaJ_CL2U11eACIPXe78TvVZLPCuq7--AY,725
|
|
6
|
+
krista_common_proto_schema-1.0.5.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
|
|
7
|
+
krista_common_proto_schema-1.0.5.dist-info/top_level.txt,sha256=FCEiHFOayGNE-QAdHzIePoaIGBPxGKrjqUmVc8-HfYI,27
|
|
8
|
+
krista_common_proto_schema-1.0.5.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
krista_common_proto_schema
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
krista_common_proto_schema-1.0.4.dist-info/METADATA,sha256=rP2nDetEcM16fO9rBddbBmedhvjHyY5eAN8p-remnJk,725
|
|
2
|
-
krista_common_proto_schema-1.0.4.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
|
|
3
|
-
krista_common_proto_schema-1.0.4.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
4
|
-
krista_common_proto_schema-1.0.4.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
{krista_common_proto_schema-1.0.4.dist-info → krista_common_proto_schema-1.0.5.dist-info}/WHEEL
RENAMED
|
File without changes
|