artefactual-labs / mets-reader-writer

Library to parse and create METS files, especially for Archivematica.
https://mets-reader-writer.readthedocs.io
GNU Affero General Public License v3.0
20 stars 13 forks source link

Problem: mets-reader-writer neither reads nor writes #40

Closed jrwdunham closed 6 years ago

jrwdunham commented 6 years ago

The API should reflect the name. Without breaking the existing API, we should proxy fromfile-type class methods to read methods that can take either an XML string or a file-like object or a path. Similarly, there should be a write method where params or context can determine what is output: file on disk or XML string.