Add a python test client
This commit is contained in:
parent
9912d4d80d
commit
b3ef892802
24
test-python.py
Executable file
24
test-python.py
Executable file
@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env -S PYTHONPATH=python python
|
||||
|
||||
import pyopenkarotz
|
||||
from pyopenkarotz.api.default_api import DefaultApi # noqa: E501
|
||||
from pyopenkarotz.rest import ApiException
|
||||
|
||||
if __name__ == "__main__":
|
||||
configuration=pyopenkarotz.Configuration()
|
||||
configuration.host = "http://localhost:80"
|
||||
configuration.debug = True
|
||||
|
||||
client = pyopenkarotz.ApiClient(configuration)
|
||||
|
||||
api = pyopenkarotz.api.default_api.DefaultApi(client)
|
||||
|
||||
# Information
|
||||
version = api.version()
|
||||
print version
|
||||
status = api.status()
|
||||
print status
|
||||
|
||||
# State
|
||||
api.wakeup()
|
||||
api.wakeup(silent=1)
|
Loading…
x
Reference in New Issue
Block a user