Skip to content

Commit df9398e

Browse files
authored
Merge pull request #1 from PassKit/develop
Python SDK
2 parents e0e9c37 + 840cafa commit df9398e

File tree

132 files changed

+13467
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+13467
-21
lines changed

LICENSE

-21
This file was deleted.

__init__.py

Whitespace-only changes.

ct/scheduler/scheduler_pb2.py

+44
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ct/scheduler/scheduler_pb2_grpc.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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+

io/analytics/a_rpc_pb2.py

+31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

io/analytics/a_rpc_pb2_grpc.py

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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+
5+
from io.common import reporting_pb2 as io_dot_common_dot_reporting__pb2
6+
7+
8+
class AnalyticsStub(object):
9+
"""Missing associated documentation comment in .proto file."""
10+
11+
def __init__(self, channel):
12+
"""Constructor.
13+
14+
Args:
15+
channel: A grpc.Channel.
16+
"""
17+
self.getAnalytics = channel.unary_unary(
18+
'/analytics.Analytics/getAnalytics',
19+
request_serializer=io_dot_common_dot_reporting__pb2.AnalyticsRequest.SerializeToString,
20+
response_deserializer=io_dot_common_dot_reporting__pb2.AnalyticsResponse.FromString,
21+
)
22+
23+
24+
class AnalyticsServicer(object):
25+
"""Missing associated documentation comment in .proto file."""
26+
27+
def getAnalytics(self, request, context):
28+
"""Retrieve a daily, monthly or yearly record.
29+
"""
30+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
31+
context.set_details('Method not implemented!')
32+
raise NotImplementedError('Method not implemented!')
33+
34+
35+
def add_AnalyticsServicer_to_server(servicer, server):
36+
rpc_method_handlers = {
37+
'getAnalytics': grpc.unary_unary_rpc_method_handler(
38+
servicer.getAnalytics,
39+
request_deserializer=io_dot_common_dot_reporting__pb2.AnalyticsRequest.FromString,
40+
response_serializer=io_dot_common_dot_reporting__pb2.AnalyticsResponse.SerializeToString,
41+
),
42+
}
43+
generic_handler = grpc.method_handlers_generic_handler(
44+
'analytics.Analytics', rpc_method_handlers)
45+
server.add_generic_rpc_handlers((generic_handler,))
46+
47+
48+
# This class is part of an EXPERIMENTAL API.
49+
class Analytics(object):
50+
"""Missing associated documentation comment in .proto file."""
51+
52+
@staticmethod
53+
def getAnalytics(request,
54+
target,
55+
options=(),
56+
channel_credentials=None,
57+
call_credentials=None,
58+
insecure=False,
59+
compression=None,
60+
wait_for_ready=None,
61+
timeout=None,
62+
metadata=None):
63+
return grpc.experimental.unary_unary(request, target, '/analytics.Analytics/getAnalytics',
64+
io_dot_common_dot_reporting__pb2.AnalyticsRequest.SerializeToString,
65+
io_dot_common_dot_reporting__pb2.AnalyticsResponse.FromString,
66+
options, channel_credentials,
67+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

io/certificate/certificate_pb2.py

+41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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+

io/common/attributes_pb2.py

+26
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

io/common/attributes_pb2_grpc.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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+

0 commit comments

Comments
 (0)