Implementing the inventory control system
Now that we have a good idea of the overall structure for our system, what our various modules will be, and what functionality they will provide, it's time for us to start implementing the system. Let's start with the data storage module.
Implementing the data storage module
Create a directory somewhere convenient where you can store the source code for the inventory control system. You might want to call this directory inventoryControl
or something similar.
Inside this directory, we will place our various modules and files. Start by creating a new, empty Python source file named datastorage.py
. This Python source file will hold our data storage module.
Note
When selecting the name for our modules, we are following the Python convention of using all lowercase letters. You might find this a bit awkward at first, but it soon becomes easy to read. Please refer to https://www.python.org/dev/peps/pep-0008/#package-and-module-names for more information...