atmosphere-python-client

Atmosphere REST API client written in python


Keywords
atmosphere
License
Other
Install
pip install atmosphere-python-client==1.0

Documentation

atmosphere-python-client

Build Status Code Health Codacy Badge Coverage Status

PyPI PyPI PyPI PyPI

This library provides a wrapper of REST operation performed by Atmosphere.

Installation

Download stable version and run command python setup.py install.

If you have installed atmosphere-client-python, if any problem occurs, run python setup.py clean and/or pip uninstall atmosphere-client-python.

Examples

Copy file config/main-example.ini to config/main.ini and config/secure-example.ini to config/secure.ini. Edit these files. You will find it in examples/.

Usage

Config

To use atmosphere API you need to have API_PRIVATE_TOKEN or API_MI_TICKET. Copy file config/main-example.ini to config/main.ini and config/secure-example.ini to config/secure.ini. Edit these files. You need to set it via config files, which are loaded via config.add_config_ini().

Example of config files are in config/.

Use in code

import atmosphere.config
atmosphere.config.add_config_ini('path/to/main.ini', 'path/to/secure.ini', 'path/to/other.ini', ...)
from atmosphere.appliance.appliance_configuration_templates import get_all_app_config_temp
get_all_app_config_temp()

That's all!