git clone https://github.com/platformsh/platformsh-client-python.git
cd platformsh-client-python
python setup.py install
Set the $PLATFORMSH_API_TOKEN
environment variable and then make calls to the endpoints.
These should be added in pshclient/endpoints.py
. Currently only supports:
- subscriptions
- environments
- projects
- settings
import pshclient
PROJECT_ID = 'your_project_id'
ENVIRONMENT = 'some_environment'
data = pshclient.environments(PROJECT_ID, ENVIRONMENT)