============
DataCite
============
.. currentmodule:: datacite
.. raw:: html
Python API wrapper for the DataCite REST and Metadata Store APIs as well as
DataCite JSON and XML generation.
Installation
============
The datacite package is on PyPI so all you need is:
.. code-block:: console
$ pip install datacite
Usage
=====
The datacite package implements a Python client for DataCite REST and MDS APIs.
You can find below an usage example of the DataCite REST client API wrapper. Please see
the `DataCite REST API documentation `_
for further information.
.. literalinclude:: ../tests/example/full_rest.py
:language: python
:linenos:
You can find below full usage example of the DataCite MDS client API wrapper. Please see
the `DataCite MDS API documentation `_
for further information.
.. literalinclude:: ../tests/example/full.py
:language: python
:linenos:
Please see the `DataCite Testing guide `_ to
know how to test this client with your test credentials.
DataCite API Wrappers
============================
.. automodule:: datacite
:members:
Errors
------
.. automodule:: datacite.errors
:members:
DataCite v4.5 Metadata Management
==================================
.. automodule:: datacite.schema45
:members: dump_etree, tostring, validate
DataCite v4.3 Metadata Management
==================================
.. automodule:: datacite.schema43
:members: dump_etree, tostring, validate
DataCite v4.2 Metadata Management
==================================
.. automodule:: datacite.schema42
:members: dump_etree, tostring, validate
DataCite v4.1 Metadata Management
==================================
.. automodule:: datacite.schema41
:members: dump_etree, tostring, validate
DataCite v4.0 Metadata Management
==================================
.. automodule:: datacite.schema40
:members: dump_etree, tostring, validate
.. include:: ../CHANGES.rst
.. include:: ../CONTRIBUTING.rst
License
=======
.. include:: ../LICENSE
.. note::
In applying this license, CERN does not waive the privileges and immunities
granted to it by virtue of its status as an Intergovernmental Organization
or submit itself to any jurisdiction.
Thank you to all the `contributors `!