Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

Structuring a Python Application (Summary)

You’ve seen example layouts for a number of different application types:

  • One-off Python scripts
  • Installable single packages
  • Larger applications with internal packages
  • Django web applications
  • Flask web applications

You now have the tools to successfully prevent coder’s block by building out your application structure so that you’re not staring at a blank canvas trying to figure out where to start. Because Python is largely non-opinionated when it comes to application layouts, you can customize these example layouts to your heart’s content to better fit your use case.

These examples are neither hard-and-fast rules nor the only way to structure your application. With practice, you’ll develop the ability to build and customize your own useful Python application layouts!

Download

Sample Code (.zip)

29.8 KB

Download

Course Slides (.pdf)

1.1 MB

Comments & Discussion

Denis Roy on April 30, 2020

Here are clickable links of the references made in the video:

Different tooling has different expectations:

realpython.com/pipenv-guide

Project Scaffolding:

pyscaffold:

pyscaffold.org

cookiecutter:

cookiecutter.readthedocs.io

Lokman on April 30, 2020

Thanks for the short video. Now I understand the world making packages.

mikesult on May 1, 2020

Thanks Christopher, this was really useful for me to gain a better understanding of Application Structure at many different complexity levels.

Also thanks Denis Roy for the clickable links to the resources.

Anonymous on May 14, 2020

Very helpful information, thank you!

Become a Member to join the conversation.