How to use the habanero.crossref.filters.funders_filter_details function in habanero

To help you get started, we’ve selected a few habanero examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sckott / habanero / habanero / crossref / crossref.py View on Github external
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]