/platformsh-client-python

Client library for the Platform.sh API in Python

Primary LanguagePython

platformsh-client-python

Installation

git clone https://github.com/platformsh/platformsh-client-python.git
cd platformsh-client-python
python setup.py install

Usage

Set the $PLATFORMSH_API_TOKEN environment variable and then make calls to the endpoints.

Endpoints

These should be added in pshclient/endpoints.py. Currently only supports:

  • subscriptions
  • environments
  • projects
  • settings

Example

import pshclient
PROJECT_ID = 'your_project_id'
ENVIRONMENT = 'some_environment'

data = pshclient.environments(PROJECT_ID, ENVIRONMENT)