Client for DLRN REST API
Project description
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 and 3.4+
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)
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 |
GET /api/last_tested_repo |
||
DefaultApi |
POST /api/last_tested_repo |
||
DefaultApi |
POST /api/promote |
||
DefaultApi |
POST /api/promotions |
||
DefaultApi |
GET /api/metrics/builds |
||
DefaultApi |
POST /api/remote/import |
||
DefaultApi |
GET /api/repo_status |
||
DefaultApi |
POST/api/report_result |
Documentation For Models
basicAuth
Type: HTTP basic authentication
Environment variables
DLRNAPI_PASSWORD: set the password to authenticate against the DLRN API.
SSL_VERIFY: set to ‘0’ to deactivate SSL verification when talking to the DLRN API.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dlrnapi_client-0.8.1.tar.gz
.
File metadata
- Download URL: dlrnapi_client-0.8.1.tar.gz
- Upload date:
- Size: 40.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/2.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cf9d333124f07b3b9161fcd6d110f1a9cafbb503c1dda6ddbaa5da96abfbdd5 |
|
MD5 | 2ea9abfd35eac582bb172d03c6a57bb4 |
|
BLAKE2b-256 | 54ad01274b2aa69df242c6b6ada268b2284b8eae607dc1a533d064adcfcf5a42 |
File details
Details for the file dlrnapi_client-0.8.1-py2.py3-none-any.whl
.
File metadata
- Download URL: dlrnapi_client-0.8.1-py2.py3-none-any.whl
- Upload date:
- Size: 48.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/2.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | feca458c8ce65d5566b318d21e16a0bf56b85538c39d2e89e3912c8caa549029 |
|
MD5 | 5887bb586886b5de1da2131e5c51d11d |
|
BLAKE2b-256 | 616f1995b87033375f768a0b4ba8d2a2883b7824872b333fc721bf929606b048 |