DAGDA SEARCH | Back to results | Support

Project File and Directory Layout - Python Wiki

Source: https://wiki.python.org/python/archive/ProjectFileAndDirectoryLayout.html

  1. Python Wiki /
  2. Python Wiki /
  3. Archive /
  4. Project File and Directory Layout
View as Markdown

Project File and Directory Layout

Legacy Wiki Page

This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.

The topic of how to structure your project invokes lots of opinions. Generally speaking, the relatively agreed guidelines include:

These guidelines are partly convention, partly because they align well with Python packaging tools.

The Python tutorial shows an example of a more complex layout: https://docs.python.org/3/tutorial/modules.html#packages

There are many many other places that describe a layout, not all agreeing. Here are a couple:

PreviousProgrammatic Next Promoting Python BOF