def get_credit_requirements(course_key, namespace=None):
 requirements = CreditRequirement.get_course_requirements(course_key, namespace)
 return [{'namespace': requirement.namespace, 'name': requirement.name, 'display_name': requirement.display_name, 'criteria': requirement.criteria} for requirement in requirements]

def get_credit_requirements ( course_key , namespace = None ) : requirements = CreditRequirement . get_course_requirements ( course_key , namespace ) return [ { 'namespace' : requirement . namespace , 'name' : requirement . name , 'display_name' : requirement . display_name , 'criteria' : requirement . criteria } for requirement in requirements ]
get credit eligibility requirements of a given course and namespace .