Skip to main content

OARepo doi generator

Project description

OARepo DOI Generator

image image image image

Instalation

    pip install oarepo-doi-generator

Usage

OARepo module for DataCite DOI registration.

Functions

doi_request(record)

Creates a new identifier in record metadata with empty value, scheme as doi and with status set as requested.

doi_approved(record, pid_type)

For DOI registration. A new DOI is registered on DataCite and attached to record metadata as a new identifier. If test_mode sets on True, the registration is performed only on DataCite testing server.

Configuration

must be present in config:

DOI_DATACITE_USERNAME

Repository account credentials for DataCite in the format "xxx.yyy"

DOI_DATACITE_PASSWORD

Password for DataCite

DOI_DATACITE_PREFIX

Registered DOI prefix

DOI_TEST_MODE

If true, dois will be generated only on test server

optional:

DOI_DATACITE_PUBLISHER

For metadata that are generated for record and associated with registered DOI. If publisher is specified in record metadata, this variable is not used. Default value: CESNET

DOI_DATACITE_TEST_URL

Only for test purposes. URL that is allowed in the domains settings of the test repository.

Changes

Version 1.0.0

  • Initial public release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oarepo_doi_generator-1.0.8.tar.gz (17.6 kB view hashes)

Uploaded Source

Built Distribution

oarepo_doi_generator-1.0.8-py3-none-any.whl (12.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page