Setting Up a Python Project

  • Kristian Rother


When we started writing a small program from scratch, we did not worry much about organizing files. We simply collected everything in the same place, and that was fine. The MazeRun game started with a few Python files and a few images. But as the project grew, other files started accumulating. We already have seen various input and output files, tests, test data, configuration files, documentation, and of course more Python modules. How to organize these files properly? And how can we keep dependencies on external Python modules in check? Realizing that only a part of the software consists of code, what are Best Practices for organizing files and structuring a Python project in general?


Virtual Environment Configuration File Project Structure Version Number Version Control System 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Kristian Rother 2017

Authors and Affiliations

  • Kristian Rother
    • 1
  1. 1.BerlinGermany

Personalised recommendations