Home Module vs Package vs Library vs Framework
Post
Cancel

Module vs Package vs Library vs Framework

Module is a file which contains various Python functions and global variables. It is simply just .py extension file which has python executable code.

Package is a collection of modules. It must contains an init.py file as a flag so that the python interpreter processes it as such. The init.py could be an empty file without causing issues.

Library is a collection of packages.

Framework is a collection of libraries. This is the architecture of the program.

Application is an application. Yah, I’m sure about this one.

This post is licensed under CC BY 4.0 by the author.

Trending Tags