I have a program, that performs (in logical terms) 3 different operations. So far i've written a module and a main.py script that imports module's files and executes. Structure:
── jasper
│ ├── crispr.py
│ ├── database.py
│ ├── __init__.py
│ ├── io.py
│ ├── __pycache__
│ ├── trna.py
│ └── utils.py
├── lib
│ └── python3.8
├── lib64 -> lib
├── LICENSE
├── main.py
├── pyvenv.cfg
├── README.md
├── requirements.txt
I call it like that python main.py --args. What I would like to be able is to do something like this python jasper.database --args, python jasper.crispr --args etc. Every single file would have it's own argparse and would perform different task. I would like to do it also after setuptools installation, so the part python jasper.database --args would be executed without python part, like this: $ jasper crispr --args or $ jasper.crispr --args
$ jasper.crispr --argsafter installation.python main.py --jasper.crisprbecomesjasper-crisper --args