Code Monkey home page Code Monkey logo

sdk-python's Introduction

Kloudio Python Library

  • API version: BETA

The Kloudio Python library provides convinient access to the Kloudio API from Python applications. It can be configured with a on-premise database or a kloudio database.

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

pip install kloudio

(you may need to run pip with root permission: sudo pip install kloudio)

Then import the package:

import kloudio

## Getting Started

Please follow the [installation procedure](#installation--usage) and then run the following:

```python
from __future__ import print_function

import time
import kloudio
from kloudio.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:8089
# See configuration.py for a list of all supported configuration parameters.
configuration = kloudio.Configuration(
    host = "http://localhost:8089"
)

# 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: bearer
configuration = kloudio.Configuration(
    host = "http://localhost:8089",
    api_key = {
        'bearer': 'YOUR_API_KEY'
    }
)
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['bearer'] = 'Bearer'


# Enter a context with an instance of the API client
with kloudio.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = kloudio.ConnectionsApi(api_client)
    connection_id = 'connection_id_example' # str | 

    try:
        # Clone a connection
        api_response = api_instance.clone_connection(connection_id)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling ConnectionsApi->clone_connection: %s\n" % e)
    

Documentation for API Endpoints

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

Class Method HTTP request Description
ConnectionsApi clone_connection POST /v1/connections/{connection_id} Clone a connection
ConnectionsApi create_connection POST /v1/connections Create a connection
ConnectionsApi delete_connection DELETE /v1/connections/{connection_id} Delete a connection
ConnectionsApi retrieve_connection GET /v1/connections/{connection_id} Get a connection
ConnectionsApi retrieve_connections GET /v1/connections Get all connections
ConnectionsApi share_connection POST /v1/connections/share/{connection_id} Share a connection
ConnectionsApi update_connection PUT /v1/connections/{connection_id} Update a connection
JobsApi create_job POST /v1/jobs Create a job
JobsApi delete_job DELETE /v1/jobs/{job_id} Delete a job
JobsApi disable_job POST /v1/jobs/{job_id}/disable Disable a job
JobsApi enable_job POST /v1/jobs/{job_id}/enable Enable a job
JobsApi resume_jobs POST /v1/jobs/resume Resume jobs
JobsApi retrieve_job GET /v1/jobs/{job_id} Get a job
JobsApi retrieve_jobs GET /v1/jobs Get all jobs
JobsApi run_job POST /v1/jobs/{job_id}/run Run a job
JobsApi suspend_jobs POST /v1/jobs/suspend Suspend jobs
JobsApi update_job PUT /v1/jobs Update a job
LicenseApi create_license POST /v1/license Create a license
LicenseApi delete_license DELETE /v1/license/{license_id} Delete a license
LicenseApi get_licenses GET /v1/license Get all licenses
LicenseApi update_license PUT /v1/license Update a license
RegisterApi register_user POST /v1/register Register a user
ReportsApi create_report POST /v1/reports Create a report
ReportsApi delete_report DELETE /v1/reports/{report_id} Delete a report
ReportsApi execute_report POST /v1/reports/{report_id}/execute Execute a report
ReportsApi get_report GET /v1/reports/{report_id} Get a report
ReportsApi get_reports GET /v1/reports Get all report
ReportsApi share_report POST /v1/reports/share/{report_id} Share a report
ReportsApi update_report PUT /v1/reports/{report_id} Update a report

Documentation For Models

Documentation For Authorization

bearer

  • Type: API key
  • API key parameter name: api-key
  • Location: HTTP header

Author

sdk-python's People

Contributors

jagannathsrs 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.