Chapter 12. Scripts, Modules, Packages, Libraries, and Applications
While it's easy to work with Python at the
Read-Evaluate-Print Loop (REPL) >>>
prompt, our real goal is to create Python application files. A Python file may be a script, which means it should be able to do some useful work when it's executed by the Python program. A file may be a module, which means that it is designed to be imported to provide useful definitions. A directory of Python modules is a
package. These are formal definitions, implemented by the language.
More generic terms like library, application, or framework aren't formalized by the language. We have ways to implement these common concepts in Python. We can think of a collection of modules or packages as a library. ...
Get Python Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.