Python x MySQL x Excel by Zinglecode

Example Python codes that do the processes between MySQL database and Excel spreadsheet files.

YouTube videos

Setup database table

products table structure
products table structure

product_notes table structure
product_notes table structure

categories table structure
categories table structure

hashtags table structure
hashtags table structure

products_hashtags table structure
products_hashtags table structure

Install Python 3 and pipenv

  1. Download Python 3 installation file from https://www.python.org/

  2. Install pipenv as global package by this command.

pip install pipenv

Note: for macOS with pre-installed Python 2, use pip3 instead of pip.

Install and run project by PyCharm

  1. Download this project.

  2. Open PyCharm and choose File -> Open... -> Then select project folder

  3. Fix any warning recommended by PyCharm.

  4. Make sure that every project packages is installed, by open PyCharm Terminal and type command.

pipenv install
  1. Open "main.py", right click on code area, select Run 'main'

  2. Program will inform you, to type one file name from "scripts" folder to be run.

Install and run project by CLI

  1. Download this project

  2. Open Terminal or Command Prompt at project folder, then install packages.

pipenv install
  1. Activate pipenv environment.
pipenv shell
  1. Run "main.py"
python main.py
  1. Program will inform you, to type one file name from "scripts" folder to be run.

GitHub

https://github.com/potchangelo/python-mysql-excel