Skip to main content

Client for Test Automation (No submodules)

Project description

automation-test-with-submodule-python-sdk

SDKs (no submodules) to test automation workflows.

PyPI README.md

Table of Contents

Requirements

Python >=3.7

Installation

pip install automation-test-with-submodule-python-sdk==1.0.10

Getting Started

from pprint import pprint
from automation_test_with_submodule import AutomationTestWithSubmodule, ApiException

automationtestwithsubmodule = AutomationTestWithSubmodule()

try:
    # Get a simple greeting!!!
    hello_response = automationtestwithsubmodule.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_with_submodule import AutomationTestWithSubmodule, ApiException

automationtestwithsubmodule = AutomationTestWithSubmodule()


async def main():
    try:
        # Get a simple greeting!!!
        hello_response = await automationtestwithsubmodule.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_with_submodule import AutomationTestWithSubmodule, ApiException

automationtestwithsubmodule = AutomationTestWithSubmodule()

try:
    # Get a simple greeting!!!
    hello_response = automationtestwithsubmodule.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

automationtestwithsubmodule.greetings.hello

Get a simple greeting!!!

🛠️ Usage

hello_response = automationtestwithsubmodule.greetings.hello()

🔄 Return

HelloResponse

🌐 Endpoint

/hello get

🔙 Back to Table of Contents


Author

This Python package is automatically generated by Konfig

Project details


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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file automation_test_with_submodule_python_sdk-1.0.10.tar.gz.

File metadata

File hashes

Hashes for automation_test_with_submodule_python_sdk-1.0.10.tar.gz
Algorithm Hash digest
SHA256 0f63e8927cc378c3b70f5f97e01e0593171d3c317bd95e0a7c28ccabc4f3a55d
MD5 5ce04b203981ef17deb91845581b75d4
BLAKE2b-256 70946486fcbd7aa9073809b9e8f7ccb726399617c1cc7f53d32a8d81a000a355

See more details on using hashes here.

File details

Details for the file automation_test_with_submodule_python_sdk-1.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for automation_test_with_submodule_python_sdk-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 935555d11e5b41ebbbd576d2af32de7d6dc997ba2e0ddd326b18fa9ce9b62d1b
MD5 8a20268ec203378aaa7d851d829630e1
BLAKE2b-256 3448c649cb6061c0c82d0d7a3c660d7d62980d4e1907890a80b5cdec25454599

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page