Closed PeterKraus closed 1 year ago
@ml-evs this should be in a better shape now, please have a look once you have time. One thing that's still open is the set / format of "keywords", related to the Extractor:usage:command
field. We can either push this PR as is and leave #19 open, or resolve #19 there and then add a longer docstring for that attribute here.
This PR re-implements the
usage
andinstallation
attributes of anExtractor
, so that the execution via the api can be fully self-contained using information from within the registry. Closes #19 .usage
reimplemented:usage:method
child entry uses anenum
(currentlycli
andpython
are the only options)usage:setup
child entry for defining e.g.import extractor
orimport package.extractor
statementsusage:command
child entry has a defined set of template words (e.g.$filetype
) and validates its syntaxinstallation
implemented:installation:method
child entry uses anenum
(currentlypip
andconda
are the only options)installation:requirements
childstr
entry optionally contains contents of an "requirements.txt" or yaml fileinstallation:packages
childlist[str]
entry containing packages (versioned, git+https, etc.) to be installed byinstallation:method