A script for creating Meadow ingest sheets.
In the terminal, navigate to the nul-rdc-scripts folder before running.
poetry run ingest -i INPUT_PATH
poetry run ingest -i INPUT_PATH -o OUTPUT_FILEPATH
poetry run ingest -i INPUT_PATH -l INVENTORY_PATH
poetry run ingest -i INPUT_PATH -x parse
poetry run ingest -i INPUT_PATH -s .md5
poetry run ingest -i INPUT_PATH -d "date/time" "barcode"
input_folder
├── inventory.csv
├── item_1
│ └── item_1.mov
└── item_2
└── item_2.mov
--input INPUT_PATH, -i INPUT_PATH
full path to input folder
--output OUTPUT_PATH, -o OUTPUT_PATH
full path to output csv file (including name and extension). If not specified will use input directory
--load_inventory INVENTORY_PATH, -l INVENTORY_PATH
full path of inventory csv. If not specified the script will look in the input for inventories.
--skip, -s
Defines patterns to ignore.
--description, -d
Use to specify column names to populate Meadow description field with. Can take multiple inputs. If not specified, script will default to looking for the column "inventory_title"
--auxiliary, -x Sets how to parse auxiliary files. Options include: extension (by extension; i.e. ".jpg"), parse (by word; i.e. "_Asset_Front"), none (no aux files). Default is parse.
--prepend_accession, -p Set a string to be added to the beginning of the file accession number when it is generated
| A | P | S | X |
|---|---|---|---|
| -a or _a | -p or _p | -s or _s | -x or _x |
| -am or _am | -pm or _pm | spectrogram | -asset or _asset |
| -am- or _am_ | -pm- or _pm_ | .json | -Asset or _Asset |
| .log | back or Back | ||
| front or Front | |||
| .xml | -can or _can | ||
| .xml.gz | -Can or _Can | ||
| .framemd5 | -ephemera or _ephemera | ||
| .qctool.mkv | -Ephemera or _Ephemera | ||
| dpx.txt | .jpg |
Anything that can't be identified will be set to 'S'
Change directory with cd FILEPATH
- can be relative to current directory
cd folder - or absolute
cd C:\folder\subfolder - go back one folder with
cd .. - and return to your user folder with just
cd
See contents of current directory
dir(WINDOWS)ls(LINUX)
Clear terminal
cls(WINDOWS)clear(LINUX)