Exemple #1
0
 def query(self, arg: core.DStr) -> core.DStr:
     return self.operate(
         core.Operation(
             "core",
             "Box",
             core.opTuple("query", [arg])
         )
     )
Exemple #2
0
 def is_open(self) -> core.DBool:
     return self.operate(
         core.Operation(
             "core",
             "Box",
             core.opTuple("is_open", [])
         )
     )
Exemple #3
0
 def op(self, arg: core.DStr) -> None:
     return self.operate(
         core.Operation(
             "core",
             "Box",
             core.opTuple("op", [arg])
         )
     )
Exemple #4
0
    def put(self, candy: str) -> core.DNone:
        arg = core.DStr(candy)

        return self.operate(
            core.Operation("core", "Box", core.opTuple("put", [arg])))
Exemple #5
0
 def get(self) -> core.DStr:
     return self.operate(
         core.Operation("core", "Box", core.opTuple("get", [])))
Exemple #6
0
 def close(self) -> core.DNone:
     return self.operate(
         core.Operation("core", "Box", core.opTuple("close", [])))
Exemple #7
0
 def open(self) -> core.DNone:
     return self.operate(
         core.Operation("core", "Box", core.opTuple("open", [])))
Exemple #8
0
 def startup(self) -> core.Operation:
     return core.Operation("core", "ND", core.opTuple("startup", None))
Exemple #9
0
 def send(self, package: bytes, port: int) -> core.Operation:
     return core.Operation("core", "ND",
                           core.opTuple("send", [package, port]))
Exemple #10
0
 def shutdown(self) -> core.Operation:
     return core.Operation("core", "ND", core.opTuple("shutdown", None))