Feb-29-2024, 04:57 PM
I think we might have misunderstood each other. I'm not saying that other approaches don't require a virtual environment or that they can't be used. I'm also not claiming that a monorepo doesn't work well for Python or that it's more or less efficient.
I'm simply asserting that if I use a monorepo and import my own libraries into other projects/services, I have dependencies redundancy.
Alternatively, I could create a simple directory structure like my_project/modules and my_project/main.py or app.py and import my modules in the app. But if I do it this way, and I have several independent sub-projects/services, each utilizing a script (with the same content) in modules, then I have code redundancy. I need to place the same code in each modules directory.
I hope this explanation is clear.
And one more thing - I assume upfront that I'm omitting something obvious. Blindsight ;p That's why I'm writing this here.
I'm simply asserting that if I use a monorepo and import my own libraries into other projects/services, I have dependencies redundancy.
Alternatively, I could create a simple directory structure like my_project/modules and my_project/main.py or app.py and import my modules in the app. But if I do it this way, and I have several independent sub-projects/services, each utilizing a script (with the same content) in modules, then I have code redundancy. I need to place the same code in each modules directory.
I hope this explanation is clear.
And one more thing - I assume upfront that I'm omitting something obvious. Blindsight ;p That's why I'm writing this here.