@@ -917,6 +917,14 @@ def artifacts(self, streamed=False, action=None, chunk_size=1024,
917
917
def trace (self , streamed = False , action = None , chunk_size = 1024 , ** kwargs ):
918
918
"""Get the build trace.
919
919
920
+ Args:
921
+ streamed (bool): If True the data will be processed by chunks of
922
+ `chunk_size` and each chunk is passed to `action` for
923
+ treatment.
924
+ action (callable): Callable responsible of dealing with chunk of
925
+ data.
926
+ chunk_size (int): Size of each chunk.
927
+
920
928
Returns:
921
929
str: The trace.
922
930
@@ -988,6 +996,12 @@ def blob(self, filepath, streamed=False, action=None, chunk_size=1024,
988
996
989
997
Args:
990
998
filepath (str): Path of the file to request.
999
+ streamed (bool): If True the data will be processed by chunks of
1000
+ `chunk_size` and each chunk is passed to `action` for
1001
+ treatment.
1002
+ action (callable): Callable responsible of dealing with chunk of
1003
+ data.
1004
+ chunk_size (int): Size of each chunk.
991
1005
992
1006
Returns:
993
1007
str: The content of the file
@@ -1751,6 +1765,12 @@ def repository_blob(self, sha, filepath, streamed=False, action=None,
1751
1765
Args:
1752
1766
sha (str): ID of the commit
1753
1767
filepath (str): Path of the file to return
1768
+ streamed (bool): If True the data will be processed by chunks of
1769
+ `chunk_size` and each chunk is passed to `action` for
1770
+ treatment.
1771
+ action (callable): Callable responsible of dealing with chunk of
1772
+ data.
1773
+ chunk_size (int): Size of each chunk.
1754
1774
1755
1775
Returns:
1756
1776
str: The file content
@@ -1771,6 +1791,12 @@ def repository_raw_blob(self, sha, streamed=False, action=None,
1771
1791
1772
1792
Args:
1773
1793
sha(str): ID of the blob
1794
+ streamed (bool): If True the data will be processed by chunks of
1795
+ `chunk_size` and each chunk is passed to `action` for
1796
+ treatment.
1797
+ action (callable): Callable responsible of dealing with chunk of
1798
+ data.
1799
+ chunk_size (int): Size of each chunk.
1774
1800
1775
1801
Returns:
1776
1802
str: The blob content
@@ -1831,6 +1857,12 @@ def repository_archive(self, sha=None, streamed=False, action=None,
1831
1857
1832
1858
Args:
1833
1859
sha (str): ID of the commit (default branch by default).
1860
+ streamed (bool): If True the data will be processed by chunks of
1861
+ `chunk_size` and each chunk is passed to `action` for
1862
+ treatment.
1863
+ action (callable): Callable responsible of dealing with chunk of
1864
+ data.
1865
+ chunk_size (int): Size of each chunk.
1834
1866
1835
1867
Returns:
1836
1868
str: The binary data of the archive.
0 commit comments