Learn how to use Trigger.dev with Python to convert documents to markdown using MarkItDown.
trigger.config.ts
file:
python.runScript
method to run the markdown-converter.py
script with the given document URL as an argument.
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
. Make sure you have Python 3.10 or higher installed.trigger.config.ts
file.dev
command (it may ask you to authorize the CLI if you haven’t already).deploy
command.