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-locations CREATORS_LOCATIONS]
[--contributors-locations 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-locations, --creators-location
Locations of codemeta JSON files for additional creators
Default:
[]- --contributors-locations, --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¶
API¶
- create_parser(add_help=True)¶
- main()¶
- main_deprecated()¶