Python client to communicate with Kiali server over HTTP(S)
Project description
Introduction
This repository includes the necessary Python client libraries to access Kiali remotely
Installation
To install, run python setup.py install
if you installed from source code, or pip install kiali-client
if using pip.
Create Client Connections
To start a Kiali Client, use KialiClient() method. It requires the host
, username
and password
parameters
>>> from kiali import KialiClient
>>> client = KialiClient(host='kiali-url.com')
Another parameters possible to use with Client
- host (default:
localhost
) - scheme (default:
http
, options:https
andhttp
- port (default:
443
) - auth_type (default:
https-user-password
, options:no-auth
; oauth will be added) - username (default:
admin
) - password (default:
admin
) - verify (default:
False
) - used for verify SSL certificates - swagger_address (default: https://raw.githubusercontent.com/kiali/kiali/master/swagger.json') - address to swagger file
Creating a Request on Kiali CLient
Testing
$ git clone https://github.com/kiali/kiali-python-client.git
# Install Pip env
pip3 install pipenv
# Install Pipenv modules required
$ pipenv install
# Enable Virtualenv
$ pipenv shell
# Update config/env.yaml with kiali hostname and credentials
$ pytest -s tests/
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
kiali-client-0.6.0.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for kiali_client-0.6.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fc80e2b0a4517b8cd4e2b0eedea79ff8e79c49e40a8f5cf97e4313ebfc04071 |
|
MD5 | d1acd3230c567eac13496d774c8a644e |
|
BLAKE2b-256 | ca02c4d36c4284f175f10545161ff7fafed30c7559f8012e1a84cc2ec3690b6a |