You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python/lib/sift_client/resources/channels.py
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -178,6 +178,7 @@ async def get_data(
178
178
start_time: datetime|None=None,
179
179
end_time: datetime|None=None,
180
180
limit: int|None=None,
181
+
ignore_cache: bool=False,
181
182
) ->dict[str, pd.DataFrame]:
182
183
"""Get data for one or more channels.
183
184
@@ -187,6 +188,7 @@ async def get_data(
187
188
start_time: The start time to get data for.
188
189
end_time: The end time to get data for.
189
190
limit: The maximum number of data points to return. Will be in increments of page_size or default page size defined by the call if no page_size is provided.
191
+
ignore_cache: Whether to ignore cached data and fetch fresh data from the server.
190
192
191
193
Returns:
192
194
A dictionary mapping channel names to pandas DataFrames containing the channel data.
@@ -200,6 +202,7 @@ async def get_data(
200
202
start_time=start_time,
201
203
end_time=end_time,
202
204
max_results=limit,
205
+
ignore_cache=ignore_cache,
203
206
)
204
207
205
208
asyncdefget_data_as_arrow(
@@ -210,6 +213,7 @@ async def get_data_as_arrow(
210
213
start_time: datetime|None=None,
211
214
end_time: datetime|None=None,
212
215
limit: int|None=None,
216
+
ignore_cache: bool=False,
213
217
) ->dict[str, pa.Table]:
214
218
"""Get data for one or more channels as pyarrow tables."""
Copy file name to clipboardExpand all lines: python/lib/sift_client/resources/sync_stubs/__init__.pyi
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -432,6 +432,7 @@ class ChannelsAPI:
432
432
start_time: datetime|None=None,
433
433
end_time: datetime|None=None,
434
434
limit: int|None=None,
435
+
ignore_cache: bool=False,
435
436
) ->dict[str, pd.DataFrame]:
436
437
"""Get data for one or more channels.
437
438
@@ -441,6 +442,7 @@ class ChannelsAPI:
441
442
start_time: The start time to get data for.
442
443
end_time: The end time to get data for.
443
444
limit: The maximum number of data points to return. Will be in increments of page_size or default page size defined by the call if no page_size is provided.
445
+
ignore_cache: Whether to ignore cached data and fetch fresh data from the server.
444
446
445
447
Returns:
446
448
A dictionary mapping channel names to pandas DataFrames containing the channel data.
@@ -455,6 +457,7 @@ class ChannelsAPI:
455
457
start_time: datetime|None=None,
456
458
end_time: datetime|None=None,
457
459
limit: int|None=None,
460
+
ignore_cache: bool=False,
458
461
) ->dict[str, pa.Table]:
459
462
"""Get data for one or more channels as pyarrow tables."""
0 commit comments