python.dgbpy.deeplearning_apply_serverlib
¶
Module Contents¶
Classes¶
- exception python.dgbpy.deeplearning_apply_serverlib.ExitCommand¶
Bases:
Exception
Common base class for all non-exit exceptions.
- class python.dgbpy.deeplearning_apply_serverlib.ModelApplier(modelfnm, isfake=False)¶
- _get_info(self, modelfnm)¶
- setOutputs(self, outputs)¶
- _usePar(self, pars)¶
- hasModel(self)¶
- getDefaultScaler(self)¶
- getScaler(self, outputs)¶
- doWork(self, inp)¶
- debug_msg(self, a, b=None, c=None, d=None, e=None, f=None, g=None, h=None)¶
- class python.dgbpy.deeplearning_apply_serverlib.Message(selector, sock, addr, applier)¶
- _set_selector_events_mask(self, mode)¶
Set selector to listen for events: mode is ‘r’, ‘w’, or ‘rw’.
- _read(self)¶
- _write(self)¶
- _json_encode(self, obj, encoding)¶
- _json_decode(self, json_bytes, encoding)¶
- _array_decode(self, arrptr, shapes, dtypes)¶
- _create_message(self, *, content_bytes, content_type, content_encoding, arrsize)¶
- _create_response_json_content(self)¶
- _create_response_array_content(self)¶
- _create_response_binary_content(self)¶
- _add_debug_str(self, response)¶
- process_events(self, mask)¶
- read(self)¶
- write(self)¶
- close(self)¶
- process_odheader(self)¶
- process_jsonheader(self)¶
- process_request(self)¶
- create_response(self)¶