We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3039d5b commit f09bef8Copy full SHA for f09bef8
dataikuapi/dss/project.py
@@ -1055,7 +1055,13 @@ def get_exported_bundle_archive_stream(self, bundle_id):
1055
1056
.. warning::
1057
1058
- this stream will monopolize the DSSClient until closed.
+ this stream will monopolize the DSSClient until closed, so the stream must be closed after use or used within a ``with`` statement. For example:
1059
+
1060
+ .. code-block:: python
1061
1062
+ with project.get_exported_bundle_archive_stream('v1') as fp:
1063
+ # use fp
1064
1065
"""
1066
return self.client._perform_raw("GET",
1067
"/projects/%s/bundles/exported/%s/archive" % (self.project_key, bundle_id))
0 commit comments