Python client for DCI Control Server
Project description
# python-dciclient
The python-dciclient project provides both the python bindings and a CLI to the [DCI Control Server](https://github.com/redhat-cip/dci-control-server)
## Installation
The team behind the project offers repositories for Red Hat/CentOS:
yum -y install https://packages.distributed-ci.io/dci-release.el7.noarch.rpm
Then simply run yum install python-dciclient.
As mentioned above, the package provides two things:
The CLI: a dcictl command is provided. For more details dcictl –help.
The API: a python module one can use to interact with a control server (dciclient.v1.api.*)
## Credentials
Admitting one has valid credentials to use the DCI Control Server platform, there are two way to specify those informations while using dcictl:
A dcirc file:
A file where the necessary credentials are stored. This file needs then to be sourced before using dcictl. Example:
` export DCI_LOGIN=foo export DCI_PASSWORD=bar export DCI_CS_URL=https://api.distributed-ci.io `
or using the API secret method:
` export DCI_CLIENT_ID=<client_type>/<client_id> export DCI_API_SECRET=<api_secret> export DCI_CS_URL=https://api.distributed-ci.io `
Where client_type can currently be remoteci or feeder
Which will allow the user to run the command: dcictl team-list
At the command line level:
- One can pass those informations on the CLI level. Example: dcictl –dci-login jdoe –dci-password jdoe –dci-cs-url ‘https://api.distributed-ci.io’ team-list
or dcictl –dci-client-id <client_type>/<client_id> –dci-api-secret <api_secret> –dci-cs-url ‘https://api.distributed-ci.io’ team-list
Where client_type can currently be remoteci or feeder
For RemoteCIs or Feeders please use the API Secret to authenticate.
## List of available commands
Run dcictl –help command to see the list of the available commands
## License
Apache 2.0
## Author Information
Distributed-CI Team <distributed-ci@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
Built Distribution
File details
Details for the file dciclient-0.5.1.tar.gz
.
File metadata
- Download URL: dciclient-0.5.1.tar.gz
- Upload date:
- Size: 40.0 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 | cebd21f9fb29d1268cba73b29a382407d1675991c73503cb741ca32a8a3c30b1 |
|
MD5 | f7cb36cf183883e0d272eb3c0bf7332d |
|
BLAKE2b-256 | 920d2de4b1111bd93de4ae2f356cc96aad7019f38f4ea2808e528a178fccfdc9 |
File details
Details for the file dciclient-0.5.1-py2-none-any.whl
.
File metadata
- Download URL: dciclient-0.5.1-py2-none-any.whl
- Upload date:
- Size: 83.0 kB
- Tags: Python 2
- 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 | fd5cd4626bd9b910d1065e3e7264242c6561383387f077ec561a2895b92aace3 |
|
MD5 | 549bc7cbc96e6b8b57b37f3ab0419b0c |
|
BLAKE2b-256 | dc0cc5430aad4d065a8f078e91dc8b6f6e83d9ac72bae71a1bda64510f9e7752 |