|
1 | 1 | """__init__"""
|
2 | 2 |
|
3 | 3 | # global imports ------------------------------------------------------------------------------
|
4 |
| -from syncall.__version__ import __version__, __version_tuple__ |
5 |
| -from syncall.aggregator import Aggregator |
6 |
| -from syncall.app_utils import ( |
7 |
| - app_name, |
8 |
| - cache_or_reuse_cached_combination, |
9 |
| - fetch_app_configuration, |
10 |
| - fetch_from_pass_manager, |
11 |
| - get_config_name_for_args, |
12 |
| - get_resolution_strategy, |
13 |
| - inform_about_app_extras, |
14 |
| - inform_about_combination_name_usage, |
15 |
| - list_named_combinations, |
16 |
| - name_to_resolution_strategy_type, |
17 |
| - report_toplevel_exception, |
18 |
| -) |
19 |
| -from syncall.cli import ( |
20 |
| - opt_asana_task_gid, |
21 |
| - opt_asana_token_pass_path, |
22 |
| - opt_asana_workspace_gid, |
23 |
| - opt_asana_workspace_name, |
24 |
| - opt_combination, |
25 |
| - opt_custom_combination_savename, |
26 |
| - opt_filesystem_root, |
27 |
| - opt_gcal_calendar, |
28 |
| - opt_gkeep_labels, |
29 |
| - opt_gkeep_note, |
30 |
| - opt_gkeep_passwd_pass_path, |
31 |
| - opt_gkeep_user_pass_path, |
32 |
| - opt_google_oauth_port, |
33 |
| - opt_google_secret_override, |
34 |
| - opt_gtasks_list, |
35 |
| - opt_list_asana_workspaces, |
36 |
| - opt_list_combinations, |
37 |
| - opt_notion_page_id, |
38 |
| - opt_notion_token_pass_path, |
39 |
| - opt_resolution_strategy, |
40 |
| - opt_tw_project, |
41 |
| - opt_tw_tags, |
42 |
| -) |
43 |
| -from syncall.sync_side import ItemType, SyncSide |
| 4 | +from syncall.__version__ import __version__ as version |
| 5 | +from syncall.__version__ import __version_tuple__ as version_tuple |
44 | 6 |
|
45 |
| -__all__ = [ |
46 |
| - "__version__", |
47 |
| - "__version_tuple__", |
48 |
| - "Aggregator", |
49 |
| - "ItemType", |
50 |
| - "SyncSide", |
51 |
| - "app_name", |
52 |
| - "cache_or_reuse_cached_combination", |
53 |
| - "fetch_app_configuration", |
54 |
| - "fetch_from_pass_manager", |
55 |
| - "get_config_name_for_args", |
56 |
| - "inform_about_app_extras", |
57 |
| - "inform_about_combination_name_usage", |
58 |
| - "list_named_combinations", |
59 |
| - "get_resolution_strategy", |
60 |
| - "name_to_resolution_strategy_type", |
61 |
| - "opt_asana_task_gid", |
62 |
| - "opt_asana_token_pass_path", |
63 |
| - "opt_asana_workspace_gid", |
64 |
| - "opt_asana_workspace_name", |
65 |
| - "opt_combination", |
66 |
| - "opt_custom_combination_savename", |
67 |
| - "opt_gcal_calendar", |
68 |
| - "opt_gtasks_list", |
69 |
| - "opt_gkeep_note", |
70 |
| - "opt_gkeep_passwd_pass_path", |
71 |
| - "opt_gkeep_user_pass_path", |
72 |
| - "opt_google_oauth_port", |
73 |
| - "opt_google_secret_override", |
74 |
| - "opt_list_asana_workspaces", |
75 |
| - "opt_list_combinations", |
76 |
| - "opt_notion_page_id", |
77 |
| - "opt_notion_token_pass_path", |
78 |
| - "opt_resolution_strategy", |
79 |
| - "opt_tw_project", |
80 |
| - "opt_filesystem_root", |
81 |
| - "opt_tw_tags", |
82 |
| - "opt_gkeep_labels", |
83 |
| - "report_toplevel_exception", |
84 |
| -] |
85 |
| - |
86 |
| -# asana ---------------------------------------------------------------------------------------- |
87 |
| -try: |
88 |
| - from syncall.asana.asana_side import AsanaSide |
89 |
| - from syncall.asana.utils import list_asana_workspaces |
90 |
| - from syncall.tw_asana_utils import convert_asana_to_tw, convert_tw_to_asana |
91 |
| - |
92 |
| - __all__.extend( |
93 |
| - ["AsanaSide", "convert_asana_to_tw", "convert_tw_to_asana", "list_asana_workspaces"] |
94 |
| - ) |
95 |
| -except ImportError: |
96 |
| - pass |
97 |
| - |
98 |
| -# tw ------------------------------------------------------------------------------------------ |
99 |
| -try: |
100 |
| - from syncall.taskwarrior.taskwarrior_side import TaskWarriorSide |
101 |
| - |
102 |
| - __all__.extend( |
103 |
| - [ |
104 |
| - "TaskWarriorSide", |
105 |
| - ] |
106 |
| - ) |
107 |
| -except ImportError: |
108 |
| - pass |
109 |
| - |
110 |
| -# notion -------------------------------------------------------------------------------------- |
111 |
| -try: |
112 |
| - from syncall.notion.notion_side import NotionSide |
113 |
| - |
114 |
| - __all__.extend(["NotionSide"]) |
115 |
| -except ImportError: |
116 |
| - pass |
117 |
| - |
118 |
| -# notion <> tw -------------------------------------------------------------------------------- |
119 |
| -try: |
120 |
| - from syncall.tw_notion_utils import convert_notion_to_tw, convert_tw_to_notion |
121 |
| - |
122 |
| - __all__.extend(["convert_notion_to_tw", "convert_tw_to_notion"]) |
123 |
| -except ImportError: |
124 |
| - pass |
125 |
| - |
126 |
| -# gcal ---------------------------------------------------------------------------------------- |
127 |
| -try: |
128 |
| - from syncall.google.gcal_side import GCalSide |
129 |
| - from syncall.tw_gcal_utils import convert_gcal_to_tw, convert_tw_to_gcal |
130 |
| -except ImportError: |
131 |
| - __all__.extend( |
132 |
| - [ |
133 |
| - "GCalSide", |
134 |
| - "convert_gcal_to_tw", |
135 |
| - "convert_tw_to_gcal", |
136 |
| - ] |
137 |
| - ) |
138 |
| - |
139 |
| -# gtasks -------------------------------------------------------------------------------------- |
140 |
| -try: |
141 |
| - from syncall.google.gtasks_side import GTasksSide |
142 |
| - from syncall.tw_gtasks_utils import convert_gtask_to_tw, convert_tw_to_gtask |
143 |
| -except ImportError: |
144 |
| - __all__.extend( |
145 |
| - [ |
146 |
| - "GTasksSide", |
147 |
| - "convert_gtask_to_tw", |
148 |
| - "convert_tw_to_gtask", |
149 |
| - ] |
150 |
| - ) |
151 |
| - |
152 |
| -# gkeep --------------------------------------------------------------------------------------- |
153 |
| -try: |
154 |
| - from syncall.google.gkeep_note import GKeepNote |
155 |
| - from syncall.google.gkeep_note_side import GKeepNoteSide |
156 |
| - from syncall.google.gkeep_todo_item import GKeepTodoItem |
157 |
| - from syncall.google.gkeep_todo_side import GKeepTodoSide |
158 |
| - |
159 |
| - __all__.extend( |
160 |
| - [ |
161 |
| - "GKeepNote", |
162 |
| - "GKeepNoteSide", |
163 |
| - "GKeepTodoItem", |
164 |
| - "GKeepTodoSide", |
165 |
| - "convert_gkeep_todo_to_tw", |
166 |
| - "convert_tw_to_gkeep_todo", |
167 |
| - ] |
168 |
| - ) |
169 |
| -except ImportError: |
170 |
| - pass |
171 |
| - |
172 |
| -# gkeep <> tw |
173 |
| -try: |
174 |
| - from syncall.tw_gkeep_utils import convert_gkeep_todo_to_tw, convert_tw_to_gkeep_todo |
175 |
| - |
176 |
| - __all__.extend( |
177 |
| - [ |
178 |
| - "convert_gkeep_todo_to_tw", |
179 |
| - "convert_tw_to_gkeep_todo", |
180 |
| - ] |
181 |
| - ) |
182 |
| -except ImportError: |
183 |
| - pass |
184 |
| - |
185 |
| -# filesytem ----------------------------------------------------------------------------------- |
186 |
| -try: |
187 |
| - from syncall.filesystem.filesystem_file import FilesystemFile |
188 |
| - from syncall.filesystem.filesystem_side import FilesystemSide |
189 |
| - |
190 |
| - __all__.extend(["FilesystemFile", "FilesystemSide"]) |
191 |
| -except ImportError: |
192 |
| - pass |
193 |
| - |
194 |
| - |
195 |
| -# filesytem <> gkeep -------------------------------------------------------------------------- |
196 |
| -try: |
197 |
| - from syncall.filesystem_gkeep_utils import ( |
198 |
| - convert_filesystem_file_to_gkeep_note, |
199 |
| - convert_gkeep_note_to_filesystem_file, |
200 |
| - ) |
201 |
| - |
202 |
| - __all__.extend( |
203 |
| - ["convert_filesystem_file_to_gkeep_note", "convert_gkeep_note_to_filesystem_file"] |
204 |
| - ) |
205 |
| -except ImportError: |
206 |
| - pass |
| 7 | +__all__ = ["version", "version_tuple"] |
0 commit comments