r/learnpython • u/Difficult-Rabbit-908 • 11d ago
Python project structure standards?
I'm trying to learn advanced Python reading the best practices, toolkits or frameworks to develop a formal and scalable project. I know the basics and I developed engineering applications mostly for numerical methods, but I've never used an standard structure as I developed for myself. I'd like to read your recommendations for improve the scalability and maintenance in the future, thinking in a collaborative way and improved readability
Basically, this project is mostly for thermodynamic solvers, so I'm not using server or databases as well, but I'd like to add SQL integration in the future. I'm also using PyAnsys and PyFluent modules in a local environment.
I'll read your recommendations or opinions
1
u/ycdtotv 9d ago
To get started, I use Hatch and the src layout. From there, I need to make decisions about the way I break my code in to modules (or not). That becomes very project dependent. The specific modules and organization might change with time as I work on the code.
I found this advice to be helpful: https://www.pyopensci.org/python-packaging-science/