Simple script to query the Trello REST API to get all lists and cards from a board and replicate it as an Obsidian note to be used with the Obsidian Kanban plugin.
-
You'll need an API key and token, follow the steps in the official guide.
-
Store them in environment variables
APIKey
andAPIToken
. If you place those in a.env
file, it will be loaded automatically by the script. -
Customize the
trello_board_to_obsidian.py
script to define theBOARD_ID
(you can get it from the url), and any mappings of labels to tags inLABELS_TO_TAGS
(keys should be in lowercase). -
Create a virtual environment, source it, and install the dependencies:
python -m venv env . env/bin/activate pip install -r requirements.txt
-
Run the script:
python trello_board_to_obsidian.py