Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-dfs
csst-dfs-proto-py
Commits
60afdbeb
Commit
60afdbeb
authored
May 06, 2021
by
Wei Shoulin
Browse files
bug
parent
7187a5a4
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
csst_dfs_proto/common/ephem/ephem_pb2.py
View file @
60afdbeb
This diff is collapsed.
Click to expand it.
csst_dfs_proto/common/ephem/ephem_pb2_grpc.py
View file @
60afdbeb
...
...
@@ -14,10 +14,10 @@ class EphemSearchSrvStub(object):
Args:
channel: A grpc.Channel.
"""
self
.
Gaia
2
Search
=
channel
.
unary_unary
(
'/dfs.ephem.EphemSearchSrv/Gaia
2
Search'
,
self
.
Gaia
3
Search
=
channel
.
unary_unary
(
'/dfs.ephem.EphemSearchSrv/Gaia
3
Search'
,
request_serializer
=
common_dot_ephem_dot_ephem__pb2
.
EphemSearchRequest
.
SerializeToString
,
response_deserializer
=
common_dot_ephem_dot_ephem__pb2
.
Gaia
2
SearchResponse
.
FromString
,
response_deserializer
=
common_dot_ephem_dot_ephem__pb2
.
Gaia
3
SearchResponse
.
FromString
,
)
...
...
@@ -25,7 +25,7 @@ class EphemSearchSrvServicer(object):
# missing associated documentation comment in .proto file
pass
def
Gaia
2
Search
(
self
,
request
,
context
):
def
Gaia
3
Search
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
...
...
@@ -35,10 +35,10 @@ class EphemSearchSrvServicer(object):
def
add_EphemSearchSrvServicer_to_server
(
servicer
,
server
):
rpc_method_handlers
=
{
'Gaia
2
Search'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Gaia
2
Search
,
'Gaia
3
Search'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Gaia
3
Search
,
request_deserializer
=
common_dot_ephem_dot_ephem__pb2
.
EphemSearchRequest
.
FromString
,
response_serializer
=
common_dot_ephem_dot_ephem__pb2
.
Gaia
2
SearchResponse
.
SerializeToString
,
response_serializer
=
common_dot_ephem_dot_ephem__pb2
.
Gaia
3
SearchResponse
.
SerializeToString
,
),
}
generic_handler
=
grpc
.
method_handlers_generic_handler
(
...
...
csst_dfs_proto/facility/__init__.py
0 → 100644
View file @
60afdbeb
csst_dfs_proto/facility/detector_pb2.py
0 → 100644
View file @
60afdbeb
This diff is collapsed.
Click to expand it.
csst_dfs_proto/facility/detector_pb2_grpc.py
0 → 100644
View file @
60afdbeb
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import
grpc
from
.
import
detector_pb2
as
facility_dot_detector__pb2
class
DetectorSrvStub
(
object
):
# missing associated documentation comment in .proto file
pass
def
__init__
(
self
,
channel
):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self
.
Find
=
channel
.
unary_unary
(
'/facility.DetectorSrv/Find'
,
request_serializer
=
facility_dot_detector__pb2
.
FindDetectorReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector__pb2
.
FindDetectorResp
.
FromString
,
)
self
.
Get
=
channel
.
unary_unary
(
'/facility.DetectorSrv/Get'
,
request_serializer
=
facility_dot_detector__pb2
.
GetDetectorReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector__pb2
.
GetDetectorResp
.
FromString
,
)
self
.
Write
=
channel
.
unary_unary
(
'/facility.DetectorSrv/Write'
,
request_serializer
=
facility_dot_detector__pb2
.
WriteDetectorReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector__pb2
.
WriteDetectorResp
.
FromString
,
)
self
.
Update
=
channel
.
unary_unary
(
'/facility.DetectorSrv/Update'
,
request_serializer
=
facility_dot_detector__pb2
.
UpdateDetectorReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector__pb2
.
UpdateDetectorResp
.
FromString
,
)
self
.
FindStatus
=
channel
.
unary_unary
(
'/facility.DetectorSrv/FindStatus'
,
request_serializer
=
facility_dot_detector__pb2
.
FindStatusReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector__pb2
.
FindStatusResp
.
FromString
,
)
self
.
GetStatus
=
channel
.
unary_unary
(
'/facility.DetectorSrv/GetStatus'
,
request_serializer
=
facility_dot_detector__pb2
.
GetStatusReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector__pb2
.
GetStatusResp
.
FromString
,
)
self
.
WriteStatus
=
channel
.
unary_unary
(
'/facility.DetectorSrv/WriteStatus'
,
request_serializer
=
facility_dot_detector__pb2
.
WriteStatusReq
.
SerializeToString
,
response_deserializer
=
facility_dot_detector__pb2
.
WriteStatusResp
.
FromString
,
)
class
DetectorSrvServicer
(
object
):
# missing associated documentation comment in .proto file
pass
def
Find
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
Get
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
Write
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
Update
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
FindStatus
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
GetStatus
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
WriteStatus
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
add_DetectorSrvServicer_to_server
(
servicer
,
server
):
rpc_method_handlers
=
{
'Find'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Find
,
request_deserializer
=
facility_dot_detector__pb2
.
FindDetectorReq
.
FromString
,
response_serializer
=
facility_dot_detector__pb2
.
FindDetectorResp
.
SerializeToString
,
),
'Get'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Get
,
request_deserializer
=
facility_dot_detector__pb2
.
GetDetectorReq
.
FromString
,
response_serializer
=
facility_dot_detector__pb2
.
GetDetectorResp
.
SerializeToString
,
),
'Write'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Write
,
request_deserializer
=
facility_dot_detector__pb2
.
WriteDetectorReq
.
FromString
,
response_serializer
=
facility_dot_detector__pb2
.
WriteDetectorResp
.
SerializeToString
,
),
'Update'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Update
,
request_deserializer
=
facility_dot_detector__pb2
.
UpdateDetectorReq
.
FromString
,
response_serializer
=
facility_dot_detector__pb2
.
UpdateDetectorResp
.
SerializeToString
,
),
'FindStatus'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
FindStatus
,
request_deserializer
=
facility_dot_detector__pb2
.
FindStatusReq
.
FromString
,
response_serializer
=
facility_dot_detector__pb2
.
FindStatusResp
.
SerializeToString
,
),
'GetStatus'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
GetStatus
,
request_deserializer
=
facility_dot_detector__pb2
.
GetStatusReq
.
FromString
,
response_serializer
=
facility_dot_detector__pb2
.
GetStatusResp
.
SerializeToString
,
),
'WriteStatus'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
WriteStatus
,
request_deserializer
=
facility_dot_detector__pb2
.
WriteStatusReq
.
FromString
,
response_serializer
=
facility_dot_detector__pb2
.
WriteStatusResp
.
SerializeToString
,
),
}
generic_handler
=
grpc
.
method_handlers_generic_handler
(
'facility.DetectorSrv'
,
rpc_method_handlers
)
server
.
add_generic_rpc_handlers
((
generic_handler
,))
csst_dfs_proto/facility/exposure_pb2.py
0 → 100644
View file @
60afdbeb
This diff is collapsed.
Click to expand it.
csst_dfs_proto/facility/exposure_pb2_grpc.py
0 → 100644
View file @
60afdbeb
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import
grpc
from
.
import
exposure_pb2
as
facility_dot_exposure__pb2
class
ExposureSrvStub
(
object
):
# missing associated documentation comment in .proto file
pass
def
__init__
(
self
,
channel
):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self
.
Find
=
channel
.
unary_unary
(
'/facility.ExposureSrv/Find'
,
request_serializer
=
facility_dot_exposure__pb2
.
FindExposureReq
.
SerializeToString
,
response_deserializer
=
facility_dot_exposure__pb2
.
FindExposureResp
.
FromString
,
)
self
.
Get
=
channel
.
unary_unary
(
'/facility.ExposureSrv/Get'
,
request_serializer
=
facility_dot_exposure__pb2
.
GetExposureReq
.
SerializeToString
,
response_deserializer
=
facility_dot_exposure__pb2
.
GetExposureResp
.
FromString
,
)
self
.
Write
=
channel
.
stream_unary
(
'/facility.ExposureSrv/Write'
,
request_serializer
=
facility_dot_exposure__pb2
.
WriteExposureReq
.
SerializeToString
,
response_deserializer
=
facility_dot_exposure__pb2
.
WriteExposureResp
.
FromString
,
)
self
.
UpdateQc0Status
=
channel
.
unary_unary
(
'/facility.ExposureSrv/UpdateQc0Status'
,
request_serializer
=
facility_dot_exposure__pb2
.
UpdateQc0StatusReq
.
SerializeToString
,
response_deserializer
=
facility_dot_exposure__pb2
.
UpdateQc0StatusResp
.
FromString
,
)
self
.
UpdateProcStatus
=
channel
.
unary_unary
(
'/facility.ExposureSrv/UpdateProcStatus'
,
request_serializer
=
facility_dot_exposure__pb2
.
UpdateProcStatusReq
.
SerializeToString
,
response_deserializer
=
facility_dot_exposure__pb2
.
UpdateProcStatusResp
.
FromString
,
)
class
ExposureSrvServicer
(
object
):
# missing associated documentation comment in .proto file
pass
def
Find
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
Get
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
Write
(
self
,
request_iterator
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
UpdateQc0Status
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
UpdateProcStatus
(
self
,
request
,
context
):
# missing associated documentation comment in .proto file
pass
context
.
set_code
(
grpc
.
StatusCode
.
UNIMPLEMENTED
)
context
.
set_details
(
'Method not implemented!'
)
raise
NotImplementedError
(
'Method not implemented!'
)
def
add_ExposureSrvServicer_to_server
(
servicer
,
server
):
rpc_method_handlers
=
{
'Find'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Find
,
request_deserializer
=
facility_dot_exposure__pb2
.
FindExposureReq
.
FromString
,
response_serializer
=
facility_dot_exposure__pb2
.
FindExposureResp
.
SerializeToString
,
),
'Get'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
Get
,
request_deserializer
=
facility_dot_exposure__pb2
.
GetExposureReq
.
FromString
,
response_serializer
=
facility_dot_exposure__pb2
.
GetExposureResp
.
SerializeToString
,
),
'Write'
:
grpc
.
stream_unary_rpc_method_handler
(
servicer
.
Write
,
request_deserializer
=
facility_dot_exposure__pb2
.
WriteExposureReq
.
FromString
,
response_serializer
=
facility_dot_exposure__pb2
.
WriteExposureResp
.
SerializeToString
,
),
'UpdateQc0Status'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
UpdateQc0Status
,
request_deserializer
=
facility_dot_exposure__pb2
.
UpdateQc0StatusReq
.
FromString
,
response_serializer
=
facility_dot_exposure__pb2
.
UpdateQc0StatusResp
.
SerializeToString
,
),
'UpdateProcStatus'
:
grpc
.
unary_unary_rpc_method_handler
(
servicer
.
UpdateProcStatus
,
request_deserializer
=
facility_dot_exposure__pb2
.
UpdateProcStatusReq
.
FromString
,
response_serializer
=
facility_dot_exposure__pb2
.
UpdateProcStatusResp
.
SerializeToString
,
),
}
generic_handler
=
grpc
.
method_handlers_generic_handler
(
'facility.ExposureSrv'
,
rpc_method_handlers
)
server
.
add_generic_rpc_handlers
((
generic_handler
,))
setup.py
View file @
60afdbeb
...
...
@@ -4,7 +4,6 @@ from os import walk, listdir
from
setuptools
import
find_packages
from
os.path
import
join
from
setuptools
import
setup
import
csst_proto
def
package_files
(
directory
):
...
...
@@ -20,7 +19,7 @@ with open('README.md', 'r') as file:
LONG_DESCRIPTION
=
file
.
read
()
setup
(
name
=
'csst_dfs_proto'
,
version
=
csst_proto
.
__version__
,
version
=
'0.0.1'
,
author
=
'CSST DFS team.'
,
description
=
'CSST DFS Base Proto library.'
,
long_description
=
LONG_DESCRIPTION
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment