Modern Python Projects Transcripts
Chapter: Course conclusion and review
Lecture: Growing Python projects

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Once your simple project starts growing, you have to think how you are going to structure it. When you have only one Python file,
0:07 it's rather simple. You put everything into one folder. Then at some point you will have to split your functions into separate files.
0:15 And when the number of those files grows up, you can put them inside various sub folders.
0:20 For example, you can have tests in the test folder and all the other Python files inside the folder named in the same way as your project.
0:29 And as your project keeps growing, you will start adding sub folders here. For example, if you have a few files related to user authentication,
0:38 you can put them inside the auth folder or when you have some static files, you can put them inside the static folder.
0:45 Having a good folder structure will make it much easier for new developers toe understand what's
0:50 going on in your project, but it will also help you avoid some Python issues like the circular import errors.

Talk Python's Mastodon Michael Kennedy's Mastodon