added get

This commit is contained in:
2022-05-19 22:48:53 +02:00
parent a6e4fdfdd3
commit 391a232f2c
2 changed files with 9 additions and 0 deletions

View File

@ -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:

View File

@ -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