How to use the datacite.DataCiteMDSClient function in datacite

To help you get started, we’ve selected a few datacite 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 CenterForOpenScience / osf.io / website / identifiers / clients / datacite.py View on Github external
def __init__(self, base_url, prefix, client=None):
        self.base_url = base_url
        self.prefix = prefix
        self._client = client or DataCiteMDSClient(
            url=self.base_url,
            username=settings.DATACITE_USERNAME,
            password=settings.DATACITE_PASSWORD,
            prefix=self.prefix
        )
github CenterForOpenScience / osf.io / website / identifiers / clients / datacite.py View on Github external
def __init__(self, base_url, prefix, client=None):
        self.base_url = base_url
        self.prefix = prefix
        self._client = client or DataCiteMDSClient(
            url=self.base_url,
            username=settings.DATACITE_USERNAME,
            password=settings.DATACITE_PASSWORD,
            prefix=self.prefix
        )
github inveniosoftware / invenio / invenio / modules / pidstore / providers / datacite.py View on Github external
def __init__(self):
        """Initialize provider."""
        self.api = DataCiteMDSClient(
            username=cfg.get('CFG_DATACITE_USERNAME'),
            password=cfg.get('CFG_DATACITE_PASSWORD'),
            prefix=cfg.get('CFG_DATACITE_DOI_PREFIX'),
            test_mode=cfg.get('CFG_DATACITE_TESTMODE', False),
            url=cfg.get('CFG_DATACITE_URL')
        )