In the pyodi.apps directory, it seems that most apps are composed by two types of files (modules): an "entrypoint" module that defines the commands of the app, and one module for each command/feature, with the logic inside. For example, the "coco" app has a coco.py entrypoint and two logic modules (coco_merge.py and coco_split.py).
I think this could be refactored into having one package within pyodi.apps for each app (so, for example, a pyodi.apps.coco package).
Possible caveat: this might cause problems if running an entrypoint directly (as __main__)?
In the
pyodi.apps
directory, it seems that most apps are composed by two types of files (modules): an "entrypoint" module that defines the commands of the app, and one module for each command/feature, with the logic inside. For example, the "coco" app has acoco.py
entrypoint and two logic modules (coco_merge.py
andcoco_split.py
).I think this could be refactored into having one package within
pyodi.apps
for each app (so, for example, apyodi.apps.coco
package).Possible caveat: this might cause problems if running an entrypoint directly (as
__main__
)?