Python utility for creating BagIt archives compatible with the APTrust bagging profile.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test_data
test_storage
.gitignore
.travis.yml
LICENSE
README.md
requirements.txt
settings.yaml
test.py
trusty
trusty.py

README.md

trusty

Build Status

This is a Python utility for creating BagIt archives compatiable with the APTrust bagging profile.

Usage:

t = Trusty({'title':'Title','description':'A description','access':'Restricted'})
t.create_aptrust_bags('./path/to/files')

This will create a single bag for each file in the root directory that you provide. Each bag includes the entire directory struture for the file in the data/ folder of the bag. If you provided a folder like /Users/jamie/Desktop/files the files in the data folder would include Users and the other subdirectories.

After creation the bags will be moved to storage location that is set in the settings.yaml file.

Running tests:

python test.py

Running on the command line

./trusty 'Title' 'Description' 'Restricted' /path/to/files