How can I get the list of all projects ?

Retrieve all projects accessible by the user.

projects = aq.project.get_all()

Advanced query

meshql = '# $Project'
projects = aq.query(meshql=meshql)