facile_rs.create_bag

Create a BagIt bag from a list of assets.

Description

This script creates a BagIt bag using the bagit-python package. The assets to be included in the bag are given as positional arguments.

Usage

usage: create_bag.py [-h] [--bag-path BAG_PATH]
                     [--bag-info-location BAG_INFO_LOCATIONS]
                     [--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: []

--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()