zimeon / ocfl-py

OCFL tools in Python
MIT License
20 stars 6 forks source link

Harvard 1: Load existing, standalone OCFL object #105

Open awoods opened 1 year ago

awoods commented 1 year ago

As a part of our bulk download process, we would like to pull down individual OCFL objects from S3 to local disk, then use ocfl-py to inspect and pull out specific files.

This will involve three new functions in ocfl-py:

  1. load individual object
  2. ~list files in object (optional version arg, default head)~
  3. ~get content (arg: logical path, optional version arg)~

This issue is to design the CLI interaction for step 1.

zimeon commented 1 year ago

This is the function I'm not sure about, where is the object loaded to/from?

awoods commented 1 year ago

Actually, I should probably rephrase this ticket (and the other two: https://github.com/zimeon/ocfl-py/issues/106 & https://github.com/zimeon/ocfl-py/issues/107) to remove the "CLI" design comment. I would like to load an object and interact with it by using ocfl-py as an imported library. For this ticket, I would like to load the object into memory as a Python object.