Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: launch transfer manager to GA #1159

Merged
merged 3 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions google/cloud/storage/transfer_manager.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.

"""Concurrent media operations. This is a PREVIEW FEATURE: API may change."""
"""Concurrent media operations."""

import concurrent.futures

Expand Down Expand Up @@ -40,12 +40,6 @@
from google.resumable_media.requests.upload import XMLMPUPart
from google.resumable_media.common import DataCorruption

warnings.warn(
"The module `transfer_manager` is a preview feature. Functionality and API "
"may change. This warning will be removed in a future release."
)


TM_DEFAULT_CHUNK_SIZE = 32 * 1024 * 1024
DEFAULT_MAX_WORKERS = 8
MAX_CRC32C_ZERO_ARRAY_SIZE = 4 * 1024 * 1024
Expand Down Expand Up @@ -120,8 +114,6 @@ def upload_many(
):
"""Upload many files concurrently via a worker pool.

This function is a PREVIEW FEATURE: the API may change in a future version.

:type file_blob_pairs: List(Tuple(IOBase or str, 'google.cloud.storage.blob.Blob'))
:param file_blob_pairs:
A list of tuples of a file or filename and a blob. Each file will be
Expand Down Expand Up @@ -278,8 +270,6 @@ def download_many(
):
"""Download many blobs concurrently via a worker pool.

This function is a PREVIEW FEATURE: the API may change in a future version.

:type blob_file_pairs: List(Tuple('google.cloud.storage.blob.Blob', IOBase or str))
:param blob_file_pairs:
A list of tuples of blob and a file or filename. Each blob will be downloaded to the corresponding blob by using APIs identical to blob.download_to_file() or blob.download_to_filename() as appropriate.
Expand Down Expand Up @@ -432,8 +422,6 @@ def upload_many_from_filenames(
):
"""Upload many files concurrently by their filenames.

This function is a PREVIEW FEATURE: the API may change in a future version.

The destination blobs are automatically created, with blob names based on
the source filenames and the blob_name_prefix.

Expand Down Expand Up @@ -622,8 +610,6 @@ def download_many_to_path(
):
"""Download many files concurrently by their blob names.

This function is a PREVIEW FEATURE: the API may change in a future version.

The destination files are automatically created, with paths based on the
source blob_names and the destination_directory.

Expand Down Expand Up @@ -792,8 +778,6 @@ def download_chunks_concurrently(
):
"""Download a single file in chunks, concurrently.

This function is a PREVIEW FEATURE: the API may change in a future version.

In some environments, using this feature with mutiple processes will result
in faster downloads of large files.

Expand Down
4 changes: 1 addition & 3 deletions tests/unit/test_transfer_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@

import pytest

with pytest.warns(UserWarning):
from google.cloud.storage import transfer_manager

from google.cloud.storage import Blob
from google.cloud.storage import Client
from google.cloud.storage import transfer_manager

from google.api_core import exceptions

Expand Down