Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 591 Bytes

README.md

File metadata and controls

35 lines (22 loc) · 591 Bytes

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)