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-locations BAG_INFO_LOCATIONS]
                     [--assets-token ASSETS_TOKEN]
                     [--assets-token-name ASSETS_TOKEN_NAME]
                     [--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-locations, --bag-info-location

Locations of the bag-info YAML/JSON files

Default: []

--assets-token

Private token, to be used when fetching assets

--assets-token-name

Name of the header field for the token [default: “PRIVATE-TOKEN”]

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