Skip to main content

pymstodo ✔️

PyPI Build Status License: GPL v3

Python wrapper to deal with Microsoft To Do.

Installation

pip3 install pymstodo

Requirements

  • python >= 3.10
  • requests_oauthlib >= 1.3.0

Usage

  1. Get an API key before using pymstodo.
  2. 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')
  1. Full documentation: https://inbalboa.github.io/pymstodo/

  2. 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)

Source distribution for pymstodo 0.2.1
File Size Uploaded
pymstodo-0.2.1.tar.gz 21.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pymstodo 0.2.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.0.11

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page