facile_rs.create_bagpack

Create a BagIt bag including a DataCite XML file.

Description

This script creates a BagIt bag using the bagit-python package, but also includes a DataCite XML file as recommended by the RDA Research Data Repository Interoperability WG. The assets to be included in the bag are given as positional arguments.

Usage

usage: create_bagpack.py [-h] [--bag-path BAG_PATH]
                         [--bag-info-location BAG_INFO_LOCATIONS]
                         [--datacite-path DATACITE_PATH]
                         [--log-level LOG_LEVEL] [--log-file LOG_FILE]
                         [assets ...]

Positional Arguments

assets

Assets to be added to the bag.

Default: []

Named Arguments

--bag-path

Path to the Bag directory

--bag-info-location

Locations of the bag-info YAML/JSON files

Default: []

--datacite-path

Path to the DataCite XML file

--log-level

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

--log-file

Path to the log file

Module Contents

Functions

create_parser

main

main_deprecated

API

create_parser(add_help=True)
main()
main_deprecated()