Python script to calculate and save the payroll deductions for employees of a small business in Oklahoma.
Install Python3.
python3 -m venv env
source ./env/bin/activate
python3 -m pip install requests
Run the script without command line arguments. The program will prompt you for input.
python3 oklahoma-payroll.py
Payroll date (MM/DD/YYYY): 06/22/2020
Intuit filename: sample_input.csv
Successfully proccessed payroll for Peter Stone!
Successfully proccessed payroll for Mike Brown!
...
Alternatively, run the script with command line arguments.
python3 oklahoma-payroll.py 06/22/2020 sample_input.csv
Successfully proccessed payroll for Peter Stone!
Successfully proccessed payroll for Mike Brown!
...
When onboarding a new employee, after they fill out their 2020 W-4, add their information to this CSV.
NOTE: The program only supports the format "FirstName LastName" for the
name
field. This will not work for individuals with two first names or two last names (non-hyphenated).
To create an executable, run:
pip3 install pyinstaller
pyinstaller --onefile oklahoma-payroll.py
To run:
./dist/oklahoma-payroll
Or:
./dist/oklahoma-payroll 06/22/2020 sample_input.csv