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: dependency declaration is overly verbose #38

Closed jrwdunham closed 6 years ago

jrwdunham commented 6 years ago

In order to declare a dependency, e.g., in the FSEntry class, we currently write:

premis_object_class = Dependency('premis_object_class', ...)

Providing the dependency name as first argument is unnecessarily verbose given that the same name is provided as the managed class's class attribute, e.g., FSEntry.premis_object_class. It would be better if we could write:

premis_object_class = Dependency(...)