If you are ever stuck, you can call help on any ProjectsClient object or function
help(ProjectsClient.list)
Help on function list in module gradient.api_sdk.clients.project_client:
list(self)
Get list of your projects
*EXAMPLE*::
gradient projects list
*EXAMPLE RETURN*::
+-----------+------------------+------------+----------------------------+
| ID | Name | Repository | Created |
+-----------+------------------+------------+----------------------------+
| project-id| <name-of-project>| None | 2019-06-28 10:38:57.874000 |
| project-id| <name-of-project>| None | 2019-07-17 13:17:34.493000 |
| project-id| <name-of-project>| None | 2019-07-17 13:21:12.770000 |
| project-id| <name-of-project>| None | 2019-07-29 09:26:49.105000 |
+-----------+------------------+------------+----------------------------+
in sdk::
from gradient.api_sdk.clients import ProjectsClient
api_key = 'your-api-key'
projects_client = ProjectsClient(api_key)
projects_list = projects_client.list()
for project in project_list:
print(project)