Skip to main content

This is a Python client and command-line interface for the DLRN API.

It has been automatically generated by the Swagger Codegen project:

  • API version: 1.0.0

  • Package version: 1.0.0

  • Build package: io.swagger.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 or 3.6+

Installation & Usage

You can install directly from Github

pip install git+https://github.com/softwarefactory-project/dlrnapi_client.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/softwarefactory-project/dlrnapi_client.git)

In order to support kerberos authentication, you need to execute this command (you need to have gcc and krb5-devel packages installed)

pip install "dlrnapi_client[kerberos] @ git+https://github.com/softwarefactory-project/dlrnapi_client.git"

Then import the package:

import dlrnapi_client

Or you can run the client directly:

$ dlrnapi -h

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 dlrnapi_client

Or you can run the client directly:

$ dlrnapi -h

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import dlrnapi_client
from dlrnapi_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = dlrnapi_client.DefaultApi()
params = dlrnapi_client.Params() # Params | The JSON params to post

try:
    api_response = api_instance.api_last_tested_repo_get(params)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->api_last_tested_repo_get: %s\n" % e)

Documentation for command-line

Documentation for API Endpoints

All URIs are relative to http://127.0.0.1:5000

Class

Method

HTTP request

Description

DefaultApi

api_last_tested_repo_get

GET /api/last_tested_repo

DefaultApi

api_last_tested_repo_post

POST /api/last_tested_repo

DefaultApi

api_promote_post

POST /api/promote

DefaultApi

api_promote_batch_post

POST /api/promote-batch

DefaultApi

api_promotions_get

POST /api/promotions

DefaultApi

api_build_metrics_get

GET /api/metrics/builds

DefaultApi

api_remote_import_post

POST /api/remote/import

DefaultApi

api_repo_status_get

GET /api/repo_status

DefaultApi

api_report_result_post

POST/api/report_result

DefaultApi

api_agg_status_get

GET/api/agg_status

Documentation For Models

Documentation For Authorization

basicAuth

  • Type: HTTP basic authentication

Environment variables

  • DLRNAPI_AUTHMETHOD: set the auth method to authenticate against the DLRN API. Choices: kerberosAuth and basicAuth.

  • DLRNAPI_USERNAME: set the username to authenticate against the DLRN API when basicAuth method is selected.

  • DLRNAPI_PASSWORD: set the password to authenticate against the DLRN API when basicAuth method is selected.

  • DLRNAPI_PRINCIPAL: set the server principal used to request the token when kerberosAuth method is selected to auth against the DLRN API. API when basicAuth method is selected.

  • SSL_VERIFY: set to ‘0’ to deactivate SSL verification when talking to the DLRN API.

  • SSL_CA_BUNDLE: when set to a value, it will instruct the client to use that file to verify SSL certificates, instead of the default CA bundle provided by certifi.

Author

Javier Peña (jpena@redhat.com)

Metadata

Release files for dlrnapi-client 0.13.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dlrnapi-client 0.13.1
File Size Uploaded
dlrnapi_client-0.13.1.tar.gz 48.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dlrnapi-client 0.13.1
File Interpreter ABI Platform
dlrnapi_client-0.13.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 101.8 kB

Release files / dlrnapi_client-0.13.1.tar.gz

Download URL dlrnapi_client-0.13.1.tar.gz
Size 48.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5fe2c16abd7c88446b524b3d029afc6856f44ee9efaf31dcb5557f5880b44951
BLAKE2b-256 checksum
How to use checksums
032d7ead9e5af54a8342ae4b3ed763a8db6ee8afcc1768a307a311ec28a92e46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release files / dlrnapi_client-0.13.1-py2.py3-none-any.whl

Download URL dlrnapi_client-0.13.1-py2.py3-none-any.whl
Size 53.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b3858d93f5fd3513119ff4fe923dbcff58f8abc7835dc773aefff07d0aca4262
BLAKE2b-256 checksum
How to use checksums
9a5114430ecbfe34f1588ed709395baaeb1fa93194861609923b26866f51e915
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.13.1 This release

2 release files

0.13.0

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.9.1

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

1 release file

0.3.0

2 release files

0.2.0

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page