def get_or_create_project(api, project_name):
   """Get or create a CAVATICA project

   Args:
      api: Synapse bridges connection
      project_name: Name of project

   Returns:
      CAVATICA Project

   """
   # pull out target project
   project = [p for p in api.projects.query(limit=100).all() \
              if p.name == project_name]

   if not project:
      print(f'Target project ({project_name}) not found, creating project')
      project = api.projects.create(name=project_name)
   else:
      project = project[0]
   return project