Package: nomad-cbec-limit-cli
nomad_cbec_limit_cliThis is the API descriptor for the Nomad CBEC, responsible for CBEC customer queries. Read the documentation online atNomad API Suite.Install for node withnpm install nomad_cbec_cliInstall for python withpip install nomad-cbec-cliThis Python package is automatically generated by theOpenAPI Generatorproject:API version: 1.1.1Package version: 1.1.1Build package: org.openapitools.codegen.languages.PythonClientCodegenRequirements.Python >= 3.6Installation & Usagepip installIf the python package is hosted on a repository, you can install directly using:pipinstallgit+https://github.com/GIT_USER_ID/GIT_REPO_ID.git(you may need to runpipwith root permission:sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)Then import the package:importnomad_cbec_limit_cliSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:importnomad_cbec_limit_cliGetting StartedPlease follow theinstallation procedureand then run the following:importtimeimportnomad_cbec_limit_clifrompprintimportpprintfromnomad_cbec_limit_cli.apiimporthealth_api# Defining the host is optional and defaults to https://nomad.samarkand-global.cn/cbec# See configuration.py for a list of all supported configuration parameters.configuration=nomad_cbec_limit_cli.Configuration(host="https://nomad.samarkand-global.cn/cbec")# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure API key authorization: ApiKeyAuthconfiguration.api_key['ApiKeyAuth']='YOUR_API_KEY'# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'# Enter a context with an instance of the API clientwithnomad_cbec_limit_cli.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=health_api.HealthApi(api_client)try:# healthapi_response=api_instance.get_health()pprint(api_response)exceptnomad_cbec_limit_cli.ApiExceptionase:print("Exception when calling HealthApi->get_health:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttps://nomad.samarkand-global.cn/cbecClassMethodHTTP requestDescriptionHealthApiget_healthGET/healthhealthLimitApicbec_limitGET/limitlimitDocumentation For ModelsApiResponseApiResponseDataDocumentation For AuthorizationApiKeyAuthType: API keyAPI key parameter name: APPCODELocation: HTTP headerAuthorpaul@samarkand.globalNotes for Large OpenAPI documentsIf the OpenAPI document is large, imports in nomad_cbec_limit_cli.apis and nomad_cbec_limit_cli.models may fail with a
RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:Solution 1:
Use specific imports for apis and models like:from nomad_cbec_limit_cli.api.default_api import DefaultApifrom nomad_cbec_limit_cli.model.pet import PetSolution 1:
Before importing the package, adjust the maximum recursion limit as shown below:import sys
sys.setrecursionlimit(1500)
import nomad_cbec_limit_cli
from nomad_cbec_limit_cli.apis import *
from nomad_cbec_limit_cli.models import *