Coder Social home page Coder Social logo

ronnypfannschmidt / ibutsu-client-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ibutsu/ibutsu-client-python

0.0 2.0 0.0 296 KB

Ibutsu API client written in Python

Home Page: https://ibutsu-project.org/

License: MIT License

Python 99.41% Shell 0.59%

ibutsu-client-python's Introduction

ibutsu-client

A system to store and query test results

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

  • API version: 1.13.4
  • Package version: 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 ibutsu_client

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 ibutsu_client

Getting Started

Please follow the installation procedure and then run the following:

import time
import ibutsu_client
from pprint import pprint
from ibutsu_client.api import artifact_api
from ibutsu_client.model.artifact import Artifact
from ibutsu_client.model.artifact_list import ArtifactList
# Defining the host is optional and defaults to http://localhost/api
# See configuration.py for a list of all supported configuration parameters.
configuration = ibutsu_client.Configuration(
    host = "http://localhost/api"
)



# Enter a context with an instance of the API client
with ibutsu_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = artifact_api.ArtifactApi(api_client)
    id = "id_example" # str | ID of artifact to delete

    try:
        # Delete an artifact
        api_instance.delete_artifact(id)
    except ibutsu_client.ApiException as e:
        print("Exception when calling ArtifactApi->delete_artifact: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost/api

Class Method HTTP request Description
ArtifactApi delete_artifact DELETE /artifact/{id} Delete an artifact
ArtifactApi download_artifact GET /artifact/{id}/download Download an artifact
ArtifactApi get_artifact GET /artifact/{id} Get a single artifact
ArtifactApi get_artifact_list GET /artifact Get a (filtered) list of artifacts
ArtifactApi upload_artifact POST /artifact Uploads a test run artifact
ArtifactApi view_artifact GET /artifact/{id}/view Stream an artifact directly to the client/browser
DashboardApi add_dashboard POST /dashboard Create a dashboard
DashboardApi delete_dashboard DELETE /dashboard/{id} Delete a dashboard
DashboardApi get_dashboard GET /dashboard/{id} Get a single dashboard by ID
DashboardApi get_dashboard_list GET /dashboard Get a list of dashboards
DashboardApi update_dashboard PUT /dashboard/{id} Update a dashboard
GroupApi add_group POST /group Create a new group
GroupApi get_group GET /group/{id} Get a group
GroupApi get_group_list GET /group Get a list of groups
GroupApi update_group PUT /group/{id} Update a group
HealthApi get_database_health GET /health/database Get a health report for the database
HealthApi get_health GET /health Get a general health report
HealthApi get_health_info GET /health/info Get information about the server
ImportApi add_import POST /import Import a file into Ibutsu. This can be either a JUnit XML file, or an Ibutsu archive
ImportApi get_import GET /import/{id} Get the status of an import
ProjectApi add_project POST /project Create a project
ProjectApi get_project GET /project/{id} Get a single project by ID
ProjectApi get_project_list GET /project Get a list of projects
ProjectApi update_project PUT /project/{id} Update a project
ReportApi add_report POST /report Create a new report
ReportApi delete_report DELETE /report/{id} Delete a report
ReportApi download_report GET /report/{id}/download/{filename} Download a report
ReportApi get_report GET /report/{id} Get a report
ReportApi get_report_list GET /report Get a list of reports
ReportApi get_report_types GET /report/types Get a list of report types
ReportApi view_report GET /report/{id}/view/{filename} View a report
ResultApi add_result POST /result Create a test result
ResultApi get_result GET /result/{id} Get a single result
ResultApi get_result_list GET /result Get the list of results.
ResultApi update_result PUT /result/{id} Updates a single result
RunApi add_run POST /run Create a run
RunApi bulk_update POST /runs/bulk-update Update multiple runs with common metadata
RunApi get_run GET /run/{id} Get a single run by ID (uuid required)
RunApi get_run_list GET /run Get a list of the test runs
RunApi update_run PUT /run/{id} Update a single run
TaskApi get_task GET /task/{id} Get the status or result of a task
WidgetApi get_widget GET /widget/{id} Generate data for a dashboard widget
WidgetApi get_widget_types GET /widget/types Get a list of widget types
WidgetConfigApi add_widget_config POST /widget-config Create a widget configuration
WidgetConfigApi delete_widget_config DELETE /widget-config/{id} Delete a widget configuration
WidgetConfigApi get_widget_config GET /widget-config/{id} Get a single widget configuration
WidgetConfigApi get_widget_config_list GET /widget-config Get the list of widget configurations
WidgetConfigApi update_widget_config PUT /widget-config/{id} Updates a single widget configuration

Documentation For Models

Documentation For Authorization

api_key

  • Type: API key
  • API key parameter name: api_key
  • Location: HTTP header

Author

Notes for Large OpenAPI documents

If the OpenAPI document is large, imports in ibutsu_client.apis and ibutsu_client.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 ibutsu_client.api.default_api import DefaultApi
  • from ibutsu_client.model.pet import Pet

Solution 2: Before importing the package, adjust the maximum recursion limit as shown below:

import sys
sys.setrecursionlimit(1500)
import ibutsu_client
from ibutsu_client.apis import *
from ibutsu_client.models import *

ibutsu-client-python's People

Contributors

john-dupuy avatar rsnyman avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.