Python 2.7 has reached end of support and will be deprecated on January 31, 2026. After deprecation, you won't be able to deploy Python 2.7 applications, even if your organization previously used an organization policy to re-enable deployments of legacy runtimes. Your existing Python 2.7 applications will continue to run and receive traffic after their deprecation date. We recommend that you migrate to the latest supported version of Python.

google.appengine.api.files.shuffler module

Summary

Files API.

Deprecated since version 1.8.1: Use Google Cloud Storage Client library instead.

Files API Shuffler interface

Contents

google.appengine.api.files.shuffler.shuffle(job_name, input_file_list, output_file_list, callback)source

Shuffle mapreduce files using the shuffler service.

Parameters
  • job_name – unique shuffle job name as string.

  • input_file_list – list of files api file names to shuffle. Files should be in records format with serialized KeyValue protocol buffer as record.

  • output_file_list – list of files api file names to store shuffle result. Files should not be finalized. They will be of records format with serialized KeyValues protocol buffer as record.

  • callback –

    shuffle service call back specification. Can be either url - the task in default queue with default parameters will be enqueued. It can also be a dict with following keys:

    url: url to call back version: app version to call method: HTTP method to use (POST or GET) queue: queue name to enqueue a task in.

Raises

ShufflerUnavailableError if shuffler service is not available.

google.appengine.api.files.shuffler.available()source

Determine if shuffler service is available for the app.

Returns

True if shuffler service is available, False otherwise.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年06月16日 UTC.