@@ -66,7 +66,8 @@ def list_items(
66
66
desc : bool | None = None ,
67
67
fields : list [str ] | None = None ,
68
68
omit : list [str ] | None = None ,
69
- unwind : str | None = None ,
69
+ unwind : str | list [str ] | None = None , # TODO: change to list[str] only when doing a breaking release
70
+ # https://github.com/apify/apify-client-python/issues/255
70
71
skip_empty : bool | None = None ,
71
72
skip_hidden : bool | None = None ,
72
73
flatten : list [str ] | None = None ,
@@ -89,7 +90,8 @@ def list_items(
89
90
Note that the fields in the outputted items are sorted the same way as they are specified in the fields parameter.
90
91
You can use this feature to effectively fix the output format.
91
92
omit (list of str, optional): A list of fields which should be omitted from the items.
92
- unwind (str, optional): Name of a field which should be unwound.
93
+ unwind (str or list of str, optional): A list of fields which should be unwound, in order which they should be processed.
94
+ Each field should be either an array or an object.
93
95
If the field is an array then every element of the array will become a separate record and merged with parent object.
94
96
If the unwound field is an object then it is merged with the parent object.
95
97
If the unwound field is missing or its value is neither an array nor an object and therefore cannot be merged with a parent object,
@@ -145,7 +147,8 @@ def iterate_items(
145
147
desc : bool | None = None ,
146
148
fields : list [str ] | None = None ,
147
149
omit : list [str ] | None = None ,
148
- unwind : str | None = None ,
150
+ unwind : str | list [str ] | None = None , # TODO: change to list[str] only when doing a breaking release
151
+ # https://github.com/apify/apify-client-python/issues/255
149
152
skip_empty : bool | None = None ,
150
153
skip_hidden : bool | None = None ,
151
154
) -> Iterator [dict ]:
@@ -166,7 +169,8 @@ def iterate_items(
166
169
Note that the fields in the outputted items are sorted the same way as they are specified in the fields parameter.
167
170
You can use this feature to effectively fix the output format.
168
171
omit (list of str, optional): A list of fields which should be omitted from the items.
169
- unwind (str, optional): Name of a field which should be unwound.
172
+ unwind (str or list of str, optional): A list of fields which should be unwound, in order which they should be processed.
173
+ Each field should be either an array or an object.
170
174
If the field is an array then every element of the array will become a separate record and merged with parent object.
171
175
If the unwound field is an object then it is merged with the parent object.
172
176
If the unwound field is missing or its value is neither an array nor an object and therefore cannot be merged with a parent object,
@@ -225,7 +229,8 @@ def download_items(
225
229
delimiter : str | None = None ,
226
230
fields : list [str ] | None = None ,
227
231
omit : list [str ] | None = None ,
228
- unwind : str | None = None ,
232
+ unwind : str | list [str ] | None = None , # TODO: change to list[str] only when doing a breaking release
233
+ # https://github.com/apify/apify-client-python/issues/255
229
234
skip_empty : bool | None = None ,
230
235
skip_header_row : bool | None = None ,
231
236
skip_hidden : bool | None = None ,
@@ -258,7 +263,8 @@ def download_items(
258
263
Note that the fields in the outputted items are sorted the same way as they are specified in the fields parameter.
259
264
You can use this feature to effectively fix the output format.
260
265
omit (list of str, optional): A list of fields which should be omitted from the items.
261
- unwind (str, optional): Name of a field which should be unwound.
266
+ unwind (str or list of str, optional): A list of fields which should be unwound, in order which they should be processed.
267
+ Each field should be either an array or an object.
262
268
If the field is an array then every element of the array will become a separate record and merged with parent object.
263
269
If the unwound field is an object then it is merged with the parent object.
264
270
If the unwound field is missing or its value is neither an array nor an object and therefore cannot be merged with a parent object,
@@ -312,7 +318,8 @@ def get_items_as_bytes(
312
318
delimiter : str | None = None ,
313
319
fields : list [str ] | None = None ,
314
320
omit : list [str ] | None = None ,
315
- unwind : str | None = None ,
321
+ unwind : str | list [str ] | None = None , # TODO: change to list[str] only when doing a breaking release
322
+ # https://github.com/apify/apify-client-python/issues/255
316
323
skip_empty : bool | None = None ,
317
324
skip_header_row : bool | None = None ,
318
325
skip_hidden : bool | None = None ,
@@ -343,7 +350,8 @@ def get_items_as_bytes(
343
350
Note that the fields in the outputted items are sorted the same way as they are specified in the fields parameter.
344
351
You can use this feature to effectively fix the output format.
345
352
omit (list of str, optional): A list of fields which should be omitted from the items.
346
- unwind (str, optional): Name of a field which should be unwound.
353
+ unwind (str or list of str, optional): A list of fields which should be unwound, in order which they should be processed.
354
+ Each field should be either an array or an object.
347
355
If the field is an array then every element of the array will become a separate record and merged with parent object.
348
356
If the unwound field is an object then it is merged with the parent object.
349
357
If the unwound field is missing or its value is neither an array nor an object and therefore cannot be merged with a parent object,
@@ -401,7 +409,8 @@ def stream_items(
401
409
delimiter : str | None = None ,
402
410
fields : list [str ] | None = None ,
403
411
omit : list [str ] | None = None ,
404
- unwind : str | None = None ,
412
+ unwind : str | list [str ] | None = None , # TODO: change to list[str] only when doing a breaking release
413
+ # https://github.com/apify/apify-client-python/issues/255
405
414
skip_empty : bool | None = None ,
406
415
skip_header_row : bool | None = None ,
407
416
skip_hidden : bool | None = None ,
@@ -431,7 +440,8 @@ def stream_items(
431
440
Note that the fields in the outputted items are sorted the same way as they are specified in the fields parameter.
432
441
You can use this feature to effectively fix the output format.
433
442
omit (list of str, optional): A list of fields which should be omitted from the items.
434
- unwind (str, optional): Name of a field which should be unwound.
443
+ unwind (str or list of str, optional): A list of fields which should be unwound, in order which they should be processed.
444
+ Each field should be either an array or an object.
435
445
If the field is an array then every element of the array will become a separate record and merged with parent object.
436
446
If the unwound field is an object then it is merged with the parent object.
437
447
If the unwound field is missing or its value is neither an array nor an object and therefore cannot be merged with a parent object,
@@ -557,7 +567,8 @@ async def list_items(
557
567
desc : bool | None = None ,
558
568
fields : list [str ] | None = None ,
559
569
omit : list [str ] | None = None ,
560
- unwind : str | None = None ,
570
+ unwind : str | list [str ] | None = None , # TODO: change to list[str] only when doing a breaking release
571
+ # https://github.com/apify/apify-client-python/issues/255
561
572
skip_empty : bool | None = None ,
562
573
skip_hidden : bool | None = None ,
563
574
flatten : list [str ] | None = None ,
@@ -580,7 +591,8 @@ async def list_items(
580
591
Note that the fields in the outputted items are sorted the same way as they are specified in the fields parameter.
581
592
You can use this feature to effectively fix the output format.
582
593
omit (list of str, optional): A list of fields which should be omitted from the items.
583
- unwind (str, optional): Name of a field which should be unwound.
594
+ unwind (str or list of str, optional): A list of fields which should be unwound, in order which they should be processed.
595
+ Each field should be either an array or an object.
584
596
If the field is an array then every element of the array will become a separate record and merged with parent object.
585
597
If the unwound field is an object then it is merged with the parent object.
586
598
If the unwound field is missing or its value is neither an array nor an object and therefore cannot be merged with a parent object,
@@ -636,7 +648,8 @@ async def iterate_items(
636
648
desc : bool | None = None ,
637
649
fields : list [str ] | None = None ,
638
650
omit : list [str ] | None = None ,
639
- unwind : str | None = None ,
651
+ unwind : str | list [str ] | None = None , # TODO: change to list[str] only when doing a breaking release
652
+ # https://github.com/apify/apify-client-python/issues/255
640
653
skip_empty : bool | None = None ,
641
654
skip_hidden : bool | None = None ,
642
655
) -> AsyncIterator [dict ]:
@@ -657,7 +670,8 @@ async def iterate_items(
657
670
Note that the fields in the outputted items are sorted the same way as they are specified in the fields parameter.
658
671
You can use this feature to effectively fix the output format.
659
672
omit (list of str, optional): A list of fields which should be omitted from the items.
660
- unwind (str, optional): Name of a field which should be unwound.
673
+ unwind (str or list of str, optional): A list of fields which should be unwound, in order which they should be processed.
674
+ Each field should be either an array or an object.
661
675
If the field is an array then every element of the array will become a separate record and merged with parent object.
662
676
If the unwound field is an object then it is merged with the parent object.
663
677
If the unwound field is missing or its value is neither an array nor an object and therefore cannot be merged with a parent object,
@@ -717,7 +731,8 @@ async def get_items_as_bytes(
717
731
delimiter : str | None = None ,
718
732
fields : list [str ] | None = None ,
719
733
omit : list [str ] | None = None ,
720
- unwind : str | None = None ,
734
+ unwind : str | list [str ] | None = None , # TODO: change to list[str] only when doing a breaking release
735
+ # https://github.com/apify/apify-client-python/issues/255
721
736
skip_empty : bool | None = None ,
722
737
skip_header_row : bool | None = None ,
723
738
skip_hidden : bool | None = None ,
@@ -748,7 +763,8 @@ async def get_items_as_bytes(
748
763
Note that the fields in the outputted items are sorted the same way as they are specified in the fields parameter.
749
764
You can use this feature to effectively fix the output format.
750
765
omit (list of str, optional): A list of fields which should be omitted from the items.
751
- unwind (str, optional): Name of a field which should be unwound.
766
+ unwind (str or list of str, optional): A list of fields which should be unwound, in order which they should be processed.
767
+ Each field should be either an array or an object.
752
768
If the field is an array then every element of the array will become a separate record and merged with parent object.
753
769
If the unwound field is an object then it is merged with the parent object.
754
770
If the unwound field is missing or its value is neither an array nor an object and therefore cannot be merged with a parent object,
@@ -806,7 +822,8 @@ async def stream_items(
806
822
delimiter : str | None = None ,
807
823
fields : list [str ] | None = None ,
808
824
omit : list [str ] | None = None ,
809
- unwind : str | None = None ,
825
+ unwind : str | list [str ] | None = None , # TODO: change to list[str] only when doing a breaking release
826
+ # https://github.com/apify/apify-client-python/issues/255
810
827
skip_empty : bool | None = None ,
811
828
skip_header_row : bool | None = None ,
812
829
skip_hidden : bool | None = None ,
@@ -836,7 +853,8 @@ async def stream_items(
836
853
Note that the fields in the outputted items are sorted the same way as they are specified in the fields parameter.
837
854
You can use this feature to effectively fix the output format.
838
855
omit (list of str, optional): A list of fields which should be omitted from the items.
839
- unwind (str, optional): Name of a field which should be unwound.
856
+ unwind (str or list of str, optional): A list of fields which should be unwound, in order which they should be processed.
857
+ Each field should be either an array or an object.
840
858
If the field is an array then every element of the array will become a separate record and merged with parent object.
841
859
If the unwound field is an object then it is merged with the parent object.
842
860
If the unwound field is missing or its value is neither an array nor an object and therefore cannot be merged with a parent object,
0 commit comments