@@ -386,17 +386,32 @@ def get(uuid, default=None, **kwargs):
386
386
387
387
388
388
def todos (uuid = None , ** kwargs ):
389
+ """
390
+ Read to-dos into dicts.
391
+
392
+ See `api.tasks` for details.
393
+ """
389
394
return tasks (uuid = uuid , type = "to-do" , ** kwargs )
390
395
391
396
392
397
def projects (uuid = None , ** kwargs ):
398
+ """
399
+ Read projects into dicts.
400
+
401
+ See `api.tasks` for details.
402
+ """
393
403
return tasks (uuid = uuid , type = "project" , ** kwargs )
394
404
395
405
396
406
# Filter by collections in the Things app sidebar.
397
407
398
408
399
409
def inbox (** kwargs ):
410
+ """
411
+ Read inbox into dicts.
412
+
413
+ See `api.tasks` for details.
414
+ """
400
415
return tasks (start = "Inbox" , ** kwargs )
401
416
402
417
@@ -434,14 +449,29 @@ def upcoming(**kwargs):
434
449
435
450
436
451
def anytime (** kwargs ):
452
+ """
453
+ Read anytime to-dos into dicts.
454
+
455
+ See `api.tasks` for details.
456
+ """
437
457
return tasks (start = "Anytime" , ** kwargs )
438
458
439
459
440
460
def someday (** kwargs ):
461
+ """
462
+ Read someday to-dos into dicts.
463
+
464
+ See `api.tasks` for details.
465
+ """
441
466
return tasks (start_date = False , start = "Someday" , ** kwargs )
442
467
443
468
444
469
def logbook (** kwargs ):
470
+ """
471
+ Read logbook to-dos into dicts.
472
+
473
+ See `api.tasks` for details.
474
+ """
445
475
result = [* canceled (** kwargs ), * completed (** kwargs )]
446
476
result .sort (key = lambda task : task ["stop_date" ], reverse = True )
447
477
return result
@@ -451,6 +481,11 @@ def logbook(**kwargs):
451
481
452
482
453
483
def canceled (** kwargs ):
484
+ """
485
+ Read cancelled to-dos into dicts.
486
+
487
+ See `api.tasks` for details.
488
+ """
454
489
return tasks (status = "canceled" , ** kwargs )
455
490
456
491
@@ -467,6 +502,11 @@ def completed(**kwargs):
467
502
468
503
469
504
def due (** kwargs ):
505
+ """
506
+ Read due to-dos into dicts.
507
+
508
+ See `api.tasks` for details.
509
+ """
470
510
result = tasks (due_date = True , ** kwargs )
471
511
result .sort (key = lambda task : task ["due_date" ])
472
512
return result
@@ -476,6 +516,10 @@ def due(**kwargs):
476
516
477
517
478
518
def link (uuid ):
519
+ """
520
+ Returns a things:///show?id=uuid link.
521
+ """
522
+
479
523
return f"things:///show?id={ uuid } "
480
524
481
525
0 commit comments