added get
This commit is contained in:
@ -15,6 +15,12 @@ class Client:
|
||||
resp.raise_for_status()
|
||||
return ResponseWrapper(resp)
|
||||
|
||||
def get(self):
|
||||
addr = f"http://{self.host}:{self.port}/"
|
||||
resp = self.session.get(addr)
|
||||
resp.raise_for_status()
|
||||
return ResponseWrapper(resp)
|
||||
|
||||
|
||||
|
||||
class ResponseWrapper:
|
||||
|
@ -32,6 +32,9 @@ class TableAPI:
|
||||
rerun(self.sid)
|
||||
return str(self.dfh.df)
|
||||
|
||||
def GET(self):
|
||||
return str(self.dfh.df)
|
||||
|
||||
|
||||
|
||||
# creating instances here allows to use TableAPI etc. as singletons
|
||||
|
Reference in New Issue
Block a user