Metadata-Version: 2.4
Name: django-datacite
Version: 1.1.1
Summary: A Django app to properly model the DataCite Metadata Schema in a relational database,
Author-email: Jochen Klar <jochen.klar@pik-potsdam.de>
Maintainer-email: Jochen Klar <jochen.klar@pik-potsdam.de>
License: MIT License
        
        Copyright (c) 2022-2026 Potsdam Institute for Climate Impact Research
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Repository, https://github.com/ISI-MIP/django-datacite
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: datacite~=1.1.2
Requires-Dist: Django>=3.2.0
Requires-Dist: requests>=2.25.0
Provides-Extra: dev
Requires-Dist: build; extra == "dev"
Requires-Dist: pre-commit; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Provides-Extra: pytest
Requires-Dist: dj_database_url~=2.0.0; extra == "pytest"
Requires-Dist: pytest~=7.4.0; extra == "pytest"
Requires-Dist: pytest-cov~=4.1.0; extra == "pytest"
Requires-Dist: pytest-django~=4.5.2; extra == "pytest"
Requires-Dist: pytest-dotenv~=0.5.2; extra == "pytest"
Requires-Dist: requests-mock~=1.11.0; extra == "pytest"
Dynamic: license-file

django-datacite
===============

[![Latest release](https://img.shields.io/pypi/v/django-datacite.svg?style=flat)](https://pypi.python.org/pypi/django-datacite/)
[![License](https://img.shields.io/github/license/ISI-MIP/django-datacite?style=flat)](https://github.com/rdmorganiser/django-datacite/blob/main/LICENSE)
[![CI status](https://github.com/ISI-MIP/django-datacite/actions/workflows/ci.yml/badge.svg)](https://github.com/ISI-MIP/django-datacite/actions/workflows/ci.yml)
[![Coverage status](https://coveralls.io/repos/ISI-MIP/django-datacite/badge.svg?branch=main&service=github)](https://coveralls.io/github/ISI-MIP/django-datacite?branch=main)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.18376443.svg)](https://doi.org/10.5281/zenodo.18376443)

A Django app to properly model the [DataCite Metadata Schema](https://schema.datacite.org/) in a relational database, with full integration into the Django admin interface. The app is *slightly* opinionated in a way to make it better usable as a DOI registration database. Names (`creators` and `contributors`) and identifiers (for the resources, but also for `alternativeIdentifiers` and `relatedIdentifiers`) are stored in separate database tables and can be reused for different resources.

This app provides a set of [models](django_datacite/models.py), [admin classes](django_datacite/admin.py), [views](django_datacite/views.py), and utility functions to export and import DataCite files. All options and default settings can be customized in the Django `settings` using the same syntax as in [django_datacite/settings.py](django_datacite/settings.py). Identifiers have an additional `citation` field to store the human readable citation for reuse in other tools.

For a reference integration into a Django project see: https://github.com/ISI-MIP/isimip-doi.

**Although it should cover DataCite 4.3 completely, it is still quite fresh and should be used with care.**
