Skip to content
This repository was archived by the owner on Jun 24, 2020. It is now read-only.

dice-cyfronet/atmosphere-python-client

Folders and files

NameName
Last commit message
Last commit date
Mar 30, 2016
Feb 6, 2015
Mar 30, 2016
Feb 6, 2015
Jun 26, 2014
Feb 6, 2015
Feb 6, 2015
Feb 6, 2015
Feb 6, 2015
Oct 15, 2015
Feb 6, 2015
Apr 28, 2014
Oct 15, 2015

Repository files navigation

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!