Skip to content

Commit

Permalink
feat: add gen files
Browse files Browse the repository at this point in the history
  • Loading branch information
keivanipchihagh committed Apr 22, 2024
1 parent 6d46949 commit b58c2fa
Show file tree
Hide file tree
Showing 6 changed files with 192 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,3 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

# other
protos/**/*.py
32 changes: 32 additions & 0 deletions protos/src/python/athena_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 66 additions & 0 deletions protos/src/python/athena_pb2_grpc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc

import athena_pb2 as athena__pb2


class AthenaStub(object):
"""Missing associated documentation comment in .proto file."""

def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.GetBacktest = channel.unary_unary(
'/athena.v1.Athena/GetBacktest',
request_serializer=athena__pb2.GetBacktestRequest.SerializeToString,
response_deserializer=athena__pb2.GetBacktestResponse.FromString,
)


class AthenaServicer(object):
"""Missing associated documentation comment in .proto file."""

def GetBacktest(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_AthenaServicer_to_server(servicer, server):
rpc_method_handlers = {
'GetBacktest': grpc.unary_unary_rpc_method_handler(
servicer.GetBacktest,
request_deserializer=athena__pb2.GetBacktestRequest.FromString,
response_serializer=athena__pb2.GetBacktestResponse.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'athena.v1.Athena', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))


# This class is part of an EXPERIMENTAL API.
class Athena(object):
"""Missing associated documentation comment in .proto file."""

@staticmethod
def GetBacktest(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, '/athena.v1.Athena/GetBacktest',
athena__pb2.GetBacktestRequest.SerializeToString,
athena__pb2.GetBacktestResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
34 changes: 34 additions & 0 deletions protos/src/python/athena_struct_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions protos/src/python/candlestick_struct_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions protos/src/python/enums_struct_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b58c2fa

Please sign in to comment.