auth-grpc 0.1.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.
- auth_grpc-0.1.0/PKG-INFO +7 -0
- auth_grpc-0.1.0/README.md +0 -0
- auth_grpc-0.1.0/pyproject.toml +12 -0
- auth_grpc-0.1.0/setup.cfg +4 -0
- auth_grpc-0.1.0/src/auth_grpc/__init__.py +0 -0
- auth_grpc-0.1.0/src/auth_grpc/v1/__init__.py +0 -0
- auth_grpc-0.1.0/src/auth_grpc/v1/auth_grpc_pb2.py +40 -0
- auth_grpc-0.1.0/src/auth_grpc/v1/auth_grpc_pb2_grpc.py +97 -0
- auth_grpc-0.1.0/src/auth_grpc.egg-info/PKG-INFO +7 -0
- auth_grpc-0.1.0/src/auth_grpc.egg-info/SOURCES.txt +11 -0
- auth_grpc-0.1.0/src/auth_grpc.egg-info/dependency_links.txt +1 -0
- auth_grpc-0.1.0/src/auth_grpc.egg-info/requires.txt +2 -0
- auth_grpc-0.1.0/src/auth_grpc.egg-info/top_level.txt +1 -0
auth_grpc-0.1.0/PKG-INFO
ADDED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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: auth_grpc.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
|
+
'auth_grpc.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\x0f\x61uth_grpc.proto\x12\x07\x61uth.v1\".\n\x15VerifyUserWebSoketReq\x12\x15\n\rrefresh_token\x18\x01 \x01(\t\"7\n\x16VerifyUserWebSoketResp\x12\x0f\n\x07user_id\x18\x01 \x01(\r\x12\x0c\n\x04name\x18\x02 \x01(\t2_\n\x04\x41uth\x12W\n\x12VerifyUserWebSoket\x12\x1e.auth.v1.VerifyUserWebSoketReq\x1a\x1f.auth.v1.VerifyUserWebSoketResp\"\x00\x62\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'auth_grpc_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
DESCRIPTOR._loaded_options = None
|
|
34
|
+
_globals['_VERIFYUSERWEBSOKETREQ']._serialized_start=28
|
|
35
|
+
_globals['_VERIFYUSERWEBSOKETREQ']._serialized_end=74
|
|
36
|
+
_globals['_VERIFYUSERWEBSOKETRESP']._serialized_start=76
|
|
37
|
+
_globals['_VERIFYUSERWEBSOKETRESP']._serialized_end=131
|
|
38
|
+
_globals['_AUTH']._serialized_start=133
|
|
39
|
+
_globals['_AUTH']._serialized_end=228
|
|
40
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
from . import auth_grpc_pb2 as auth__grpc__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.76.0'
|
|
9
|
+
GRPC_VERSION = grpc.__version__
|
|
10
|
+
_version_not_supported = False
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from grpc._utilities import first_version_is_lower
|
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
15
|
+
except ImportError:
|
|
16
|
+
_version_not_supported = True
|
|
17
|
+
|
|
18
|
+
if _version_not_supported:
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
+
+ ' but the generated code in auth_grpc_pb2_grpc.py depends on'
|
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class AuthStub(object):
|
|
29
|
+
"""Missing associated documentation comment in .proto file."""
|
|
30
|
+
|
|
31
|
+
def __init__(self, channel):
|
|
32
|
+
"""Constructor.
|
|
33
|
+
|
|
34
|
+
Args:
|
|
35
|
+
channel: A grpc.Channel.
|
|
36
|
+
"""
|
|
37
|
+
self.VerifyUserWebSoket = channel.unary_unary(
|
|
38
|
+
'/auth.v1.Auth/VerifyUserWebSoket',
|
|
39
|
+
request_serializer=auth__grpc__pb2.VerifyUserWebSoketReq.SerializeToString,
|
|
40
|
+
response_deserializer=auth__grpc__pb2.VerifyUserWebSoketResp.FromString,
|
|
41
|
+
_registered_method=True)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class AuthServicer(object):
|
|
45
|
+
"""Missing associated documentation comment in .proto file."""
|
|
46
|
+
|
|
47
|
+
def VerifyUserWebSoket(self, request, context):
|
|
48
|
+
"""Missing associated documentation comment in .proto file."""
|
|
49
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
50
|
+
context.set_details('Method not implemented!')
|
|
51
|
+
raise NotImplementedError('Method not implemented!')
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def add_AuthServicer_to_server(servicer, server):
|
|
55
|
+
rpc_method_handlers = {
|
|
56
|
+
'VerifyUserWebSoket': grpc.unary_unary_rpc_method_handler(
|
|
57
|
+
servicer.VerifyUserWebSoket,
|
|
58
|
+
request_deserializer=auth__grpc__pb2.VerifyUserWebSoketReq.FromString,
|
|
59
|
+
response_serializer=auth__grpc__pb2.VerifyUserWebSoketResp.SerializeToString,
|
|
60
|
+
),
|
|
61
|
+
}
|
|
62
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
63
|
+
'auth.v1.Auth', rpc_method_handlers)
|
|
64
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
65
|
+
server.add_registered_method_handlers('auth.v1.Auth', rpc_method_handlers)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# This class is part of an EXPERIMENTAL API.
|
|
69
|
+
class Auth(object):
|
|
70
|
+
"""Missing associated documentation comment in .proto file."""
|
|
71
|
+
|
|
72
|
+
@staticmethod
|
|
73
|
+
def VerifyUserWebSoket(request,
|
|
74
|
+
target,
|
|
75
|
+
options=(),
|
|
76
|
+
channel_credentials=None,
|
|
77
|
+
call_credentials=None,
|
|
78
|
+
insecure=False,
|
|
79
|
+
compression=None,
|
|
80
|
+
wait_for_ready=None,
|
|
81
|
+
timeout=None,
|
|
82
|
+
metadata=None):
|
|
83
|
+
return grpc.experimental.unary_unary(
|
|
84
|
+
request,
|
|
85
|
+
target,
|
|
86
|
+
'/auth.v1.Auth/VerifyUserWebSoket',
|
|
87
|
+
auth__grpc__pb2.VerifyUserWebSoketReq.SerializeToString,
|
|
88
|
+
auth__grpc__pb2.VerifyUserWebSoketResp.FromString,
|
|
89
|
+
options,
|
|
90
|
+
channel_credentials,
|
|
91
|
+
insecure,
|
|
92
|
+
call_credentials,
|
|
93
|
+
compression,
|
|
94
|
+
wait_for_ready,
|
|
95
|
+
timeout,
|
|
96
|
+
metadata,
|
|
97
|
+
_registered_method=True)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
pyproject.toml
|
|
3
|
+
src/auth_grpc/__init__.py
|
|
4
|
+
src/auth_grpc.egg-info/PKG-INFO
|
|
5
|
+
src/auth_grpc.egg-info/SOURCES.txt
|
|
6
|
+
src/auth_grpc.egg-info/dependency_links.txt
|
|
7
|
+
src/auth_grpc.egg-info/requires.txt
|
|
8
|
+
src/auth_grpc.egg-info/top_level.txt
|
|
9
|
+
src/auth_grpc/v1/__init__.py
|
|
10
|
+
src/auth_grpc/v1/auth_grpc_pb2.py
|
|
11
|
+
src/auth_grpc/v1/auth_grpc_pb2_grpc.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
auth_grpc
|