A short script to generate labels in html
I created this script to be used to easily create labels for iPhones/iPads/Computers/Watches at the Apple Store.
This project makes use of a package.json file that will install some of the dependencies. To use this you need to have Node.js installed. Then, simply type npm install from within the project's root directory.
This will install the following dependencies:
** it is worth noting that I had to install grunt by using the sudo npm install -g grunt-cli command **
Next, you will need Ruby so that you can install SASS by using the command sudo gem install sass
Finally, this project uses Python 2.7.X for the actual script itself.
Once you have everything set up, navigate to the scripts root directory in terminal/command prompt and run the create_labels.py script using python create_labels.py
This will open up the Python GUI and the .csv file. Make the appropriate edits to the .csv file, save, and hit Generate. Your labels should now open up in your default browser.
The Products.csv file contains columns for SKU, DEVICE TYPE, COLOR, CARRIER, SIZE, SPECS, NAME, and # OF LABELS. If any of the columns do not apply to the device you are inputting (ie Carrier for a Computer) simply put n/a
For Device Type, there are three options:
- IPHONE
- IPAD
- CPU
These will determine the size of the label and the formatting of the text.
For Color, there are the following options:
- SPACEGRAY
- SILVER
- GOLD
- WHITE
- YELLOW
- BLUE
- GREEN
- PINK
It is worth noting that the Computers have a default of White background so this field can be left as n/a
For Carrier, iPads will have:
- WIFI
- CELLULAR
And iPhones will have:
- UNLOCKED
- AT&T
- VERIZON
- SPRINT
- T-MOBILE
The Specs column is only applicable for CPU Device Type and is of the format:
Processor | Screen Size | Ram | HD Size
Name is mostly important for the computers, however, it is also important in determining the label size difference between the iPhone 5c, 5s, and 6/6+
Finally, the # of Labels column specifies how many of each label to generate. This can be used if there needs to be labels on multiple sides of a shelf.