This script takes a csv spreadsheet of FileMaker Pro data and adds new columns to the csv based on the data in the existing columns and API calls to LCNAF and VIAF.
- Create a directory to hold the project and navigate to it (you can name it what you like):
mkdir fmp_data_munge_outer cd fmp_data_munge_outer
- Copy the repository url and clone the repository:
git clone [repository url]
- Create a virtual environment in the root directory of the project (recommended):
python -m venv [virtual environment name]
- If you created a virtual environment, activate it using the following command:
source [virtual environment name]/bin/activate
- Install the required packages using the following command:
pip install -r requirements.txt
-
If you have not already done so, activate the virtual environment (if you created one):
source [virtual environment name]/bin/activate
-
Run the script using the following command:
python fmp_data_munge.py [fmp_file] [student_file] [output_file] [orgs_file]
The
fmp_file
is the path to the input CSV file. Thestudent_file
is the path to the "student spreadsheet" CSV file. Theoutput_file
is the path to the output CSV file. The output file will be created if it does not exist and will be overwritten if it does. The default output file path is../output/processed_data.csv
. Theorgs_file
is the path to the txt file containing the list of organizations to include. Iforgs_file
is not provided, all organizations will be included. If there are spaces in any file path, enclose the path in quotes.example:
python fmp_data_munge.py "My Files/fmp_data.csv" "My Files/student_data.csv" "My Files/output_data.csv" "My Files/orgs.txt"
If you would like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch.
- Make your changes and commit them.
- Push your changes to your forked repository.
- Submit a pull request.
This project is licensed under the MIT License.