moo.bootstrap.load_verbs
- moo.bootstrap.load_verbs(repo, verb_package, replace=False)
Load the verbs from a Python package into the database and associate them with the given repository.
Verb files should start with a shebang:
#!moo [-h] [--on ON] [--dspec {this,any,none,either}] [--ispec PREP:SPEC [PREP:SPEC ...]] {verb} names [names ...] positional arguments: {verb} names options: -h, --help show this help message and exit --on ON The object to add or modify the verb on --dspec {this,any,none,either} The direct object specifier --ispec PREP:SPEC [PREP:SPEC ...] Indirect object specifiers
- Parameters:
repo (Repository) – The repository object for the dataset.
verb_package (str) – The Python package to load the verbs from.
replace (bool) – If
True, update existing verbs in place rather than skipping them.