Skip to content

Commit

Permalink
Merge pull request #15 from googleapis/main
Browse files Browse the repository at this point in the history
feat: Add "transfer_manager" module for concurrent uploads and downlo…
  • Loading branch information
rsaksham authored Nov 1, 2022
2 parents c504b11 + 9dcc684 commit 50c5767
Show file tree
Hide file tree
Showing 5 changed files with 1,007 additions and 2 deletions.
1 change: 1 addition & 0 deletions google/cloud/storage/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Constants used across google.cloud.storage modules."""

# Storage classes
Expand Down
6 changes: 4 additions & 2 deletions google/cloud/storage/fileio.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""Support for file-like I/O."""
"""Module for file-like access of blobs, usually invoked via Blob.open()."""

import io
import warnings
Expand Down Expand Up @@ -101,10 +101,12 @@ class BlobReader(io.BufferedIOBase):
- ``if_metageneration_match``
- ``if_metageneration_not_match``
- ``timeout``
Note that download_kwargs are also applied to blob.reload(), if a reload
is needed during seek().
"""

def __init__(self, blob, chunk_size=None, retry=DEFAULT_RETRY, **download_kwargs):
"""docstring note that download_kwargs also used for reload()"""
for kwarg in download_kwargs:
if kwarg not in VALID_DOWNLOAD_KWARGS:
raise ValueError(
Expand Down
Loading

0 comments on commit 50c5767

Please sign in to comment.