A client library for Jelastic v6.1.3
Project description
jelastic-client
A Jelastic API python library.
Installation
pip3 install jelastic-client --extra-index-url https://__token__:<your_personal_token>@gitlab.hidora.com/api/v4/projects/198/packages/pypi/simple
In that case, the gitlab access token needs to have read_api
scope.
You can also install the package from pypi:
pip3 install jelastic-client
Usage
At the root of this repository, you can run
import jelastic_client
api_url = "https://[hoster-api-host]/1.0/"
api_token = "your-private-access-token"
factory = jelastic_client.JelasticClientFactory(api_url, api_token)
jps_client = factory.create_jps_client()
env_name = "my-jelastic-client-test"
jps_client.install_from_file("./test/data/valid_manifest.jps", env_name)
control_client = factory.create_control_client()
env_info = control_client.get_env_info(env_name)
assert env_info.is_running() is True
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
jelastic-client-1.3.25.tar.gz
(11.1 kB
view hashes)
Built Distribution
Close
Hashes for jelastic_client-1.3.25-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac91fb36b2f70afbdae7d163a89c164be51c01054a557c98e2c600d3a2a90977 |
|
MD5 | 069dce070d5542d11ff6fd7b7a729719 |
|
BLAKE2b-256 | 6e33fdc29c9cb9e6b7ac8cd87fde8e119fcdf07ebfe2d690ee5d91cb2f59cf42 |