Catalog PyPI
PACKAGE EXPLORERView in registry

absarv3testing8

PyPI

Python client library for RESTAPI SDK

Versions collected1
Direct dependencies5From release 1.1.1
Last observed20 Oct, 17:36 UTC

README

Version 1.1.1 documentation

Getting Started with RESTAPI SDK

Install the Package

The package is compatible with Python versions 2 >=2.7.9 and 3 >=3.4. Install the package from PyPi using the following pip command:

pip install absarv3testing8==1.1.1

You can also view the package at: https://pypi.python.org/pypi/absarv3testing8

Test the SDK

You can test the generated SDK and the server with test cases. unittest is used as the testing framework and nose is used as the test runner. You can run the tests as follows:

Navigate to the root directory of the SDK and run the following commands

pip install -r test-requirements.txt
nosetests

Initialize the API Client

Note: Documentation for the client can be found here.

The following parameters are configurable for the API Client:

ParameterTypeDescription
content_typestringbody content type for post request
Default: 'application/json'
accept_languagestringresponse format
Default: 'application/json'
base_urlstringDefault: 'https://localhost:443'
environmentEnvironmentThe API environment.
Default: Environment.PRODUCTION
http_client_instanceHttpClientThe Http Client passed from the sdk user for making requests
override_http_client_configurationboolThe value which determines to override properties of the passed Http Client from the sdk user
timeoutfloatThe value to use for connection timeout.
Default: 60
max_retriesintThe number of times to retry an endpoint call if it fails.
Default: 0
backoff_factorfloatA backoff factor to apply between attempts after the second try.
Default: 2
retry_statusesArray of intThe http statuses on which retry is to be done.
Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]
retry_methodsArray of stringThe http methods on which retry is to be done.
Default: ['GET', 'PUT']

The API client can be initialized as follows:

from restapisdk.restapisdk_client import RestapisdkClient
from restapisdk.configuration import Environment

client = RestapisdkClient(
    content_type='application/json',
    accept_language='application/json',
    environment=Environment.PRODUCTION,
    base_url = 'https://localhost:443',)

Authorization

This API uses OAuth 2 Bearer token.

List of APIs

Classes Documentation

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.1.12 Feb 20225

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:36 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:f100757b8015d9f9575e5938552e6dd1830e907d6763362b174c99f2ff3d43ee