Metadata-Version: 2.1
Name: jelastic-client
Version: 8.1.1.0
Summary: A client library for Jelastic
Home-page: https://github.com/softozor/jelastic-client
License: MIT
Author: softozor
Author-email: softozor@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: dataclasses-json (==0.5.7)
Requires-Dist: httpx[http2] (>=0.18)
Requires-Dist: pyyaml (>=6.0,<7.0)
Requires-Dist: requests (==2.28.1)
Requires-Dist: types-pyyaml (>=6.0.12.4,<7.0.0.0)
Project-URL: Repository, https://github.com/softozor/jelastic-client
Description-Content-Type: text/markdown

[![Build Status](https://jelasticozor-teamcity.sh1.hidora.com/app/rest/builds/buildType:(id:SharedLibraries_JelasticClient_Integration)/statusIcon)](https://jelasticozor-teamcity.sh1.hidora.com/viewType.html?buildTypeId=SharedLibraries_JelasticClient_Integration&guest=1)


# jelastic-client

A Jelastic API python library.

# Installation

```bash
pip3 install jelastic-client
```

# Usage

At the root of this repository, you can run

```python
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
```

