Simple python scripts for those everyday, mundane Fedora tasks.
$ pip install pipenv
$ pipenv run pip install pillow==2.6.1 imagehash==0.3 argparse shelve glob
>>> python run.py -o count_objects -dc type -dcs StillImage
>>> python run.py -o count_objects -p vanvactor
By Matching Parent Namespace:
>>> python run.py -p smhc -o harvest_metadata
By Dublincore Field Matching:
>>> python run.py -o harvest_metadata -dc rights -dcs "In Copyright"
Override Default DSID without Touching YAML:
>>> python run.py -o harvest_metadata -p smhc -ds DC
>>> python run.py -o harvest_metadata_no_pages -p smhc -ds MODS
Like above, but for image mime types
>>> python run.py -p smhc -o grab_images -ds JP2
Just like above examples but with a different operator (use for things that aren't images or test).
>>> python run.py -o grab_other -p smhc -ds PDF
You guessed it!
>>> python run.py -o update_gsearch -p smhc
>>> python run.py -o update_gsearch_no_pages -p smhc
Like above, but drop in an xpath value to match on. Only works with mods right now."
>>> python run.py -o update_labels -p swim -xp "//mods:titleInfo[@supplied='yes']/mods:title"
>>> python run.py -o purge_old_dsids -p vanvactor -ds MODS
>>> python run.py -o test_obj_mimes -p vanvactor
>>> python run.py -o find_missing -p vanvactor -ds PDF
>>> python run.py -o grab_foxml -p vanvactor
>>> python run.py -o find_bad_books -p vanvactor