Client for Test Automation (No submodules)
Project description
automation-test-no-submodules-python-sdk
SDKs (no submodules) to test automation workflows.
Table of Contents
Requirements
Python >=3.7
Installing
pip install automation-test-no-submodules-python-sdk==1.0.2
Getting Started
from pprint import pprint
from automation_test_no_submodules import AutomationTestNoSubmodules, ApiException
automationtestnosubmodules = AutomationTestNoSubmodules()
try:
# Get a simple greeting
hello_response = automationtestnosubmodules.greetings.hello()
print(hello_response)
except ApiException as e:
print("Exception when calling GreetingsApi.hello: %s\n" % e)
pprint(e.body)
pprint(e.headers)
pprint(e.status)
pprint(e.reason)
pprint(e.round_trip_time)
Async
async
support is available by prepending a
to any method.
import asyncio
from pprint import pprint
from automation_test_no_submodules import AutomationTestNoSubmodules, ApiException
automationtestnosubmodules = AutomationTestNoSubmodules()
async def main():
try:
# Get a simple greeting
hello_response = await automationtestnosubmodules.greetings.ahello()
print(hello_response)
except ApiException as e:
print("Exception when calling GreetingsApi.hello: %s\n" % e)
pprint(e.body)
pprint(e.headers)
pprint(e.status)
pprint(e.reason)
pprint(e.round_trip_time)
asyncio.run(main())
Raw HTTP Response
To access raw HTTP response values, use the .raw
namespace.
from pprint import pprint
from automation_test_no_submodules import AutomationTestNoSubmodules, ApiException
automationtestnosubmodules = AutomationTestNoSubmodules()
try:
# Get a simple greeting
hello_response = automationtestnosubmodules.greetings.raw.hello()
pprint(hello_response.body)
pprint(hello_response.body["message"])
pprint(hello_response.headers)
pprint(hello_response.status)
pprint(hello_response.round_trip_time)
except ApiException as e:
print("Exception when calling GreetingsApi.hello: %s\n" % e)
pprint(e.body)
pprint(e.headers)
pprint(e.status)
pprint(e.reason)
pprint(e.round_trip_time)
Reference
automationtestnosubmodules.greetings.hello
Get a simple greeting
🛠️ Usage
hello_response = automationtestnosubmodules.greetings.hello()
🔄 Return
🌐 Endpoint
/hello
get
Author
This Python package is automatically generated by Konfig
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for automation_test_no_submodules_python_sdk-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2cfc102daecd9772508aeeea53bbcc56e90873d2afd8c129682e0a5adf25e8e |
|
MD5 | 358243d9804c3aeebc5776c0ca6b6f8b |
|
BLAKE2b-256 | 22357384d645161dbef249a9576b35b038c55f20dd38a9783d95821caadf17ae |
Close
Hashes for automation_test_no_submodules_python_sdk-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bc0547e12094a64ca3d3f374d4ec186b0b7d8a9b95b0f6e723d3a64be0013f8 |
|
MD5 | fdc8b1e87e424c6d46bffd37b44e3dab |
|
BLAKE2b-256 | f2bebfd5c4f355cfd7053d5e17ea47d38f36103e2059f3560381a99504b64ae5 |