added get
This commit is contained in:
@ -15,6 +15,12 @@ class Client:
|
|||||||
resp.raise_for_status()
|
resp.raise_for_status()
|
||||||
return ResponseWrapper(resp)
|
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:
|
class ResponseWrapper:
|
||||||
|
@ -32,6 +32,9 @@ class TableAPI:
|
|||||||
rerun(self.sid)
|
rerun(self.sid)
|
||||||
return str(self.dfh.df)
|
return str(self.dfh.df)
|
||||||
|
|
||||||
|
def GET(self):
|
||||||
|
return str(self.dfh.df)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# creating instances here allows to use TableAPI etc. as singletons
|
# creating instances here allows to use TableAPI etc. as singletons
|
||||||
|
Reference in New Issue
Block a user