O365 - Microsoft Graph and Office 365 API made easy
—
Quality
Pending
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Microsoft To-Do and Planner integration for task management, project planning, bucket organization, and progress tracking.
def tasks(self, resource: str = None) -> ToDo:
"""Get a ToDo instance for Microsoft To-Do operations."""
class ToDo:
def get_lists(self) -> list[TaskList]:
"""Get task lists."""
def new_list(self, list_name: str) -> TaskList:
"""Create a new task list."""
class TaskList:
@property
def display_name(self) -> str:
"""List display name."""
def get_tasks(self) -> list[Task]:
"""Get tasks in this list."""
def new_task(self, subject: str) -> Task:
"""Create a new task."""
class Task:
@property
def subject(self) -> str:
"""Task subject."""
@property
def completed(self) -> bool:
"""Whether task is completed."""
def complete(self) -> bool:
"""Mark task as completed."""def planner(self, resource: str = None) -> Planner:
"""Get a Planner instance for Microsoft Planner operations."""
class Planner:
def get_plans(self) -> list[Plan]:
"""Get accessible plans."""
class Plan:
@property
def title(self) -> str:
"""Plan title."""
def get_tasks(self) -> list[PlannerTask]:
"""Get plan tasks."""
def get_buckets(self) -> list[Bucket]:
"""Get plan buckets."""account = Account(credentials)
# Work with To-Do tasks
todo = account.tasks()
task_lists = todo.get_lists()
for task_list in task_lists:
tasks = task_list.get_tasks()
print(f"List '{task_list.display_name}': {len(tasks)} tasks")
# Work with Planner
planner = account.planner()
plans = planner.get_plans()
for plan in plans:
print(f"Plan: {plan.title}")Install with Tessl CLI
npx tessl i tessl/pypi-o365