Applet subcommands
Hi,
I have a rather technical question regarding applet development.
According to the documentation, I need at least one entrypoint that handles arguments, down/uploads files and executes code. With all templates and example, I either have one entry point that manages the command, or a multiprocessing/scatter-process-gather operation in which new instances are spawned using additional entry points.
In my case, I want to build an applet that does multiple related tasks using python. I imagined something similar to argparse subparser (https://docs.python.org/3/library/argparse.html#sub-commands), like it was used for the dx toolkit command line interface. Ideally, this approach would activate different parsers for different tasks with different entry points and argument requirements.
Is this possible/implemented or are there any best practices for creating an interface like that?
Help would be appreciated!
Kind regards
Comments
0 comments
Please sign in to leave a comment.