{High-level project description goes here}
The recommended way to install the PEARS Partnerships Data Entry script is through git, which can be downloaded here. Once downloaded, run the following command:
git clone https://github.com/jstadni2/pears_partnerships_data_entry
Alternatively, this repository can be downloaded as a zip file via this link: https://github.com/jstadni2/pears_partnerships_data_entry/zipball/master/
This repository is designed to run out of the box on a Windows PC using Docker and the /example_inputs and /example_outputs directories. To run the script in its current configuration, follow this link to install Docker Desktop for Windows.
With Docker Desktop installed, this script can be run simply by double-clicking the run_script.bat
file in your local directory.
The run_script.bat
file can also be run in Command Prompt by entering the following command with the appropriate path:
C:\path\to\pears_partnerships_data_entry\run_script.bat
The following steps are required to execute the PEARS Partnerships Data Entry script using your organization's PEARS data:
- Contact PEARS support to set up an AWS S3 bucket to store automated PEARS exports.
- Download the automated PEARS exports. Illinois Extension's method for downloading exports from the S3 is detailed in the PEARS Nightly Export Reformatting script.
- Set the appropriate input and output paths in
pears_partnerships_data_entry.py
andrun_script.bat
.- The Input Files and Output Files sections provide an overview of required and output data files.
- Copying input files to the build context would enable continued use of Docker and
run_script.bat
with minimal modifications. pears_partnerships_data_entry.py
may require additional alterations depending on the staff list format.
- Set the username and password variables in pears_partnerships_data_entry.py using valid Office 365 credentials.
- The formatting of PEARS export workbooks changes periodically. The example PEARS exports included in the /example_inputs directory are based on workbooks downloaded on 08/26/22.
Modifications to
pears_partnerships_data_entry.py
may be necessary to run with subsequent PEARS exports. - Illinois Extension utilized Task Scheduler to run this script from a Windows PC on a monthly basis.
- Plans to deploy the PEARS Partnerships Data Entry script on AWS were never implemented and are currently beyond the scope of this repository.
- Other SNAP-Ed implementing agencies intending to utilize the PEARS Partnerships Data Entry script should consider the following adjustments as they pertain to their organization:
- {Specific project setup considerations go here}
The following input files are required to run the PEARS Partnerships Data Entry script:
- FY22_INEP_Staff_List.xlsx: A workbook that compiles various lists of INEP staff.
- Illinois Extension Unit Counties.xlsx: A workbook that maps Illinois counties to Illinois Extension units.
- Reformatted PEARS module exports output from the PEARS Nightly Export Reformatting script:
Example input files are provided in the /example_inputs directory. PEARS module exports included as example files are generated using the Faker Python package and do not represent actual program evaluation data.
The following output files are produced by the PEARS Partnerships Data Entry script:
- CPHP Partnerships Data Entry YYYY-MM.xlsx: A workbook that compiles the Partnerships to enter based on CPHP PEARS records.
- SNAP-Ed Partnerships Data Entry YYYY-MM.xlsx: A workbook that compiles the Partnerships to enter based on SNAP-Ed PEARS records
Example output files are provided in the /example_outputs directory.