DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,673 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Cover image for Module, Package, Library or Framework?
Lucas de Brito
Lucas de Brito

Posted on • Updated on

Module, Package, Library or 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 contain 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.

Reference

Top comments (0)

🌚 Browsing with dark mode makes you a better developer.

It's a scientific fact.