Retrieve tasks assigned to the current user

me = aq.get_current_user()
my_tasks = me.get_tasks()

Advanced query

me = aq.get_current_user()
meshql = '# <($Assigned)- $Task'
my_tasks = me.traverse(meshql=meshql)

Retrieve tasks assigned within a project of the current user

projectKey = "123456"
me = aq.get_current_user()
my_tasks = me.get_tasks(project_key=projectKey)

Advanced query

projectKey = "123456"
meshql = "# <($Assigned)- $Task AND (<($Child, 5)- item._key == @projectKey AND path.vertices[*].type NONE == 'User')"
aliases = {
  'projectKey': projectKey
}
my_tasks = me.traverse(meshql=meshql, aliases=aliases)

Depending on your project structure, you might adapt the query to your needs