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.
Stay organized with collections
Save and categorize content based on your preferences.
google.appengine.api.apiproxy_rpc module
Summary
Base class for implementing RPC of API proxy stubs.
Contents
- class google.appengine.api.apiproxy_rpc.RPC(package=None, call=None, request=None, response=None, callback=None, deadline=None, stub=None)source
-
Bases: object
Base class for implementing RPC of API proxy stubs.
- To implement a RPC to make real asynchronous API call:
-
- CheckSuccess()source
If there was an exception, raise it now.
RaisesException of the API call or the callback, if any.
- Clone()source
-
Make a shallow copy of this instances attributes, excluding methods.
This is usually used when an RPC has been specified with some configuration
options and is being used as a template for multiple RPCs outside of a
developer’s easy control.
- MakeCall(package=None, call=None, request=None, response=None, callback=None, deadline=None)source
Makes an asynchronous (i.e. non-blocking) API call within the
specified package for the specified call method.
It will call the _MakeRealCall to do the real job.
Parametersas constructor; see __init__. (Same) –
Raises
- Wait()source
-
Waits on the API call associated with this RPC.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eRPC\u003c/code\u003e class serves as the foundation for implementing Remote Procedure Calls (RPCs) within API proxy stubs.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can extend the \u003ccode\u003eRPC\u003c/code\u003e class and override the \u003ccode\u003e_MakeCallImpl\u003c/code\u003e and/or \u003ccode\u003e_WaitImpl\u003c/code\u003e methods to define asynchronous API call behavior.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCheckSuccess\u003c/code\u003e method is used to raise any exceptions that occurred during the API call or callback process.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eClone\u003c/code\u003e method provides a way to create a shallow copy of an RPC instance, which is useful for templating multiple RPCs.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMakeCall\u003c/code\u003e method initiates an asynchronous API call, and the \u003ccode\u003eWait\u003c/code\u003e method allows waiting for the completion of that call.\u003c/p\u003e\n"]]],[],null,[]]