Replies: 6 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
-
I'm personally a fan of maximizing modularity like so:
where each category of bot features makes a parent module and each feature makes a submodule. Very few Discord bots actually use this model or something similar, which could be related to A) some flaw that I'm unaware of or B) the relatively lower scope of mentioned open-source bots. I hope its B, but if anyone finds a problem with the module system, please reach out. |
Beta Was this translation helpful? Give feedback.
-
Chatgpt additions: The project structure you have is already well-structured and follows good practices. However, there are a few things that could potentially be improved or added, depending on the needs of your project:
Remember, the best project structure will often depend on the specific needs and logistics of your project, so not all of these suggestions may be necessary or useful in your case. |
Beta Was this translation helpful? Give feedback.
-
How do you guys feel about deploying our code through docker? it could really streamline deployment. This would allow anyone and everyone who wants to help contribute to be able to do so with as little mental overhead as possible. |
Beta Was this translation helpful? Give feedback.
-
my proposed structure |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Traditional python project structures:
https://docs.python-guide.org/writing/structure/
https://dagster.io/blog/python-project-best-practices
https://medium.com/mlearning-ai/a-practical-guide-to-python-project-structure-and-packaging-90c7f7a04f95
https://github.com/pypa/sampleproject
https://www.pythonbynight.com/blog/starting-python-project
https://realpython.com/python-application-layouts/
https://waterprogramming.wordpress.com/2023/01/18/structuring-a-python-project-recommendations-and-a-template-example/
https://packaging.python.org/en/latest/discussions/src-layout-vs-flat-layout/
https://carlosgrande.me/my-python-project-cheatsheet/
https://www.the-analytics.club/python-project-structure-best-practices/
https://www.w3docs.com/snippets/python/what-is-the-best-project-structure-for-a-python-application.html
https://awaywithideas.com/the-optimal-python-project-structure/
https://dev.to/codemouse92/dead-simple-python-project-structure-and-imports-38c6
https://github.com/yngvem/python-project-structure
Beta Was this translation helpful? Give feedback.
All reactions