============
DataCite
============
.. currentmodule:: datacite
.. raw:: html
Python API wrapper for the DataCite Metadata Store API and DataCite 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 MDS API and DataCite REST API.
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:
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:
Please see the `DataCite Testing guide `_ to
know how to test this client with your test credentials.
Metadata Store API
===================
.. automodule:: datacite
:members:
Errors
------
.. automodule:: datacite.errors
:members:
DataCite v3.1 XML generation
============================
.. automodule:: datacite.schema31
:members: dump_etree, tostring, validate
DataCite v4.0 XML generation
============================
.. automodule:: datacite.schema40
:members: dump_etree, tostring, validate
DataCite v4.1 XML generation
============================
.. automodule:: datacite.schema41
:members: dump_etree, tostring, validate
DataCite v4.2 XML generation
============================
.. automodule:: datacite.schema42
: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.
.. include:: ../AUTHORS.rst