Client for DLRN REST API
Project description
# dlrnapi-client
This is a Python client and command-line interface for the [DLRN](https://github.com/softwarefactory-project/DLRN) API.
It has been automatically generated by the [Swagger Codegen](https://github.com/swagger-api/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
```sh
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:
```python
import dlrnapi_client
```
Or you can run the client directly:
```bash
$ dlrnapi -h
```
### Setuptools
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
```sh
python setup.py install --user
```
(or `sudo python setup.py install` to install the package for all users)
Then import the package:
```python
import dlrnapi_client
```
Or you can run the client directly:
```bash
$ dlrnapi -h
```
## Getting Started
Please follow the [installation procedure](#installation--usage) and then run the following:
```python
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
- [dlrnapi](docs/command-line.md)
## 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**](docs/DefaultApi.md#api_last_tested_repo_get)|**GET** /api/last_tested_repo|
*DefaultApi*|[**api_last_tested_repo_post**](docs/DefaultApi.md#api_last_tested_repo_post)|**POST** /api/last_tested_repo|
*DefaultApi*|[**api_promote_post**](docs/DefaultApi.md#api_promote_post)|**POST** /api/promote|
*DefaultApi*|[**api_promotions_get**](docs/DefaultApi.md#api_promotions_get)|**POST** /api/promotions|
*DefaultApi*|[**api_build_metrics_get**](docs/DefaultApi.md#api_build_metrics_get)|**GET** /api/metrics/builds|
*DefaultApi*|[**api_remote_import_post**](docs/DefaultApi.md#api_remote_import_post)|**POST** /api/remote/import|
*DefaultApi*|[**api_repo_status_get**](docs/DefaultApi.md#api_repo_status_get)|**GET** /api/repo_status|
*DefaultApi*|[**api_report_result_post**](docs/DefaultApi.md#api_report_result_post)|**POST**/api/report_result|
## Documentation For Models
- [CIVote](docs/CIVote.md)
- [Import](docs/ModelImport.md)
- [Params](docs/Params.md)
- [Params1](docs/Params1.md)
- [Params2](docs/Params2.md)
- [Params3](docs/Params3.md)
- [Promotion](docs/Promotion.md)
- [Repo](docs/Repo.md)
## Documentation For Authorization
## 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.
## Author
Javier Peña (jpena@redhat.com)
This is a Python client and command-line interface for the [DLRN](https://github.com/softwarefactory-project/DLRN) API.
It has been automatically generated by the [Swagger Codegen](https://github.com/swagger-api/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
```sh
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:
```python
import dlrnapi_client
```
Or you can run the client directly:
```bash
$ dlrnapi -h
```
### Setuptools
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
```sh
python setup.py install --user
```
(or `sudo python setup.py install` to install the package for all users)
Then import the package:
```python
import dlrnapi_client
```
Or you can run the client directly:
```bash
$ dlrnapi -h
```
## Getting Started
Please follow the [installation procedure](#installation--usage) and then run the following:
```python
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
- [dlrnapi](docs/command-line.md)
## 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**](docs/DefaultApi.md#api_last_tested_repo_get)|**GET** /api/last_tested_repo|
*DefaultApi*|[**api_last_tested_repo_post**](docs/DefaultApi.md#api_last_tested_repo_post)|**POST** /api/last_tested_repo|
*DefaultApi*|[**api_promote_post**](docs/DefaultApi.md#api_promote_post)|**POST** /api/promote|
*DefaultApi*|[**api_promotions_get**](docs/DefaultApi.md#api_promotions_get)|**POST** /api/promotions|
*DefaultApi*|[**api_build_metrics_get**](docs/DefaultApi.md#api_build_metrics_get)|**GET** /api/metrics/builds|
*DefaultApi*|[**api_remote_import_post**](docs/DefaultApi.md#api_remote_import_post)|**POST** /api/remote/import|
*DefaultApi*|[**api_repo_status_get**](docs/DefaultApi.md#api_repo_status_get)|**GET** /api/repo_status|
*DefaultApi*|[**api_report_result_post**](docs/DefaultApi.md#api_report_result_post)|**POST**/api/report_result|
## Documentation For Models
- [CIVote](docs/CIVote.md)
- [Import](docs/ModelImport.md)
- [Params](docs/Params.md)
- [Params1](docs/Params1.md)
- [Params2](docs/Params2.md)
- [Params3](docs/Params3.md)
- [Promotion](docs/Promotion.md)
- [Repo](docs/Repo.md)
## Documentation For Authorization
## 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.
## Author
Javier Peña (jpena@redhat.com)
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
dlrnapi_client-0.5.2.tar.gz
(37.6 kB
view details)
Built Distribution
File details
Details for the file dlrnapi_client-0.5.2.tar.gz
.
File metadata
- Download URL: dlrnapi_client-0.5.2.tar.gz
- Upload date:
- Size: 37.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.14.2 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/2.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0aa026b8df521da06b4987150e9e27216b13fbf275fef8cbebc0d4cb0761efb5 |
|
MD5 | 6de4d537a2d53826aca320964f947fa1 |
|
BLAKE2b-256 | 76fa77cd395881e58850ac262bfdff3f62a30c52559a5aeab81b742bc85b74f6 |
File details
Details for the file dlrnapi_client-0.5.2-py2.py3-none-any.whl
.
File metadata
- Download URL: dlrnapi_client-0.5.2-py2.py3-none-any.whl
- Upload date:
- Size: 43.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.14.2 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/2.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 458c875d2901d865f51e8697d69cd2da55c72fc197c03f16374ac1f60d10cbfe |
|
MD5 | 296a49cba2dd3180a7c70db544d37dcf |
|
BLAKE2b-256 | 1ff8a41c96f1078cc7ef1b7d92888cdf8133d74edcfd04507c4104ace91b27c7 |