Package: sitreps-python-api
sitreps-python-apiNo description provided (generated by Openapi Generatorhttps://github.com/openapitools/openapi-generator)This Python package is automatically generated by theOpenAPI Generatorproject:API version: 0.1.0Package version: 1.2.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:importsitreps_python_apiSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)Then import the package:importsitreps_python_apiGetting StartedPlease follow theinstallation procedureand then run the following:importtimeimportsitreps_python_apifrompprintimportpprintfromsitreps_python_api.apiimportcode_coverage_apifromsitreps_python_api.model.code_coverage_createimportCodeCoverageCreatefromsitreps_python_api.model.http_validation_errorimportHTTPValidationError# Defining the host is optional and defaults to http://localhost# See configuration.py for a list of all supported configuration parameters.configuration=sitreps_python_api.Configuration(host="http://localhost")# Enter a context with an instance of the API clientwithsitreps_python_api.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=code_coverage_api.CodeCoverageApi(api_client)code_coverage_create=CodeCoverageCreate(time=dateutil_parser('1970-01-01T00:00:00.00Z'),coverage=3.14,repository_id=1,)# CodeCoverageCreate |try:# Create Code Coverageapi_response=api_instance.create_code_coverage(code_coverage_create)pprint(api_response)exceptsitreps_python_api.ApiExceptionase:print("Exception when calling CodeCoverageApi->create_code_coverage:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttp://localhostClassMethodHTTP requestDescriptionCodeCoverageApicreate_code_coveragePOST/api/v1/coverage/Create Code CoverageCodeCoverageApiread_code_coverageGET/api/v1/coverage/Read Code CoverageCountLineOfCodeApicreate_clocPOST/api/v1/cloc/Create ClocCountLineOfCodeApiread_clocGET/api/v1/cloc/Read ClocIntegrationTestsApicreate_integration_testPOST/api/v1/integrationtest/Create Integration TestIntegrationTestsApiread_integration_testGET/api/v1/integrationtest/Read Integration TestJiraApicreate_jiraPOST/api/v1/jira/Create JiraJiraApiread_jiraGET/api/v1/jira/Read JiraProjectGroupsApicreate_project_groupPOST/api/v1/projectgroups/Create Project GroupProjectGroupsApidelete_project_groupDELETE/api/v1/projectgroups/{id}Delete Project GroupProjectGroupsApiread_project_groupGET/api/v1/projectgroups/{id}Read Project GroupProjectGroupsApiread_project_groupsGET/api/v1/projectgroups/Read Project GroupsProjectGroupsApiupdate_project_groupPUT/api/v1/projectgroups/{id}Update Project GroupProjectsApicreate_projectPOST/api/v1/projects/Create ProjectProjectsApidelete_projectDELETE/api/v1/projects/{id}Delete ProjectProjectsApiread_projectGET/api/v1/projects/Read ProjectProjectsApiread_project_idGET/api/v1/projects/{id}Read Project IdProjectsApiupdate_projectPUT/api/v1/projects/{id}Update ProjectRepositoriesApicreate_repositoryPOST/api/v1/repositories/Create RepositoryRepositoriesApidelete_repositoryDELETE/api/v1/repositories/{id}Delete RepositoryRepositoriesApiread_repositoryGET/api/v1/repositories/Read RepositoryRepositoriesApiread_repository_idGET/api/v1/repositories/{id}Read Repository IdRepositoriesApiupdate_repositoryPUT/api/v1/repositories/{id}Update RepositorySonarQubeApicreate_sonarqubePOST/api/v1/sonarqube/Create SonarqubeSonarQubeApiread_sonarqubeGET/api/v1/sonarqube/Read SonarqubeUnitTestsApicreate_unittestsPOST/api/v1/unittests/Create UnittestsUnitTestsApiread_unittestsGET/api/v1/unittests/Read UnittestsDefaultApidump_dataPOST/api/v1/Dump DataDefaultApiget_statusGET/api/v1/Get StatusDocumentation For ModelsCLOCCreateCodeCoverageCreateDataHTTPValidationErrorIntegrationTestCreateJiraCreateLocationInnerProjectCreateProjectGroupCreateProjectGroupUpdateRepositoryCreateRepositoryUpdateSonarQubeCreateUnitTestCreateValidationErrorDocumentation For AuthorizationAll endpoints do not require authorization.AuthorNotes for Large OpenAPI documentsIf the OpenAPI document is large, imports in sitreps_python_api.apis and sitreps_python_api.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 sitreps_python_api.api.default_api import DefaultApifrom sitreps_python_api.model.pet import PetSolution 2:
Before importing the package, adjust the maximum recursion limit as shown below:import sys
sys.setrecursionlimit(1500)
import sitreps_python_api
from sitreps_python_api.apis import *
from sitreps_python_api.models import *