Learn how to use Trigger.dev with Python to extract form data from PDF files.
trigger.config.ts
file:
python.runScript
method to run the image-processing.py
script with the given image URL as an argument. You can adjust the image processing parameters in the payload, with options such as height, width, quality, output format, etc.
requirements.txt
file. This is required in Python projects to install the dependencies.
python -m venv venv
source venv/bin/activate
, on Windows: venv\Scripts\activate
pip install -r requirements.txt
trigger.config.ts
file.dev
command (it may ask you to authorize the CLI if you haven’t already).deploy
command.