1. Official Python Documentation: The Python Tutorial
Chapter 6: Modules. Section 6.1
"More on Modules
" explicitly introduces the concept of modules and the import statement as the mechanism to use them. It states
"definitions from a module can be imported into other modules... This is done with the import statement."
Source: The Python Software Foundation
"The Python Tutorial
" Section 6. Modules.
2. Juniper Official Documentation: The "Junos PyEZ Getting Started Guide" consistently demonstrates the use of the import statement to use the library. For example
the first step in connecting to a device is shown as from jnpr.junos import Device
which is a form of the import statement.
Source: Juniper TechLibrary
"Junos PyEZ Getting Started Guide
" Section: Connect to a Junos Device.
3. University Courseware: MIT OpenCourseWare's "Introduction to Computer Science and Programming in Python" (6.0001) covers modules in Lecture 5. The lecture notes and video explain that import is the command used to gain access to the code within a module.
Source: MIT OpenCourseWare
6.0001SC
Lecture 5: Tuples
Lists
Aliasing
Mutability
Cloning
Section: "Modules."