OARepo DOI
Configuration example
DATACITE_URL = 'https://api.test.datacite.org/dois'
DATACITE_MAPPING = {'local://documents-1.0.0.json':"common.mapping.DataCiteMappingNRDocs"}
DATACITE_MODE = "AUTOMATIC_DRAFT"
DATACITE_CREDENTIALS = {"generic": {"prefix": "10.23644" , "password": "yyyy", "username": "xxx"}}
DATACITE_CREDENTIALS_DEFAULT = {"prefix": "10.23644" , "password": "yyy", "username": "xxxx"}
DATACITE_SPECIFIED_ID = True
mode types:
AUTOMATIC_DRAFT- dois will be assigned automatically when draft is creadetAUTOMATIC- dois will be assigned automatically after publishON_EVENT- dois are assigned after request
DATACITE_SPECIFIED_ID
- Default value - False
- If true, the doi suffix will be the same as record pid
Mapping example
class DataCiteMappingNRDocs:
def metadata_check(self, data, errors=[]):
data = data["metadata"]
if "title" not in data:
errors.append("Title is mandatory")
return errors
def create_datacite_payload(self, data):
titles = {"title": "xy"}
payload = {
"data": {
"type": "dois",
"attributes": {
}
}
}
payload["data"]["attributes"]["titles"] = titles
return payload
Metadata
Release files for oarepo-doi-tmp 1.0.22
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| oarepo_doi_tmp-1.0.22.tar.gz | 10.6 kB | Without provenance | Details for oarepo_doi_tmp-1.0.22.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oarepo_doi_tmp-1.0.22-py3-none-any.whl | Python 3 | none | any | Details for oarepo_doi_tmp-1.0.22-py3-none-any.whl |
Total release size: 25.7 kB
Release files / oarepo_doi_tmp-1.0.22.tar.gz
| Download URL | oarepo_doi_tmp-1.0.22.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a297cbbe52c77e0c33ebfff74792df0d392c3a52a1427d17e798c1afd262c7cc
|
|
BLAKE2b-256 checksum How to use checksums |
6f89ff5a4b2d18e88d83ff075dc0bc19ad8540eca0b195996d1ca12aa383a667
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / oarepo_doi_tmp-1.0.22-py3-none-any.whl
| Download URL | oarepo_doi_tmp-1.0.22-py3-none-any.whl |
|---|---|
| Size | 15.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d8a76af1ad59b9f0ce688363276b3e6bb62f0a35d01313ca14ea4d7c2915ddcf
|
|
BLAKE2b-256 checksum How to use checksums |
8485ecbd5696435c455b8bee66a0eda06856d27d473b1b5769ee4a6a7b415bc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for oarepo-doi-tmp 1.0.22
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.