MCPcopy Create free account
hub / github.com/RustPython/RustPython / ExampleService

Class ExampleService

Lib/xmlrpc/server.py:983–990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

981 import datetime
982
983 class ExampleService:
984 def getData(self):
985 return '42'
986
987 class currentTime:
988 @staticmethod
989 def getCurrentTime():
990 return datetime.datetime.now()
991
992 with SimpleXMLRPCServer(("localhost", 8000)) as server:
993 server.register_function(pow)

Callers 1

server.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected