dart-tools 0.7.5__tar.gz → 0.8.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of dart-tools might be problematic. Click here for more details.

Files changed (91) hide show
  1. {dart_tools-0.7.5/dart_tools.egg-info → dart_tools-0.8.0}/PKG-INFO +12 -12
  2. {dart_tools-0.7.5 → dart_tools-0.8.0}/README.md +7 -7
  3. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/dart.py +11 -4
  4. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/__init__.py +4 -0
  5. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/task.py +35 -0
  6. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/task_create.py +35 -0
  7. dart_tools-0.8.0/dart/generated/models/task_relationships.py +89 -0
  8. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/task_update.py +35 -0
  9. dart_tools-0.8.0/dart/generated/models/time_tracking_entry.py +61 -0
  10. {dart_tools-0.7.5 → dart_tools-0.8.0/dart_tools.egg-info}/PKG-INFO +12 -12
  11. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart_tools.egg-info/SOURCES.txt +2 -0
  12. {dart_tools-0.7.5 → dart_tools-0.8.0}/pyproject.toml +5 -5
  13. {dart_tools-0.7.5 → dart_tools-0.8.0}/LICENSE +0 -0
  14. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/__init__.py +0 -0
  15. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/exception.py +0 -0
  16. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/__init__.py +0 -0
  17. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/__init__.py +0 -0
  18. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/comment/__init__.py +0 -0
  19. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/comment/create_comment.py +0 -0
  20. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/comment/list_comments.py +0 -0
  21. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/config/__init__.py +0 -0
  22. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/config/get_config.py +0 -0
  23. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/dartboard/__init__.py +0 -0
  24. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/dartboard/retrieve_dartboard.py +0 -0
  25. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/doc/__init__.py +0 -0
  26. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/doc/create_doc.py +0 -0
  27. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/doc/delete_doc.py +0 -0
  28. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/doc/list_docs.py +0 -0
  29. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/doc/retrieve_doc.py +0 -0
  30. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/doc/update_doc.py +0 -0
  31. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/folder/__init__.py +0 -0
  32. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/folder/retrieve_folder.py +0 -0
  33. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/task/__init__.py +0 -0
  34. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/task/create_task.py +0 -0
  35. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/task/delete_task.py +0 -0
  36. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/task/list_tasks.py +0 -0
  37. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/task/retrieve_task.py +0 -0
  38. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/task/update_task.py +0 -0
  39. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/view/__init__.py +0 -0
  40. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/api/view/retrieve_view.py +0 -0
  41. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/client.py +0 -0
  42. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/errors.py +0 -0
  43. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/comment.py +0 -0
  44. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/comment_create.py +0 -0
  45. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/concise_doc.py +0 -0
  46. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/concise_task.py +0 -0
  47. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/custom_properties.py +0 -0
  48. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/dartboard.py +0 -0
  49. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/doc.py +0 -0
  50. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/doc_create.py +0 -0
  51. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/doc_update.py +0 -0
  52. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/folder.py +0 -0
  53. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/list_comments_o_item.py +0 -0
  54. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/list_docs_o_item.py +0 -0
  55. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/paginated_comment_list.py +0 -0
  56. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/paginated_concise_doc_list.py +0 -0
  57. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/paginated_concise_task_list.py +0 -0
  58. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/priority.py +0 -0
  59. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/user.py +0 -0
  60. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/user_space_configuration.py +0 -0
  61. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/user_space_configuration_custom_property_checkbox_type_def.py +0 -0
  62. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/user_space_configuration_custom_property_dates_type_def.py +0 -0
  63. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/user_space_configuration_custom_property_multiselect_type_def.py +0 -0
  64. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/user_space_configuration_custom_property_number_type_def.py +0 -0
  65. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/user_space_configuration_custom_property_number_type_def_custom_property_number_format_type_def.py +0 -0
  66. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/user_space_configuration_custom_property_select_type_def.py +0 -0
  67. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/user_space_configuration_custom_property_status_type_def.py +0 -0
  68. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/user_space_configuration_custom_property_text_type_def.py +0 -0
  69. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/user_space_configuration_custom_property_time_tracking_type_def.py +0 -0
  70. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/user_space_configuration_custom_property_user_type_def.py +0 -0
  71. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/view.py +0 -0
  72. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/wrapped_comment.py +0 -0
  73. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/wrapped_comment_create.py +0 -0
  74. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/wrapped_dartboard.py +0 -0
  75. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/wrapped_doc.py +0 -0
  76. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/wrapped_doc_create.py +0 -0
  77. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/wrapped_doc_update.py +0 -0
  78. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/wrapped_folder.py +0 -0
  79. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/wrapped_task.py +0 -0
  80. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/wrapped_task_create.py +0 -0
  81. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/wrapped_task_update.py +0 -0
  82. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/models/wrapped_view.py +0 -0
  83. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/generated/types.py +0 -0
  84. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/old.py +0 -0
  85. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/order_manager.py +0 -0
  86. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart/webhook.py +0 -0
  87. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart_tools.egg-info/dependency_links.txt +0 -0
  88. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart_tools.egg-info/entry_points.txt +0 -0
  89. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart_tools.egg-info/requires.txt +0 -0
  90. {dart_tools-0.7.5 → dart_tools-0.8.0}/dart_tools.egg-info/top_level.txt +0 -0
  91. {dart_tools-0.7.5 → dart_tools-0.8.0}/setup.cfg +0 -0
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dart-tools
3
- Version: 0.7.5
3
+ Version: 0.8.0
4
4
  Summary: The Dart CLI and Python Library
5
- Author-email: Dart <software@itsdart.com>
5
+ Author-email: Dart <software@dartai.com>
6
6
  License: MIT License
7
7
 
8
8
  Copyright (c) 2025 Dart
@@ -25,9 +25,9 @@ License: MIT License
25
25
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
26
  SOFTWARE.
27
27
 
28
- Project-URL: Homepage, https://www.itsdart.com/?nr=1
29
- Project-URL: Web App, https://app.itsdart.com/
30
- Project-URL: Help Center, https://help.itsdart.com/
28
+ Project-URL: Homepage, https://www.dartai.com/?nr=1
29
+ Project-URL: Web App, https://app.dartai.com/
30
+ Project-URL: Help Center, https://help.dartai.com/
31
31
  Project-URL: Bugs and Features, https://github.com/its-dart/dart-tools-py/issues
32
32
  Project-URL: Library Source, https://github.com/its-dart/dart-tools-py/
33
33
  Keywords: dart,cli,projectmanagement,taskmanagement
@@ -70,7 +70,7 @@ Dynamic: license-file
70
70
  </p>
71
71
  </div>
72
72
 
73
- [Dart](https://itsdart.com?nr=1) is Project Management powered by AI.
73
+ [Dart](https://dartai.com?nr=1) is Project Management powered by AI.
74
74
 
75
75
  `dart-tools` is the Dart CLI and Python Library. It enables direct integration with Dart through a terminal CLI or through Python.
76
76
 
@@ -127,7 +127,7 @@ This command will mark the referenced task 'Done'. Here `[ID]` is meant to be re
127
127
 
128
128
  ## Using the Python Library
129
129
 
130
- First, set up authentication. Run `dart login` in the terminal for an interactive process. Alternatively, copy your authentication token from [your Dart profile](https://app.itsdart.com/?settings=account) and save that as the `DART_TOKEN` environment variable.
130
+ First, set up authentication. Run `dart login` in the terminal for an interactive process. Alternatively, copy your authentication token from [your Dart profile](https://app.dartai.com/?settings=account) and save that as the `DART_TOKEN` environment variable.
131
131
 
132
132
  Then, you can run something like
133
133
 
@@ -186,13 +186,13 @@ By following these steps, you can use the `dart-tools` Python library within you
186
186
 
187
187
  ## Help and Resources
188
188
 
189
- - [Homepage](https://itsdart.com/?nr=1)
190
- - [Web App](https://app.itsdart.com/)
191
- - [Help Center](https://help.itsdart.com/)
192
- - [Bugs and Features](https://app.itsdart.com/p/r/JFyPnhL9En61)
189
+ - [Homepage](https://dartai.com/?nr=1)
190
+ - [Web App](https://app.dartai.com/)
191
+ - [Help Center](https://help.dartai.com/)
192
+ - [Bugs and Features](https://app.dartai.com/p/r/JFyPnhL9En61)
193
193
  - [Library Source](https://github.com/its-dart/dart-tools-py/)
194
194
  - [Chat on Discord](https://discord.gg/RExv8jEkSh)
195
- - Email us at [support@itsdart.com](mailto:support@itsdart.com)
195
+ - Email us at [support@dartai.com](mailto:support@dartai.com)
196
196
 
197
197
 
198
198
  ## Contributing
@@ -7,7 +7,7 @@
7
7
  </p>
8
8
  </div>
9
9
 
10
- [Dart](https://itsdart.com?nr=1) is Project Management powered by AI.
10
+ [Dart](https://dartai.com?nr=1) is Project Management powered by AI.
11
11
 
12
12
  `dart-tools` is the Dart CLI and Python Library. It enables direct integration with Dart through a terminal CLI or through Python.
13
13
 
@@ -64,7 +64,7 @@ This command will mark the referenced task 'Done'. Here `[ID]` is meant to be re
64
64
 
65
65
  ## Using the Python Library
66
66
 
67
- First, set up authentication. Run `dart login` in the terminal for an interactive process. Alternatively, copy your authentication token from [your Dart profile](https://app.itsdart.com/?settings=account) and save that as the `DART_TOKEN` environment variable.
67
+ First, set up authentication. Run `dart login` in the terminal for an interactive process. Alternatively, copy your authentication token from [your Dart profile](https://app.dartai.com/?settings=account) and save that as the `DART_TOKEN` environment variable.
68
68
 
69
69
  Then, you can run something like
70
70
 
@@ -123,13 +123,13 @@ By following these steps, you can use the `dart-tools` Python library within you
123
123
 
124
124
  ## Help and Resources
125
125
 
126
- - [Homepage](https://itsdart.com/?nr=1)
127
- - [Web App](https://app.itsdart.com/)
128
- - [Help Center](https://help.itsdart.com/)
129
- - [Bugs and Features](https://app.itsdart.com/p/r/JFyPnhL9En61)
126
+ - [Homepage](https://dartai.com/?nr=1)
127
+ - [Web App](https://app.dartai.com/)
128
+ - [Help Center](https://help.dartai.com/)
129
+ - [Bugs and Features](https://app.dartai.com/p/r/JFyPnhL9En61)
130
130
  - [Library Source](https://github.com/its-dart/dart-tools-py/)
131
131
  - [Chat on Discord](https://discord.gg/RExv8jEkSh)
132
- - Email us at [support@itsdart.com](mailto:support@itsdart.com)
132
+ - Email us at [support@dartai.com](mailto:support@dartai.com)
133
133
 
134
134
 
135
135
  ## Contributing
@@ -58,8 +58,8 @@ from .generated.types import UNSET, Response, Unset
58
58
  _APP = "dart-tools"
59
59
  _PROG = "dart"
60
60
 
61
- _PROD_HOST = "https://app.itsdart.com"
62
- _STAG_HOST = "https://stag.itsdart.com"
61
+ _PROD_HOST = "https://app.dartai.com"
62
+ _STAG_HOST = "https://stag.dartai.com"
63
63
  _DEV_HOST = "http://localhost:5173"
64
64
  _HOST_MAP = {"prod": _PROD_HOST, "stag": _STAG_HOST, "dev": _DEV_HOST}
65
65
 
@@ -101,6 +101,7 @@ _PRIORITY_MAP: dict[int, str] = {
101
101
  3: Priority.LOW,
102
102
  }
103
103
  _SIZES = {1, 2, 3, 5, 8}
104
+ _DEFAULT_DARTBOARD = "General/Active"
104
105
 
105
106
  _VERSION = version(_APP)
106
107
  _AUTH_TOKEN_ENVVAR = os.environ.get(_AUTH_TOKEN_ENVVAR_KEY)
@@ -465,7 +466,7 @@ def _auth_failure_exit() -> NoReturn:
465
466
 
466
467
 
467
468
  def _unknown_failure_exit() -> NoReturn:
468
- _dart_exit("Unknown failure, email\n\n support@itsdart.com\n\nfor help.")
469
+ _dart_exit("Unknown failure, email\n\n support@dartai.com\n\nfor help.")
469
470
 
470
471
 
471
472
  def print_version() -> str:
@@ -504,6 +505,10 @@ def login(token: str | None = None) -> bool:
504
505
  config = _Config()
505
506
  dart = Dart(config=config)
506
507
 
508
+ if dart.is_logged_in():
509
+ _log("Already logged in.")
510
+ return True
511
+
507
512
  _log("Log in to Dart")
508
513
  if token is None:
509
514
  if not _is_cli:
@@ -541,7 +546,9 @@ def begin_task() -> bool:
541
546
  dart = Dart()
542
547
  config = dart.get_config()
543
548
  user = config.user
544
- filtered_tasks = dart.list_tasks(assignee=user.email, is_completed=False).results
549
+ print(config.dartboards)
550
+ dartboard_maybe = {"dartboard": _DEFAULT_DARTBOARD} if _DEFAULT_DARTBOARD in config.dartboards else {}
551
+ filtered_tasks = dart.list_tasks(assignee=user.email, is_completed=False, **dartboard_maybe).results
545
552
 
546
553
  if not filtered_tasks:
547
554
  _dart_exit("No active, incomplete tasks found.")
@@ -18,7 +18,9 @@ from .paginated_concise_task_list import PaginatedConciseTaskList
18
18
  from .priority import Priority
19
19
  from .task import Task
20
20
  from .task_create import TaskCreate
21
+ from .task_relationships import TaskRelationships
21
22
  from .task_update import TaskUpdate
23
+ from .time_tracking_entry import TimeTrackingEntry
22
24
  from .user import User
23
25
  from .user_space_configuration import UserSpaceConfiguration
24
26
  from .user_space_configuration_custom_property_checkbox_type_def import (
@@ -83,7 +85,9 @@ __all__ = (
83
85
  "Priority",
84
86
  "Task",
85
87
  "TaskCreate",
88
+ "TaskRelationships",
86
89
  "TaskUpdate",
90
+ "TimeTrackingEntry",
87
91
  "User",
88
92
  "UserSpaceConfiguration",
89
93
  "UserSpaceConfigurationCustomPropertyCheckboxTypeDef",
@@ -9,6 +9,7 @@ from ..types import UNSET, Unset
9
9
 
10
10
  if TYPE_CHECKING:
11
11
  from ..models.custom_properties import CustomProperties
12
+ from ..models.task_relationships import TaskRelationships
12
13
 
13
14
 
14
15
  T = TypeVar("T", bound="Task")
@@ -45,6 +46,7 @@ class Task:
45
46
  on the task in hh:mm:ss format (or an empty string if no time has been tracked).
46
47
  custom_properties (Union['CustomProperties', None, Unset]): The custom properties, which is a dict of custom
47
48
  properties that are associated with the task.
49
+ task_relationships (Union['TaskRelationships', None, Unset]): The relationships associated with the task.
48
50
  """
49
51
 
50
52
  id: str
@@ -64,10 +66,12 @@ class Task:
64
66
  size: Union[None, Unset, int, str] = UNSET
65
67
  time_tracking: Union[Unset, str] = UNSET
66
68
  custom_properties: Union["CustomProperties", None, Unset] = UNSET
69
+ task_relationships: Union["TaskRelationships", None, Unset] = UNSET
67
70
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
68
71
 
69
72
  def to_dict(self) -> dict[str, Any]:
70
73
  from ..models.custom_properties import CustomProperties
74
+ from ..models.task_relationships import TaskRelationships
71
75
 
72
76
  id = self.id
73
77
 
@@ -141,6 +145,14 @@ class Task:
141
145
  else:
142
146
  custom_properties = self.custom_properties
143
147
 
148
+ task_relationships: Union[None, Unset, dict[str, Any]]
149
+ if isinstance(self.task_relationships, Unset):
150
+ task_relationships = UNSET
151
+ elif isinstance(self.task_relationships, TaskRelationships):
152
+ task_relationships = self.task_relationships.to_dict()
153
+ else:
154
+ task_relationships = self.task_relationships
155
+
144
156
  field_dict: dict[str, Any] = {}
145
157
  field_dict.update(self.additional_properties)
146
158
  field_dict.update(
@@ -173,12 +185,15 @@ class Task:
173
185
  field_dict["timeTracking"] = time_tracking
174
186
  if custom_properties is not UNSET:
175
187
  field_dict["customProperties"] = custom_properties
188
+ if task_relationships is not UNSET:
189
+ field_dict["taskRelationships"] = task_relationships
176
190
 
177
191
  return field_dict
178
192
 
179
193
  @classmethod
180
194
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
181
195
  from ..models.custom_properties import CustomProperties
196
+ from ..models.task_relationships import TaskRelationships
182
197
 
183
198
  d = dict(src_dict)
184
199
  id = d.pop("id")
@@ -295,6 +310,25 @@ class Task:
295
310
 
296
311
  custom_properties = _parse_custom_properties(d.pop("customProperties", UNSET))
297
312
 
313
+ def _parse_task_relationships(
314
+ data: object,
315
+ ) -> Union["TaskRelationships", None, Unset]:
316
+ if data is None:
317
+ return data
318
+ if isinstance(data, Unset):
319
+ return data
320
+ try:
321
+ if not isinstance(data, dict):
322
+ raise TypeError()
323
+ task_relationships_type_0 = TaskRelationships.from_dict(data)
324
+
325
+ return task_relationships_type_0
326
+ except: # noqa: E722
327
+ pass
328
+ return cast(Union["TaskRelationships", None, Unset], data)
329
+
330
+ task_relationships = _parse_task_relationships(d.pop("taskRelationships", UNSET))
331
+
298
332
  task = cls(
299
333
  id=id,
300
334
  html_url=html_url,
@@ -313,6 +347,7 @@ class Task:
313
347
  size=size,
314
348
  time_tracking=time_tracking,
315
349
  custom_properties=custom_properties,
350
+ task_relationships=task_relationships,
316
351
  )
317
352
 
318
353
  task.additional_properties = d
@@ -9,6 +9,7 @@ from ..types import UNSET, Unset
9
9
 
10
10
  if TYPE_CHECKING:
11
11
  from ..models.custom_properties import CustomProperties
12
+ from ..models.task_relationships import TaskRelationships
12
13
 
13
14
 
14
15
  T = TypeVar("T", bound="TaskCreate")
@@ -41,6 +42,7 @@ class TaskCreate:
41
42
  is used to determine how long the task will take to complete.
42
43
  custom_properties (Union['CustomProperties', None, Unset]): The custom properties, which is a dict of custom
43
44
  properties that are associated with the task.
45
+ task_relationships (Union['TaskRelationships', None, Unset]): The relationships associated with the task.
44
46
  """
45
47
 
46
48
  title: str
@@ -57,10 +59,12 @@ class TaskCreate:
57
59
  due_at: Union[None, Unset, str] = UNSET
58
60
  size: Union[None, Unset, int, str] = UNSET
59
61
  custom_properties: Union["CustomProperties", None, Unset] = UNSET
62
+ task_relationships: Union["TaskRelationships", None, Unset] = UNSET
60
63
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
61
64
 
62
65
  def to_dict(self) -> dict[str, Any]:
63
66
  from ..models.custom_properties import CustomProperties
67
+ from ..models.task_relationships import TaskRelationships
64
68
 
65
69
  title = self.title
66
70
 
@@ -131,6 +135,14 @@ class TaskCreate:
131
135
  else:
132
136
  custom_properties = self.custom_properties
133
137
 
138
+ task_relationships: Union[None, Unset, dict[str, Any]]
139
+ if isinstance(self.task_relationships, Unset):
140
+ task_relationships = UNSET
141
+ elif isinstance(self.task_relationships, TaskRelationships):
142
+ task_relationships = self.task_relationships.to_dict()
143
+ else:
144
+ task_relationships = self.task_relationships
145
+
134
146
  field_dict: dict[str, Any] = {}
135
147
  field_dict.update(self.additional_properties)
136
148
  field_dict.update(
@@ -164,12 +176,15 @@ class TaskCreate:
164
176
  field_dict["size"] = size
165
177
  if custom_properties is not UNSET:
166
178
  field_dict["customProperties"] = custom_properties
179
+ if task_relationships is not UNSET:
180
+ field_dict["taskRelationships"] = task_relationships
167
181
 
168
182
  return field_dict
169
183
 
170
184
  @classmethod
171
185
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
172
186
  from ..models.custom_properties import CustomProperties
187
+ from ..models.task_relationships import TaskRelationships
173
188
 
174
189
  d = dict(src_dict)
175
190
  title = d.pop("title")
@@ -282,6 +297,25 @@ class TaskCreate:
282
297
 
283
298
  custom_properties = _parse_custom_properties(d.pop("customProperties", UNSET))
284
299
 
300
+ def _parse_task_relationships(
301
+ data: object,
302
+ ) -> Union["TaskRelationships", None, Unset]:
303
+ if data is None:
304
+ return data
305
+ if isinstance(data, Unset):
306
+ return data
307
+ try:
308
+ if not isinstance(data, dict):
309
+ raise TypeError()
310
+ task_relationships_type_0 = TaskRelationships.from_dict(data)
311
+
312
+ return task_relationships_type_0
313
+ except: # noqa: E722
314
+ pass
315
+ return cast(Union["TaskRelationships", None, Unset], data)
316
+
317
+ task_relationships = _parse_task_relationships(d.pop("taskRelationships", UNSET))
318
+
285
319
  task_create = cls(
286
320
  title=title,
287
321
  parent_id=parent_id,
@@ -297,6 +331,7 @@ class TaskCreate:
297
331
  due_at=due_at,
298
332
  size=size,
299
333
  custom_properties=custom_properties,
334
+ task_relationships=task_relationships,
300
335
  )
301
336
 
302
337
  task_create.additional_properties = d
@@ -0,0 +1,89 @@
1
+ from collections.abc import Mapping
2
+ from typing import Any, TypeVar, Union, cast
3
+
4
+ from attrs import define as _attrs_define
5
+
6
+ from ..types import UNSET, Unset
7
+
8
+ T = TypeVar("T", bound="TaskRelationships")
9
+
10
+
11
+ @_attrs_define
12
+ class TaskRelationships:
13
+ """
14
+ Example:
15
+ {'subtaskIds': ['abcdefghijk1', 'abcdefghijk2'], 'blockerIds': ['abcdefghijk3'], 'blockingIds':
16
+ ['abcdefghijk4'], 'duplicateIds': ['abcdefghijk5'], 'relatedIds': ['abcdefghijk6', 'abcdefghijk7']}
17
+
18
+ Attributes:
19
+ subtask_ids (Union[Unset, list[str]]): List of task IDs that are subtasks of this task
20
+ blocker_ids (Union[Unset, list[str]]): List of task IDs that block this task
21
+ blocking_ids (Union[Unset, list[str]]): List of task IDs that this task blocks
22
+ duplicate_ids (Union[Unset, list[str]]): List of task IDs that are duplicates of this task
23
+ related_ids (Union[Unset, list[str]]): List of task IDs that are related to this task
24
+ """
25
+
26
+ subtask_ids: Union[Unset, list[str]] = UNSET
27
+ blocker_ids: Union[Unset, list[str]] = UNSET
28
+ blocking_ids: Union[Unset, list[str]] = UNSET
29
+ duplicate_ids: Union[Unset, list[str]] = UNSET
30
+ related_ids: Union[Unset, list[str]] = UNSET
31
+
32
+ def to_dict(self) -> dict[str, Any]:
33
+ subtask_ids: Union[Unset, list[str]] = UNSET
34
+ if not isinstance(self.subtask_ids, Unset):
35
+ subtask_ids = self.subtask_ids
36
+
37
+ blocker_ids: Union[Unset, list[str]] = UNSET
38
+ if not isinstance(self.blocker_ids, Unset):
39
+ blocker_ids = self.blocker_ids
40
+
41
+ blocking_ids: Union[Unset, list[str]] = UNSET
42
+ if not isinstance(self.blocking_ids, Unset):
43
+ blocking_ids = self.blocking_ids
44
+
45
+ duplicate_ids: Union[Unset, list[str]] = UNSET
46
+ if not isinstance(self.duplicate_ids, Unset):
47
+ duplicate_ids = self.duplicate_ids
48
+
49
+ related_ids: Union[Unset, list[str]] = UNSET
50
+ if not isinstance(self.related_ids, Unset):
51
+ related_ids = self.related_ids
52
+
53
+ field_dict: dict[str, Any] = {}
54
+ field_dict.update({})
55
+ if subtask_ids is not UNSET:
56
+ field_dict["subtaskIds"] = subtask_ids
57
+ if blocker_ids is not UNSET:
58
+ field_dict["blockerIds"] = blocker_ids
59
+ if blocking_ids is not UNSET:
60
+ field_dict["blockingIds"] = blocking_ids
61
+ if duplicate_ids is not UNSET:
62
+ field_dict["duplicateIds"] = duplicate_ids
63
+ if related_ids is not UNSET:
64
+ field_dict["relatedIds"] = related_ids
65
+
66
+ return field_dict
67
+
68
+ @classmethod
69
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
70
+ d = dict(src_dict)
71
+ subtask_ids = cast(list[str], d.pop("subtaskIds", UNSET))
72
+
73
+ blocker_ids = cast(list[str], d.pop("blockerIds", UNSET))
74
+
75
+ blocking_ids = cast(list[str], d.pop("blockingIds", UNSET))
76
+
77
+ duplicate_ids = cast(list[str], d.pop("duplicateIds", UNSET))
78
+
79
+ related_ids = cast(list[str], d.pop("relatedIds", UNSET))
80
+
81
+ task_relationships = cls(
82
+ subtask_ids=subtask_ids,
83
+ blocker_ids=blocker_ids,
84
+ blocking_ids=blocking_ids,
85
+ duplicate_ids=duplicate_ids,
86
+ related_ids=related_ids,
87
+ )
88
+
89
+ return task_relationships
@@ -9,6 +9,7 @@ from ..types import UNSET, Unset
9
9
 
10
10
  if TYPE_CHECKING:
11
11
  from ..models.custom_properties import CustomProperties
12
+ from ..models.task_relationships import TaskRelationships
12
13
 
13
14
 
14
15
  T = TypeVar("T", bound="TaskUpdate")
@@ -42,6 +43,7 @@ class TaskUpdate:
42
43
  is used to determine how long the task will take to complete.
43
44
  custom_properties (Union['CustomProperties', None, Unset]): The custom properties, which is a dict of custom
44
45
  properties that are associated with the task.
46
+ task_relationships (Union['TaskRelationships', None, Unset]): The relationships associated with the task.
45
47
  """
46
48
 
47
49
  id: str
@@ -59,10 +61,12 @@ class TaskUpdate:
59
61
  due_at: Union[None, Unset, str] = UNSET
60
62
  size: Union[None, Unset, int, str] = UNSET
61
63
  custom_properties: Union["CustomProperties", None, Unset] = UNSET
64
+ task_relationships: Union["TaskRelationships", None, Unset] = UNSET
62
65
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
63
66
 
64
67
  def to_dict(self) -> dict[str, Any]:
65
68
  from ..models.custom_properties import CustomProperties
69
+ from ..models.task_relationships import TaskRelationships
66
70
 
67
71
  id = self.id
68
72
 
@@ -135,6 +139,14 @@ class TaskUpdate:
135
139
  else:
136
140
  custom_properties = self.custom_properties
137
141
 
142
+ task_relationships: Union[None, Unset, dict[str, Any]]
143
+ if isinstance(self.task_relationships, Unset):
144
+ task_relationships = UNSET
145
+ elif isinstance(self.task_relationships, TaskRelationships):
146
+ task_relationships = self.task_relationships.to_dict()
147
+ else:
148
+ task_relationships = self.task_relationships
149
+
138
150
  field_dict: dict[str, Any] = {}
139
151
  field_dict.update(self.additional_properties)
140
152
  field_dict.update(
@@ -170,12 +182,15 @@ class TaskUpdate:
170
182
  field_dict["size"] = size
171
183
  if custom_properties is not UNSET:
172
184
  field_dict["customProperties"] = custom_properties
185
+ if task_relationships is not UNSET:
186
+ field_dict["taskRelationships"] = task_relationships
173
187
 
174
188
  return field_dict
175
189
 
176
190
  @classmethod
177
191
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
178
192
  from ..models.custom_properties import CustomProperties
193
+ from ..models.task_relationships import TaskRelationships
179
194
 
180
195
  d = dict(src_dict)
181
196
  id = d.pop("id")
@@ -290,6 +305,25 @@ class TaskUpdate:
290
305
 
291
306
  custom_properties = _parse_custom_properties(d.pop("customProperties", UNSET))
292
307
 
308
+ def _parse_task_relationships(
309
+ data: object,
310
+ ) -> Union["TaskRelationships", None, Unset]:
311
+ if data is None:
312
+ return data
313
+ if isinstance(data, Unset):
314
+ return data
315
+ try:
316
+ if not isinstance(data, dict):
317
+ raise TypeError()
318
+ task_relationships_type_0 = TaskRelationships.from_dict(data)
319
+
320
+ return task_relationships_type_0
321
+ except: # noqa: E722
322
+ pass
323
+ return cast(Union["TaskRelationships", None, Unset], data)
324
+
325
+ task_relationships = _parse_task_relationships(d.pop("taskRelationships", UNSET))
326
+
293
327
  task_update = cls(
294
328
  id=id,
295
329
  title=title,
@@ -306,6 +340,7 @@ class TaskUpdate:
306
340
  due_at=due_at,
307
341
  size=size,
308
342
  custom_properties=custom_properties,
343
+ task_relationships=task_relationships,
309
344
  )
310
345
 
311
346
  task_update.additional_properties = d
@@ -0,0 +1,61 @@
1
+ from collections.abc import Mapping
2
+ from typing import Any, TypeVar, Union, cast
3
+
4
+ from attrs import define as _attrs_define
5
+
6
+ T = TypeVar("T", bound="TimeTrackingEntry")
7
+
8
+
9
+ @_attrs_define
10
+ class TimeTrackingEntry:
11
+ """
12
+ Attributes:
13
+ user_duid (str):
14
+ started_at (str):
15
+ finished_at (Union[None, str]):
16
+ """
17
+
18
+ user_duid: str
19
+ started_at: str
20
+ finished_at: Union[None, str]
21
+
22
+ def to_dict(self) -> dict[str, Any]:
23
+ user_duid = self.user_duid
24
+
25
+ started_at = self.started_at
26
+
27
+ finished_at: Union[None, str]
28
+ finished_at = self.finished_at
29
+
30
+ field_dict: dict[str, Any] = {}
31
+ field_dict.update(
32
+ {
33
+ "userDuid": user_duid,
34
+ "startedAt": started_at,
35
+ "finishedAt": finished_at,
36
+ }
37
+ )
38
+
39
+ return field_dict
40
+
41
+ @classmethod
42
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
43
+ d = dict(src_dict)
44
+ user_duid = d.pop("userDuid")
45
+
46
+ started_at = d.pop("startedAt")
47
+
48
+ def _parse_finished_at(data: object) -> Union[None, str]:
49
+ if data is None:
50
+ return data
51
+ return cast(Union[None, str], data)
52
+
53
+ finished_at = _parse_finished_at(d.pop("finishedAt"))
54
+
55
+ time_tracking_entry = cls(
56
+ user_duid=user_duid,
57
+ started_at=started_at,
58
+ finished_at=finished_at,
59
+ )
60
+
61
+ return time_tracking_entry
@@ -1,8 +1,8 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dart-tools
3
- Version: 0.7.5
3
+ Version: 0.8.0
4
4
  Summary: The Dart CLI and Python Library
5
- Author-email: Dart <software@itsdart.com>
5
+ Author-email: Dart <software@dartai.com>
6
6
  License: MIT License
7
7
 
8
8
  Copyright (c) 2025 Dart
@@ -25,9 +25,9 @@ License: MIT License
25
25
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
26
  SOFTWARE.
27
27
 
28
- Project-URL: Homepage, https://www.itsdart.com/?nr=1
29
- Project-URL: Web App, https://app.itsdart.com/
30
- Project-URL: Help Center, https://help.itsdart.com/
28
+ Project-URL: Homepage, https://www.dartai.com/?nr=1
29
+ Project-URL: Web App, https://app.dartai.com/
30
+ Project-URL: Help Center, https://help.dartai.com/
31
31
  Project-URL: Bugs and Features, https://github.com/its-dart/dart-tools-py/issues
32
32
  Project-URL: Library Source, https://github.com/its-dart/dart-tools-py/
33
33
  Keywords: dart,cli,projectmanagement,taskmanagement
@@ -70,7 +70,7 @@ Dynamic: license-file
70
70
  </p>
71
71
  </div>
72
72
 
73
- [Dart](https://itsdart.com?nr=1) is Project Management powered by AI.
73
+ [Dart](https://dartai.com?nr=1) is Project Management powered by AI.
74
74
 
75
75
  `dart-tools` is the Dart CLI and Python Library. It enables direct integration with Dart through a terminal CLI or through Python.
76
76
 
@@ -127,7 +127,7 @@ This command will mark the referenced task 'Done'. Here `[ID]` is meant to be re
127
127
 
128
128
  ## Using the Python Library
129
129
 
130
- First, set up authentication. Run `dart login` in the terminal for an interactive process. Alternatively, copy your authentication token from [your Dart profile](https://app.itsdart.com/?settings=account) and save that as the `DART_TOKEN` environment variable.
130
+ First, set up authentication. Run `dart login` in the terminal for an interactive process. Alternatively, copy your authentication token from [your Dart profile](https://app.dartai.com/?settings=account) and save that as the `DART_TOKEN` environment variable.
131
131
 
132
132
  Then, you can run something like
133
133
 
@@ -186,13 +186,13 @@ By following these steps, you can use the `dart-tools` Python library within you
186
186
 
187
187
  ## Help and Resources
188
188
 
189
- - [Homepage](https://itsdart.com/?nr=1)
190
- - [Web App](https://app.itsdart.com/)
191
- - [Help Center](https://help.itsdart.com/)
192
- - [Bugs and Features](https://app.itsdart.com/p/r/JFyPnhL9En61)
189
+ - [Homepage](https://dartai.com/?nr=1)
190
+ - [Web App](https://app.dartai.com/)
191
+ - [Help Center](https://help.dartai.com/)
192
+ - [Bugs and Features](https://app.dartai.com/p/r/JFyPnhL9En61)
193
193
  - [Library Source](https://github.com/its-dart/dart-tools-py/)
194
194
  - [Chat on Discord](https://discord.gg/RExv8jEkSh)
195
- - Email us at [support@itsdart.com](mailto:support@itsdart.com)
195
+ - Email us at [support@dartai.com](mailto:support@dartai.com)
196
196
 
197
197
 
198
198
  ## Contributing
@@ -54,7 +54,9 @@ dart/generated/models/paginated_concise_task_list.py
54
54
  dart/generated/models/priority.py
55
55
  dart/generated/models/task.py
56
56
  dart/generated/models/task_create.py
57
+ dart/generated/models/task_relationships.py
57
58
  dart/generated/models/task_update.py
59
+ dart/generated/models/time_tracking_entry.py
58
60
  dart/generated/models/user.py
59
61
  dart/generated/models/user_space_configuration.py
60
62
  dart/generated/models/user_space_configuration_custom_property_checkbox_type_def.py
@@ -1,13 +1,13 @@
1
1
  [project]
2
2
  name = "dart-tools"
3
- version = "0.7.5"
3
+ version = "0.8.0"
4
4
  description = "The Dart CLI and Python Library"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.9"
7
7
  license = {file = "LICENSE"}
8
8
  keywords = ["dart", "cli", "projectmanagement", "taskmanagement"]
9
9
  authors = [
10
- { name="Dart", email="software@itsdart.com" }
10
+ { name="Dart", email="software@dartai.com" }
11
11
  ]
12
12
  classifiers=[
13
13
  "Development Status :: 4 - Beta",
@@ -48,9 +48,9 @@ dev = [
48
48
  ]
49
49
 
50
50
  [project.urls]
51
- "Homepage" = "https://www.itsdart.com/?nr=1"
52
- "Web App" = "https://app.itsdart.com/"
53
- "Help Center" = "https://help.itsdart.com/"
51
+ "Homepage" = "https://www.dartai.com/?nr=1"
52
+ "Web App" = "https://app.dartai.com/"
53
+ "Help Center" = "https://help.dartai.com/"
54
54
  "Bugs and Features" = "https://github.com/its-dart/dart-tools-py/issues"
55
55
  "Library Source" = "https://github.com/its-dart/dart-tools-py/"
56
56
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes