Skip to main content

Sitreps Python API.

Project description

sitreps-python-api

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 0.1.0
  • Package version: 1.2.1
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python >=3.6

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import sitreps_python_api

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import sitreps_python_api

Getting Started

Please follow the installation procedure and then run the following:

import time
import sitreps_python_api
from pprint import pprint
from sitreps_python_api.api import code_coverage_api
from sitreps_python_api.model.code_coverage_create import CodeCoverageCreate
from sitreps_python_api.model.http_validation_error import HTTPValidationError
# 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 client
with sitreps_python_api.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_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 Coverage
        api_response = api_instance.create_code_coverage(code_coverage_create)
        pprint(api_response)
    except sitreps_python_api.ApiException as e:
        print("Exception when calling CodeCoverageApi->create_code_coverage: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
CodeCoverageApi create_code_coverage POST /api/v1/coverage/ Create Code Coverage
CodeCoverageApi read_code_coverage GET /api/v1/coverage/ Read Code Coverage
CountLineOfCodeApi create_cloc POST /api/v1/cloc/ Create Cloc
CountLineOfCodeApi read_cloc GET /api/v1/cloc/ Read Cloc
IntegrationTestsApi create_integration_test POST /api/v1/integrationtest/ Create Integration Test
IntegrationTestsApi read_integration_test GET /api/v1/integrationtest/ Read Integration Test
JiraApi create_jira POST /api/v1/jira/ Create Jira
JiraApi read_jira GET /api/v1/jira/ Read Jira
ProjectGroupsApi create_project_group POST /api/v1/projectgroups/ Create Project Group
ProjectGroupsApi delete_project_group DELETE /api/v1/projectgroups/{id} Delete Project Group
ProjectGroupsApi read_project_group GET /api/v1/projectgroups/{id} Read Project Group
ProjectGroupsApi read_project_groups GET /api/v1/projectgroups/ Read Project Groups
ProjectGroupsApi update_project_group PUT /api/v1/projectgroups/{id} Update Project Group
ProjectsApi create_project POST /api/v1/projects/ Create Project
ProjectsApi delete_project DELETE /api/v1/projects/{id} Delete Project
ProjectsApi read_project GET /api/v1/projects/ Read Project
ProjectsApi read_project_id GET /api/v1/projects/{id} Read Project Id
ProjectsApi update_project PUT /api/v1/projects/{id} Update Project
RepositoriesApi create_repository POST /api/v1/repositories/ Create Repository
RepositoriesApi delete_repository DELETE /api/v1/repositories/{id} Delete Repository
RepositoriesApi read_repository GET /api/v1/repositories/ Read Repository
RepositoriesApi read_repository_id GET /api/v1/repositories/{id} Read Repository Id
RepositoriesApi update_repository PUT /api/v1/repositories/{id} Update Repository
SonarQubeApi create_sonarqube POST /api/v1/sonarqube/ Create Sonarqube
SonarQubeApi read_sonarqube GET /api/v1/sonarqube/ Read Sonarqube
UnitTestsApi create_unittests POST /api/v1/unittests/ Create Unittests
UnitTestsApi read_unittests GET /api/v1/unittests/ Read Unittests
DefaultApi dump_data POST /api/v1/ Dump Data
DefaultApi get_status GET /api/v1/ Get Status

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

Notes for Large OpenAPI documents

If 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 DefaultApi
  • from sitreps_python_api.model.pet import Pet

Solution 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 *

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

sitreps_python_api-0.0.2-py2.py3-none-any.whl (107.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sitreps_python_api-0.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sitreps_python_api-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 05d6ef6c11475b45e765bb2ec85a2cf537f4b4d9440c0ab82a35b96d34bef2dd
MD5 d7e64c2d2a50389e929faacb71c5f873
BLAKE2b-256 f49ca64c4104691815fe2b9cd12bd0e12520fa71a5460ee14cd97c384f5ad511

See more details on using hashes here.

Supported by

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