Skip to content

Commit ee88d7e

Browse files
documentation on token creation
1 parent fb9f9b9 commit ee88d7e

File tree

3 files changed

+52
-2
lines changed

3 files changed

+52
-2
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ build/
2222

2323
# Jupyter Notebook
2424
.ipynb_checkpoints
25-
*.ipynb
2625

2726
# UV
2827
.uv/

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cp .env.example .env
2727
```
2828

2929
Required environment variables:
30-
- `TRELLO_API_KEY` & `TRELLO_TOKEN`: Create at [Trello Power-Ups Admin](https://trello.com/power-ups/admin)
30+
- `TRELLO_API_KEY` & `TRELLO_TOKEN`: If you can access [Trello](https://trello.com/w/xomnia3) you will get these during the training (you'll get a link to make your personal TRELLO_TOKEN with our shared TRELLO_API_KEY: https://trello.com/1/authorize?expiration=1day&scope=read,write&response_type=token&key={TRELLO_API_KEY})
3131
- `HF_TOKEN`: Create at [HuggingFace Settings] (https://huggingface.co/settings/tokens) with inference permissions
3232

3333
3. Install dependencies and run:

code/test_trello_client.ipynb

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"import os\n",
10+
"from dotenv import load_dotenv\n",
11+
"from trello import TrelloClient\n",
12+
"\n",
13+
"load_dotenv()"
14+
]
15+
},
16+
{
17+
"cell_type": "code",
18+
"execution_count": null,
19+
"metadata": {},
20+
"outputs": [],
21+
"source": [
22+
"client = TrelloClient(\n",
23+
" api_key=os.getenv('TRELLO_API_KEY'),\n",
24+
" token=os.getenv('TRELLO_TOKEN'),\n",
25+
")\n",
26+
"client.list_boards()"
27+
]
28+
}
29+
],
30+
"metadata": {
31+
"kernelspec": {
32+
"display_name": ".venv",
33+
"language": "python",
34+
"name": "python3"
35+
},
36+
"language_info": {
37+
"codemirror_mode": {
38+
"name": "ipython",
39+
"version": 3
40+
},
41+
"file_extension": ".py",
42+
"mimetype": "text/x-python",
43+
"name": "python",
44+
"nbconvert_exporter": "python",
45+
"pygments_lexer": "ipython3",
46+
"version": "3.12.6"
47+
}
48+
},
49+
"nbformat": 4,
50+
"nbformat_minor": 2
51+
}

0 commit comments

Comments
 (0)