facile_rs.create_datacite

Create a DataCite XML file from a CodeMeta JSON file.

Description

Create a DataCite XML file following the DataCite Metadata Schema 4.3, from one or several CodeMeta metadata files. The metadata can be provided via a (list of) location(s) given as URL or local file path.

Usage

usage: create_datacite.py [-h] [--codemeta-location CODEMETA_LOCATION]
                          [--creators-location CREATORS_LOCATIONS]
                          [--contributors-location CONTRIBUTORS_LOCATIONS]
                          [--datacite-path DATACITE_PATH] [--no-sort-authors]
                          [--log-level LOG_LEVEL] [--log-file LOG_FILE]

Named Arguments

--codemeta-location

Location of the main codemeta.json JSON file

--creators-location

Locations of codemeta JSON files for additional creators

Default: []

--contributors-location

Locations of codemeta JSON files for additional contributors

Default: []

--datacite-path

Path to the DataCite XML output file

--no-sort-authors

Do not sort authors alphabetically, keep order in codemeta.json file

Default: True

--log-level

Log level (ERROR, WARN, INFO, or DEBUG)

--log-file

Path to the log file

Module Contents

Functions

create_parser

main

API

create_parser()
main()