pymstodo ✔️
Python wrapper to deal with Microsoft To Do.
Installation
pip3 install pymstodo
Requirements
- python >= 3.10
- requests_oauthlib >= 1.3.0
Usage
- Get an API key before using
pymstodo. - Use it to initialize the client. Here is an example:
from pymstodo import ToDoConnection
client_id = 'PLACE YOUR CLIENT ID'
client_secret = 'PLACE YOUR CLIENT SECRET'
auth_url = ToDoConnection.get_auth_url(client_id)
redirect_resp = input(f'Go here and authorize:\n{auth_url}\n\nPaste the full redirect URL below:\n')
token = ToDoConnection.get_token(client_id, client_secret, redirect_resp) # you have to save it somewhere
print(token)
todo_client = ToDoConnection(client_id=client_id, client_secret=client_secret, token=token)
lists = todo_client.get_lists()
task_list = lists[0]
tasks = todo_client.get_tasks(task_list.list_id)
print(task_list)
print(*tasks, sep='\n')
-
Full documentation: https://inbalboa.github.io/pymstodo/
-
API description by Microsoft see at https://docs.microsoft.com/en-us/graph/api/resources/todo-overview
Release files for pymstodo 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pymstodo-0.2.1.tar.gz | 21.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pymstodo-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.2 kB
Release files / pymstodo-0.2.1.tar.gz
| Download URL | pymstodo-0.2.1.tar.gz |
|---|---|
| Size | 21.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
38ce1bffbd81a01dc04aacfb7da465241319b4ab18b4f9e2a579cac064d73521
|
|
BLAKE2b-256 checksum How to use checksums |
0d2defa9432594df6f5d08f62d200378b395e94f275327aa85b036a5a72234bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / pymstodo-0.2.1-py3-none-any.whl
| Download URL | pymstodo-0.2.1-py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
009d1c121093341d84ad023be41ef1f74b7c0f23706897315b8903a1edce0fae
|
|
BLAKE2b-256 checksum How to use checksums |
53c60c423af1cf17433cdfcf0d8f8c3ea25349a7467eda0a1ddc0d402e0cf538
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|