Skip to content

Commit

Permalink
feat: launch transfer manager to GA (#1159)
Browse files Browse the repository at this point in the history
* feat: launch transfer manager to GA

* re-add import...
  • Loading branch information
andrewsg committed Oct 12, 2023
1 parent c7229f2 commit 5c90563
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
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

0 comments on commit 5c90563

Please sign in to comment.