api_context.py 212 B

123456789
  1. from apis.api_init import *
  2. class ApiContext:
  3. def set_api_object(self, object):
  4. self.api_object = eval(object)()
  5. def operation(self, request):
  6. return self.api_object.operation(request)