OARepo doi generator
Project description
OARepo DOI Generator
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
Built Distribution
Hashes for oarepo_doi_generator-1.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | edbcc195859313d91955177e750289bbeca3a7d831f12ff50fa83e5e029a278d |
|
MD5 | 23fa1f041af2ec92e04a88b8577333e1 |
|
BLAKE2b-256 | c1f6b99ccdbe40a331a837391659eededb4cdbdae6963c886aabf3dc73550c1a |
Hashes for oarepo_doi_generator-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 015fed057d24483a7265ba1554fc5aae7441cb2a7e037b3daa60783c61b8fb48 |
|
MD5 | 1069089460915d41d779034333fec2e5 |
|
BLAKE2b-256 | a9e9e0719ae0b34f12003dd16c2b22b2c73b3a3577a56649ace1a5caf3eaf979 |