Setting Up a Python Project

  • Kristian Rother
Chapter

Abstract

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?

Keywords

Excavation Prefix Suffix 

Copyright information

© Kristian Rother 2017

Authors and Affiliations

  • Kristian Rother
    • 1
  1. 1.BerlinGermany

Personalised recommendations