Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
from habanero import Crossref
cr = Crossref()
cr.filter_details()
cr.filter_details("members")
cr.filter_details("funders")
# Get descriptions for each filter
x = cr.filter_details()
[ z['description'] for z in x.values() ]
'''
types = ["works", "members", "funders"]
if type not in types:
raise ValueError("'type' must be one of " + "', '".join(types))
return {
'works': works_filter_details,
'members': members_filter_details,
'funders': funders_filter_details
}[type]