Setup
-
Create a virtual environment (recommended)
-
Install dependencies
-
Configure environment
Copy
.envto a new file if needed, then edit.envand set your Bigdata API key:The script loads variables from.envin the script directory. You can also setBIGDATA_API_KEY(and optionallyBIGDATA_API_BASE_URL) in your shell. For general environment setup, see Prerequisites.
Usage
Run the script with these parameters:
Create a list file (e.g.
file_list.txt) in workdir with one filename or path per line:
Example: run the script
From thebatch_file_upload directory, with BIGDATA_API_KEY set in .env:
- Write a log file in
workdir(e.g.bigdata_processing_20260312_120000.log). - Write a result CSV in
workdir(e.g.uploaded_file_ids_20260312_120000.csv) with columns:file_id,upload_status,file_path.
uploaded_file_ids_20260312_120000.csv:
Environment variables
Variables are loaded from
.env in the script folder; you can override them in the shell.