init(中超python代码):初始化
commit
8e5ba19def
@ -0,0 +1,2 @@
|
||||
venv*
|
||||
file
|
@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
@ -0,0 +1,14 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="ignoredPackages">
|
||||
<value>
|
||||
<list size="1">
|
||||
<item index="0" class="java.lang.String" itemvalue="numpy" />
|
||||
</list>
|
||||
</value>
|
||||
</option>
|
||||
</inspection_tool>
|
||||
</profile>
|
||||
</component>
|
@ -0,0 +1,6 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="USE_PROJECT_PROFILE" value="false" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Black">
|
||||
<option name="sdkName" value="Python 3.8 (statistics-processor) (2)" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 (statistics-processor)" project-jdk-type="Python SDK" />
|
||||
</project>
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/statistics-processor.iml" filepath="$PROJECT_DIR$/.idea/statistics-processor.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/venv" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/venv2" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/venv312" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/venv310" />
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="Python 3.10 (statistics-processor)" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
<component name="PyDocumentationSettings">
|
||||
<option name="format" value="GOOGLE" />
|
||||
<option name="myDocStringFormat" value="Google" />
|
||||
</component>
|
||||
</module>
|
@ -0,0 +1,8 @@
|
||||
FROM python:3.7.4-slim-stretch
|
||||
|
||||
ADD . /app
|
||||
WORKDIR /app
|
||||
|
||||
RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple -r requirements.txt
|
||||
|
||||
CMD ["python", "application.py"]
|
@ -0,0 +1,8 @@
|
||||
all: docker-build
|
||||
|
||||
docker-build:
|
||||
docker build -t dingshudata/footbar-statistics .
|
||||
|
||||
grpc:
|
||||
python -m grpc_tools.protoc --python_out=./server --grpc_python_out=./server -I./proto ./proto/process.proto
|
||||
|
@ -0,0 +1,50 @@
|
||||
import logging
|
||||
import time
|
||||
from concurrent import futures
|
||||
|
||||
import grpc
|
||||
|
||||
from processor.create_xml import CreateXml
|
||||
from processor.processor import Processor
|
||||
from server import process_pb2_grpc
|
||||
|
||||
|
||||
class Statistics(process_pb2_grpc.StatisticsServicer):
|
||||
def RunTeamStatistics(self, request, context):
|
||||
return Processor(request.event, request.homeTeamId, request.visitingTeamID,
|
||||
request.names).run_team_statistics()
|
||||
|
||||
def RunPlayerStatistics(self, request, context):
|
||||
return Processor(request.event, request.homeTeamId, request.visitingTeamID,
|
||||
request.names).run_player_statistics()
|
||||
|
||||
def RunPassingMatrix(self, request, context):
|
||||
return Processor(request.event, request.homeTeamId, request.visitingTeamID,
|
||||
request.names).run_passing_matrix()
|
||||
|
||||
def RunPassGraph(self, request, context):
|
||||
return Processor(request.event, request.homeTeamId, request.visitingTeamID, request.names).run_pass_graph()
|
||||
|
||||
def RunCreateXml(self, request, context):
|
||||
return CreateXml(request.matchId).run_create_xml()
|
||||
|
||||
|
||||
def serve():
|
||||
logger = logging.getLogger()
|
||||
# 启动 rpc 服务
|
||||
server = grpc.server(futures.ThreadPoolExecutor(max_workers=10))
|
||||
process_pb2_grpc.add_StatisticsServicer_to_server(Statistics(), server)
|
||||
server.add_insecure_port('127.0.0.1:5959')
|
||||
server.start()
|
||||
logger.info('grpc server start on port(s):5959')
|
||||
try:
|
||||
while True:
|
||||
time.sleep(60 * 60 * 24) # one day in seconds
|
||||
except KeyboardInterrupt:
|
||||
server.stop(0)
|
||||
logger.info('grpc server shutdown.')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
logging.basicConfig(level=logging.INFO, format='time="%(asctime)s" level=%(levelname)s message="%(message)s"')
|
||||
serve()
|
@ -0,0 +1,8 @@
|
||||
file:
|
||||
path: F:\工作\中超项目\football- manager\football- manager\statistics-processor\file\
|
||||
|
||||
databases:
|
||||
url: 123.206.181.43
|
||||
name: panoramic
|
||||
password: Admin@999
|
||||
database: csl_events
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,4 @@
|
||||
,player1_teamID,possession,possession_time,average_regain_line,possession_first_quarter,possession_secend_quarter,possession_third_quarter,possession_fourth_quarter,possession_fifth_quarter,possession_sixth_quarter,short_passes,medium_passes,long_passes,forward_passes,sideways_passes,backward_passes,forward_passes_p,sideways_passes_p,backward_passes_p,shots,shots_on_target,shots_on_target_p,shots_area_one,shots_area_two,shots_area_three,shots_area_four,shots_area_five,shots_area_six,final_third_entries_left,final_third_entries_medium,final_third_entries_right,final_third_entries_left_p,final_third_entries_medium_p,final_third_entries_right_p,crosses_in_play_left,crosses_in_play_right,successful_crosses_in_play_left,successful_crosses_in_play_right,successful_crosses_in_play_left_p,successful_crosses_in_play_right_p,passes,corner,offside,successful_passes,successful_passes_p,shots_inside_the_box,goal_normal,goal_penalty,own_goal,throw_in,balls_played,chances,shot_off_target,short_passes_p,medium_passes_p,long_passes_p,possessions_gained,possessions_lost,fouls_commited,yellow_cards,red_cards,crosses,possessions_area_a1,possessions_area_a2,possessions_area_a3,possessions_area_a4,possessions_area_b1,possessions_area_b2,possessions_area_b3,possessions_area_b4,possessions_area_c1,possessions_area_c2,possessions_area_c3,possessions_area_c4,possessions_area_d1,possessions_area_d2,possessions_area_d3,possessions_area_d4,fouls_received,net_game_time
|
||||
0,0.0,0.54,4112860.0,2931.3947043478256,0.3796785181845034,0.4405077778698534,0.5626621347245089,0.5939240915634552,0.5638553420972033,0.5637470668527522,0,0,1,142,0,82,0.6339285714285714,0.0,0.36607142857142855,0,0,0.0,1,1,0,3,0,4,2,30,16,0.041666666666666664,0.625,0.3333333333333333,2,8,0,5,0.0,0.625,1,0,0,0,0.0,5,0,0,0,27,51,0,0,0.0,0.0,1.0,58,58,0,0,0,0,39897.0,186993.0,100063.0,1257979.0,62948.0,97059.0,116555.0,38896.0,56250.0,617946.0,119636.0,42400.0,7445.0,79009.0,57049.0,35674.0,0,4955950.0
|
||||
1,14151.0,0.46,3436812.0,2536.8481304347824,0.6203214818154966,0.5594922221301466,0.4373378652754912,0.4060759084365449,0.4361446579027967,0.43625293314724783,53,78,149,95,122,47,0.35984848484848486,0.4621212121212121,0.17803030303030304,14,1,0.07142857142857142,1,0,3,3,0,7,10,24,14,0.20833333333333334,0.5,0.2916666666666667,18,19,7,13,0.3888888888888889,0.6842105263157895,280,6,1,213,0.7607142857142857,7,0,0,0,2,405,0,13,0.18928571428571428,0.2785714285714286,0.5321428571428571,144,155,20,3,0,37,13388.0,39462.0,41075.0,31352.0,37173.0,149944.0,90744.0,26291.0,57176.0,76675.0,68723.0,19233.0,33550.0,110014.0,74539.0,32959.0,12,4955950.0
|
||||
2,14157.0,0.54,4112860.0,2931.3947043478256,0.3796785181845034,0.4405077778698534,0.5626621347245089,0.5939240915634552,0.5638553420972033,0.5637470668527522,109,140,211,142,204,82,0.3317757009345794,0.4766355140186916,0.19158878504672897,9,3,0.3333333333333333,1,1,0,3,0,4,2,30,16,0.041666666666666664,0.625,0.3333333333333333,2,8,0,5,0.0,0.625,460,0,2,395,0.8586956521739131,5,2,0,0,0,587,0,6,0.23695652173913043,0.30434782608695654,0.45869565217391306,156,144,12,3,0,10,39897.0,186993.0,100063.0,1257979.0,62948.0,97059.0,116555.0,38896.0,56250.0,617946.0,119636.0,42400.0,7445.0,79009.0,57049.0,35674.0,20,4955950.0
|
|
@ -0,0 +1,35 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "initial_id",
|
||||
"metadata": {
|
||||
"collapsed": true
|
||||
},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 2
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython2",
|
||||
"version": "2.7.6"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,51 @@
|
||||
syntax = "proto3";
|
||||
|
||||
import "google/protobuf/struct.proto";
|
||||
|
||||
package process.v1;
|
||||
|
||||
option go_package = "com.dingshudata/football-manager/pkg/grpc/process/v1;processv1";
|
||||
|
||||
|
||||
message MatchMessage {
|
||||
repeated string names = 1;
|
||||
int64 homeTeamId = 2;
|
||||
int64 visitingTeamID = 3;
|
||||
google.protobuf.ListValue event = 4;
|
||||
}
|
||||
|
||||
message TeamStatisticalResult {
|
||||
google.protobuf.ListValue result = 1;
|
||||
}
|
||||
|
||||
message PlayerStatisticalResult {
|
||||
google.protobuf.ListValue result = 1;
|
||||
}
|
||||
|
||||
message PassingMatrixResult {
|
||||
google.protobuf.ListValue result = 1;
|
||||
}
|
||||
|
||||
message PassGraphResult {
|
||||
google.protobuf.ListValue result = 1;
|
||||
}
|
||||
|
||||
message XmlMessage {
|
||||
int64 matchId = 1;
|
||||
}
|
||||
|
||||
message XmlResult {
|
||||
string status = 1;
|
||||
}
|
||||
|
||||
service Statistics {
|
||||
rpc RunTeamStatistics (MatchMessage) returns (TeamStatisticalResult) {
|
||||
};
|
||||
rpc RunPlayerStatistics (MatchMessage) returns (PlayerStatisticalResult) {
|
||||
};
|
||||
rpc RunPassingMatrix (MatchMessage) returns (PassingMatrixResult) {
|
||||
};
|
||||
rpc RunPassGraph (MatchMessage) returns (PassGraphResult) {
|
||||
};
|
||||
rpc RunCreateXml (XmlMessage) returns (XmlResult) {};
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
pandas >= 2.1.4
|
||||
protobuf >= 4.25.2
|
||||
grpcio >= 1.60.0
|
||||
grpcio_tools >= 1.60.0
|
||||
pymysql>=0.9.3
|
||||
numpy>=1.26.3
|
||||
pyyaml>=5.3.1
|
@ -0,0 +1,42 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: process.proto
|
||||
# Protobuf Python Version: 4.25.0
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rprocess.proto\x12\nprocess.v1\x1a\x1cgoogle/protobuf/struct.proto\"t\n\x0cMatchMessage\x12\r\n\x05names\x18\x01 \x03(\t\x12\x12\n\nhomeTeamId\x18\x02 \x01(\x03\x12\x16\n\x0evisitingTeamID\x18\x03 \x01(\x03\x12)\n\x05\x65vent\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.ListValue\"C\n\x15TeamStatisticalResult\x12*\n\x06result\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.ListValue\"E\n\x17PlayerStatisticalResult\x12*\n\x06result\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.ListValue\"A\n\x13PassingMatrixResult\x12*\n\x06result\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.ListValue\"=\n\x0fPassGraphResult\x12*\n\x06result\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.ListValue\"\x1d\n\nXmlMessage\x12\x0f\n\x07matchId\x18\x01 \x01(\x03\"\x1b\n\tXmlResult\x12\x0e\n\x06status\x18\x01 \x01(\t2\x93\x03\n\nStatistics\x12R\n\x11RunTeamStatistics\x12\x18.process.v1.MatchMessage\x1a!.process.v1.TeamStatisticalResult\"\x00\x12V\n\x13RunPlayerStatistics\x12\x18.process.v1.MatchMessage\x1a#.process.v1.PlayerStatisticalResult\"\x00\x12O\n\x10RunPassingMatrix\x12\x18.process.v1.MatchMessage\x1a\x1f.process.v1.PassingMatrixResult\"\x00\x12G\n\x0cRunPassGraph\x12\x18.process.v1.MatchMessage\x1a\x1b.process.v1.PassGraphResult\"\x00\x12?\n\x0cRunCreateXml\x12\x16.process.v1.XmlMessage\x1a\x15.process.v1.XmlResult\"\x00\x42@Z>com.dingshudata/football-manager/pkg/grpc/process/v1;processv1b\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'process_pb2', _globals)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
_globals['DESCRIPTOR']._options = None
|
||||
_globals['DESCRIPTOR']._serialized_options = b'Z>com.dingshudata/football-manager/pkg/grpc/process/v1;processv1'
|
||||
_globals['_MATCHMESSAGE']._serialized_start=59
|
||||
_globals['_MATCHMESSAGE']._serialized_end=175
|
||||
_globals['_TEAMSTATISTICALRESULT']._serialized_start=177
|
||||
_globals['_TEAMSTATISTICALRESULT']._serialized_end=244
|
||||
_globals['_PLAYERSTATISTICALRESULT']._serialized_start=246
|
||||
_globals['_PLAYERSTATISTICALRESULT']._serialized_end=315
|
||||
_globals['_PASSINGMATRIXRESULT']._serialized_start=317
|
||||
_globals['_PASSINGMATRIXRESULT']._serialized_end=382
|
||||
_globals['_PASSGRAPHRESULT']._serialized_start=384
|
||||
_globals['_PASSGRAPHRESULT']._serialized_end=445
|
||||
_globals['_XMLMESSAGE']._serialized_start=447
|
||||
_globals['_XMLMESSAGE']._serialized_end=476
|
||||
_globals['_XMLRESULT']._serialized_start=478
|
||||
_globals['_XMLRESULT']._serialized_end=505
|
||||
_globals['_STATISTICS']._serialized_start=508
|
||||
_globals['_STATISTICS']._serialized_end=911
|
||||
# @@protoc_insertion_point(module_scope)
|
@ -0,0 +1,198 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
||||
from server import process_pb2 as process__pb2
|
||||
|
||||
|
||||
class StatisticsStub(object):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.RunTeamStatistics = channel.unary_unary(
|
||||
'/process.v1.Statistics/RunTeamStatistics',
|
||||
request_serializer=process__pb2.MatchMessage.SerializeToString,
|
||||
response_deserializer=process__pb2.TeamStatisticalResult.FromString,
|
||||
)
|
||||
self.RunPlayerStatistics = channel.unary_unary(
|
||||
'/process.v1.Statistics/RunPlayerStatistics',
|
||||
request_serializer=process__pb2.MatchMessage.SerializeToString,
|
||||
response_deserializer=process__pb2.PlayerStatisticalResult.FromString,
|
||||
)
|
||||
self.RunPassingMatrix = channel.unary_unary(
|
||||
'/process.v1.Statistics/RunPassingMatrix',
|
||||
request_serializer=process__pb2.MatchMessage.SerializeToString,
|
||||
response_deserializer=process__pb2.PassingMatrixResult.FromString,
|
||||
)
|
||||
self.RunPassGraph = channel.unary_unary(
|
||||
'/process.v1.Statistics/RunPassGraph',
|
||||
request_serializer=process__pb2.MatchMessage.SerializeToString,
|
||||
response_deserializer=process__pb2.PassGraphResult.FromString,
|
||||
)
|
||||
self.RunCreateXml = channel.unary_unary(
|
||||
'/process.v1.Statistics/RunCreateXml',
|
||||
request_serializer=process__pb2.XmlMessage.SerializeToString,
|
||||
response_deserializer=process__pb2.XmlResult.FromString,
|
||||
)
|
||||
|
||||
|
||||
class StatisticsServicer(object):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
|
||||
def RunTeamStatistics(self, request, context):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def RunPlayerStatistics(self, request, context):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def RunPassingMatrix(self, request, context):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def RunPassGraph(self, request, context):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def RunCreateXml(self, request, context):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_StatisticsServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'RunTeamStatistics': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.RunTeamStatistics,
|
||||
request_deserializer=process__pb2.MatchMessage.FromString,
|
||||
response_serializer=process__pb2.TeamStatisticalResult.SerializeToString,
|
||||
),
|
||||
'RunPlayerStatistics': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.RunPlayerStatistics,
|
||||
request_deserializer=process__pb2.MatchMessage.FromString,
|
||||
response_serializer=process__pb2.PlayerStatisticalResult.SerializeToString,
|
||||
),
|
||||
'RunPassingMatrix': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.RunPassingMatrix,
|
||||
request_deserializer=process__pb2.MatchMessage.FromString,
|
||||
response_serializer=process__pb2.PassingMatrixResult.SerializeToString,
|
||||
),
|
||||
'RunPassGraph': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.RunPassGraph,
|
||||
request_deserializer=process__pb2.MatchMessage.FromString,
|
||||
response_serializer=process__pb2.PassGraphResult.SerializeToString,
|
||||
),
|
||||
'RunCreateXml': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.RunCreateXml,
|
||||
request_deserializer=process__pb2.XmlMessage.FromString,
|
||||
response_serializer=process__pb2.XmlResult.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'process.v1.Statistics', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
||||
|
||||
|
||||
# This class is part of an EXPERIMENTAL API.
|
||||
class Statistics(object):
|
||||
"""Missing associated documentation comment in .proto file."""
|
||||
|
||||
@staticmethod
|
||||
def RunTeamStatistics(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/process.v1.Statistics/RunTeamStatistics',
|
||||
process__pb2.MatchMessage.SerializeToString,
|
||||
process__pb2.TeamStatisticalResult.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def RunPlayerStatistics(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/process.v1.Statistics/RunPlayerStatistics',
|
||||
process__pb2.MatchMessage.SerializeToString,
|
||||
process__pb2.PlayerStatisticalResult.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def RunPassingMatrix(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/process.v1.Statistics/RunPassingMatrix',
|
||||
process__pb2.MatchMessage.SerializeToString,
|
||||
process__pb2.PassingMatrixResult.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def RunPassGraph(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/process.v1.Statistics/RunPassGraph',
|
||||
process__pb2.MatchMessage.SerializeToString,
|
||||
process__pb2.PassGraphResult.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def RunCreateXml(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/process.v1.Statistics/RunCreateXml',
|
||||
process__pb2.XmlMessage.SerializeToString,
|
||||
process__pb2.XmlResult.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
Loading…
Reference in New Issue