Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Str Str body ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias orelse ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr GeneratorExp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args defaults body Return Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad TryFinally body Assign NameStore BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If Call NameLoad AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Raise Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse If Call AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse If Call AttributeLoad NameLoad attr body Raise Call NameLoad Str orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assert CompareEq NameLoad Str Assign NameStore ListLoad Assert Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad BinOpAdd Str NameLoad NameLoad If NameLoad body Expr Call NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assert Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body If Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TupleLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad TupleLoad NameLoad NameLoad orelse If CompareNotEq NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str orelse Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Str Str NameLoad NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Assign NameStore AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpSub Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assert CompareEq Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr If CompareNotIn NameLoad AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return orelse If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assert CompareEq AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore ListComp TupleLoad NameLoad Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameLoad body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad orelse Assign NameStore NameLoad If CompareGt Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Str Str NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num If NameLoad body Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr NameLoad orelse Expr Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Assert CompareEq Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Lambda arguments args NameParam defaults BoolOpAnd CompareEq Call AttributeLoad NameLoad attr Num UnaryOpNot Call AttributeLoad NameLoad attr Assign NameStore ListComp NameLoad comprehension NameStore NameLoad Call NameLoad SubscriptLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr Index Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assert CompareEq AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str If NameLoad body For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Str orelse Assign NameStore Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Str NameLoad NameLoad NameLoad Assert CompareEq Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr Call AttributeLoad Call AttributeLoad NameLoad attr attr Num For NameStore NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Call AttributeLoad Call AttributeLoad NameLoad attr attr TupleLoad Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assert CompareEq AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad orelse Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If CompareNotIn NameLoad AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assert CompareEq AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If NameLoad body Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Str Str NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assert CompareEq AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Raise Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Raise Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Raise Call AttributeLoad NameLoad attr Str decorator_list decorator_list Assign NameStore Call NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr Slice Num Assign NameStore Call NameLoad NameLoad Assign NameStore Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpOr UnaryOpNot NameLoad CompareNotIn Str NameLoad CompareNotIn Str NameLoad body Raise Call NameLoad Str If CompareNotEq Call NameLoad SubscriptLoad NameLoad Index Str NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index Str Return SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad Call AttributeLoad Str attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str BoolOpOr NameLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If BoolOpAnd CompareIn Str NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Call NameLoad Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad Num NameLoad NameLoad body Expr Str If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Raise Call NameLoad Str TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str NameLoad TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore BoolOpOr NameLoad AttributeLoad NameLoad attr If UnaryOpNot NameLoad body If NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Num NameLoad body Expr Str If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad body Raise Call NameLoad Str If UnaryOpNot NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Call NameLoad Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If UnaryOpNot NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad orelse Raise Call NameLoad Str decorator_list Assign NameStore NameLoad
N/A N/A An apiproxy stub that calls a remote handler via HTTP.

This allows easy remote access to the App Engine datastore, and potentially any
of the other App Engine APIs, using the same interface you use when accessing
the service locally.

An example Python script:
---
from google.appengine.ext import db
from google.appengine.ext.remote_api import remote_api_stub
from myapp import models
import getpass

def auth_func():
  return (raw_input('Username:'), getpass.getpass('Password:'))

remote_api_stub.ConfigureRemoteApi(None, '/_ah/remote_api', auth_func,
                                   'my-app.appspot.com')

# Now you can access the remote datastore just as if your code was running on
# App Engine!

houses = models.House.all().fetch(100)
for a_house in q:
  a_house.doors += 1
db.put(houses)
---

A few caveats:
- Where possible, avoid iterating over queries. Fetching as many results as you
  will need is faster and more efficient. If you don't know how many results
  you need, or you need 'all of them', iterating is fine.
- Likewise, it's a good idea to put entities in batches. Instead of calling put
  for each individual entity, accumulate them and put them in batches using
  db.put(), if you can.
- Requests and responses are still limited to 1MB each, so if you have large
  entities or try and fetch or put many of them at once, your requests may fail.
 N/A google N/A os N/A pickle N/A random N/A sys N/A thread N/A threading N/A yaml N/A hashlib N/A N/A N/A N/A N/A os environ get APPENGINE_RUNTIME python27 N/A google.appengine.api apiproxy_rpc google.appengine.api apiproxy_stub_map google.appengine.datastore datastore_pb google.appengine.ext.remote_api remote_api_pb google.appengine.ext.remote_api remote_api_services google.appengine.runtime apiproxy_errors N/A google.appengine.api apiproxy_rpc google.appengine.api apiproxy_stub_map google.appengine.datastore datastore_pb google.appengine.ext.remote_api remote_api_pb google.appengine.ext.remote_api remote_api_services google.appengine.runtime apiproxy_errors google.appengine.tools appengine_rpc N/A _REQUEST_ID_HEADER HTTP_X_APPENGINE_REQUEST_ID Error N/A Exception N/A N/A Base class for exceptions in this module. N/A ConfigurationError N/A Error N/A N/A Exception for configuration errors. N/A UnknownJavaServerError N/A Error N/A N/A Exception for exceptions returned from a Java remote_api handler. N/A GetUserAgent N/A N/A N/A N/A N/A Determines the value of the 'User-agent' header to use for HTTP requests.

  Returns:
    String containing the 'user-agent' header value, which includes the SDK
    version, the platform information, and the version of Python;
    e.g., "remote_api/1.0.1 Darwin/9.2.0 Python/2.5.2".
   N/A product_tokens N/A N/A N/A N/A product_tokens append Google-remote_api/1.0 N/A N/A N/A product_tokens append N/A N/A appengine_rpc GetPlatformToken N/A python_version N/A N/A . join N/A N/A str i N/A i N/A sys version_info N/A N/A N/A product_tokens append N/A Python/%s python_version N/A N/A N/A join product_tokens N/A GetSourceName N/A N/A N/A N/A N/A Google-remote_api-1.0 N/A HashEntity N/A N/A entity N/A N/A N/A Return a very-likely-unique hash of an entity. N/A N/A N/A N/A N/A hashlib sha1 N/A N/A entity Encode digest N/A TransactionData N/A object N/A N/A Encapsulates data about an individual transaction. __init__ N/A N/A self thread_id is_xg N/A N/A N/A N/A self thread_id thread_id N/A N/A self preconditions N/A N/A N/A self entities N/A N/A N/A self is_xg is_xg N/A N/A RemoteStub N/A object N/A N/A A stub for calling services on a remote server over HTTP.

  You can use this to stub out any service that the remote server supports.
   N/A _local N/A N/A threading local __init__ N/A N/A self server path _test_stub_map N/A None N/A N/A Constructs a new RemoteStub that communicates with the specified server.

    Args:
      server: An instance of a subclass of
        google.appengine.tools.appengine_rpc.AbstractRpcServer.
      path: The path to the handler this stub should send requests to.
     N/A N/A self _server server N/A N/A self _path path N/A N/A self _test_stub_map _test_stub_map N/A _PreHookHandler N/A N/A self service call request response N/A N/A N/A N/A _PostHookHandler N/A N/A self service call request response N/A N/A N/A N/A MakeSyncCall N/A N/A self service call request response N/A N/A N/A N/A N/A self _PreHookHandler service call request response N/A N/A N/A test_stub N/A N/A self _test_stub_map N/A N/A N/A self _test_stub_map GetStub service N/A test_stub N/A N/A N/A N/A test_stub MakeSyncCall service call request response N/A N/A N/A N/A self _MakeRealSyncCall service call request response N/A N/A N/A N/A self _PostHookHandler service call request response N/A _GetRequestId N/A N/A cls N/A N/A N/A Returns the id of the request associated with the current thread. N/A N/A N/A cls _local request_id N/A classmethod _SetRequestId N/A N/A cls request_id N/A N/A N/A Set the id of the request associated with the current thread. N/A N/A N/A cls _local request_id request_id N/A classmethod _MakeRealSyncCall N/A N/A self service call request response N/A N/A N/A request_pb N/A N/A remote_api_pb Request N/A N/A N/A request_pb set_service_name service N/A N/A N/A request_pb set_method call N/A N/A N/A request_pb set_request N/A N/A request Encode N/A N/A hasattr N/A self _local request_id N/A N/A N/A N/A request_pb set_request_id N/A N/A self _local request_id N/A response_pb N/A N/A remote_api_pb Response N/A encoded_request N/A N/A request_pb Encode N/A encoded_response N/A N/A N/A self _server Send N/A self _path encoded_request N/A N/A N/A response_pb ParseFromString encoded_response N/A N/A N/A response_pb has_application_error N/A N/A error_pb N/A N/A response_pb application_error N/A N/A N/A apiproxy_errors ApplicationError N/A N/A error_pb code N/A N/A error_pb detail N/A N/A N/A N/A response_pb has_exception N/A N/A N/A N/A pickle loads N/A N/A response_pb exception N/A N/A N/A N/A response_pb has_java_exception N/A N/A N/A UnknownJavaServerError An unknown error has occured in the Java remote_api handler for this call. N/A N/A N/A N/A response ParseFromString N/A N/A response_pb response N/A CreateRPC N/A N/A self N/A N/A N/A N/A N/A apiproxy_rpc RPC stub self N/A N/A RemoteDatastoreStub N/A RemoteStub N/A N/A A specialised stub for accessing the App Engine datastore remotely.

  A specialised stub is required because there are some datastore operations
  that preserve state between calls. This stub makes queries possible.
  Transactions on the remote datastore are unfortunately still impossible.
   __init__ N/A N/A self server path default_result_count _test_stub_map N/A 20 None N/A N/A Constructor.

    Args:
      server: The server name to connect to.
      path: The URI path on the server.
      default_result_count: The number of items to fetch, by default, in a
        datastore Query or Next operation. This affects the batch size of
        query iterators.
     N/A N/A N/A N/A super RemoteDatastoreStub self __init__ server path _test_stub_map N/A N/A self default_result_count default_result_count N/A N/A self __queries N/A N/A N/A self __transactions N/A N/A N/A self __next_local_cursor 1 N/A N/A self __local_cursor_lock N/A N/A threading Lock N/A N/A self __next_local_tx 1 N/A N/A self __local_tx_lock N/A N/A threading Lock N/A MakeSyncCall N/A N/A self service call request response N/A N/A N/A N/A service datastore_v3 N/A explanation N/A N/A N/A N/A request IsInitialized explanation explanation N/A handler N/A getattr self N/A _Dynamic_ call None N/A handler N/A N/A N/A handler request response N/A N/A N/A N/A N/A super RemoteDatastoreStub self MakeSyncCall service call request response N/A N/A N/A response IsInitialized explanation explanation N/A _Dynamic_RunQuery N/A N/A self query query_result cursor_id N/A None N/A N/A N/A N/A query has_transaction N/A N/A txdata N/A N/A self __transactions N/A N/A N/A N/A N/A query transaction handle N/A tx_result N/A N/A remote_api_pb TransactionQueryResult N/A N/A N/A N/A super RemoteDatastoreStub self MakeSyncCall remote_datastore TransactionQuery query tx_result N/A N/A N/A query_result CopyFrom N/A N/A tx_result result N/A eg_key N/A N/A tx_result entity_group_key N/A encoded_eg_key N/A N/A eg_key Encode N/A eg_hash None N/A N/A N/A tx_result has_entity_group N/A N/A eg_hash N/A HashEntity N/A N/A tx_result entity_group N/A N/A old_key old_hash N/A N/A N/A txdata preconditions get encoded_eg_key N/A None None N/A N/A old_key None N/A N/A N/A N/A txdata preconditions N/A encoded_eg_key N/A eg_key eg_hash N/A N/A N/A old_hash eg_hash N/A N/A N/A N/A apiproxy_errors ApplicationError N/A N/A datastore_pb Error CONCURRENT_TRANSACTION Transaction precondition failed. N/A N/A N/A N/A N/A super RemoteDatastoreStub self MakeSyncCall datastore_v3 RunQuery query query_result N/A N/A cursor_id None N/A N/A N/A N/A N/A self __local_cursor_lock acquire N/A N/A N/A cursor_id N/A self __next_local_cursor N/A N/A self __next_local_cursor 1 N/A N/A N/A N/A N/A self __local_cursor_lock release N/A N/A N/A query_result more_results N/A N/A N/A N/A query set_offset N/A N/A N/A query offset N/A N/A query_result result_size N/A N/A N/A query has_limit N/A N/A N/A N/A query set_limit N/A N/A N/A query limit N/A N/A query_result result_size N/A N/A N/A self __queries N/A cursor_id query N/A N/A N/A N/A self __queries N/A cursor_id None N/A N/A N/A N/A N/A query_result mutable_cursor set_cursor cursor_id N/A _Dynamic_Next N/A N/A self next_request query_result N/A N/A N/A N/A N/A N/A next_request offset 0 N/A cursor_id N/A N/A N/A N/A next_request cursor cursor N/A N/A cursor_id N/A self __queries N/A N/A N/A N/A apiproxy_errors ApplicationError N/A N/A datastore_pb Error BAD_REQUEST N/A Cursor %d not found cursor_id N/A query N/A N/A self __queries N/A cursor_id N/A N/A query None N/A N/A N/A N/A query_result set_more_results False N/A N/A N/A N/A N/A next_request has_count N/A N/A N/A N/A query set_count N/A N/A next_request count N/A N/A N/A N/A query clear_count N/A N/A N/A self _Dynamic_RunQuery query query_result cursor_id N/A N/A N/A query_result set_skipped_results 0 N/A _Dynamic_Get N/A N/A self get_request get_response N/A N/A N/A txid None N/A N/A N/A get_request has_transaction N/A N/A txid N/A N/A N/A N/A get_request transaction handle N/A txdata N/A N/A self __transactions N/A txid N/A N/A N/A txdata thread_id N/A N/A thread get_ident Transactions are single-threaded. N/A keys N/A N/A k N/A N/A k Encode N/A k N/A N/A get_request key_list N/A new_request N/A N/A datastore_pb GetRequest N/A N/A key enckey keys N/A N/A N/A enckey N/A txdata entities N/A N/A N/A N/A N/A N/A new_request add_key CopyFrom key N/A N/A new_request get_request N/A N/A N/A N/A new_request key_size 0 N/A N/A N/A N/A N/A super RemoteDatastoreStub self MakeSyncCall datastore_v3 Get new_request get_response N/A N/A txid None N/A N/A newkeys N/A N/A new_request key_list N/A entities N/A N/A get_response entity_list N/A N/A key entity N/A zip newkeys entities N/A N/A entity_hash None N/A N/A N/A entity has_entity N/A N/A entity_hash N/A HashEntity N/A N/A entity entity N/A N/A N/A txdata preconditions N/A N/A N/A key Encode N/A key entity_hash N/A new_response N/A N/A datastore_pb GetResponse N/A it N/A iter N/A N/A get_response entity_list N/A N/A key enckey keys N/A N/A N/A enckey N/A txdata entities N/A N/A cached_entity N/A N/A N/A txdata entities N/A enckey N/A 1 N/A cached_entity N/A N/A N/A N/A N/A N/A N/A N/A new_response add_entity mutable_entity CopyFrom cached_entity N/A N/A N/A N/A new_response add_entity N/A N/A new_entity N/A N/A it next N/A N/A N/A new_entity has_entity N/A N/A N/A N/A N/A N/A N/A new_entity entity key key N/A N/A N/A N/A N/A new_response add_entity CopyFrom new_entity N/A N/A N/A N/A new_response add_entity N/A N/A N/A get_response CopyFrom new_response N/A _Dynamic_Put N/A N/A self put_request put_response N/A N/A N/A N/A N/A put_request has_transaction N/A N/A entities N/A N/A put_request entity_list N/A requires_id N/A N/A N/A x N/A N/A N/A N/A N/A x id 0 N/A N/A N/A x has_name N/A new_ents N/A e N/A e entities N/A requires_id N/A N/A N/A N/A N/A N/A N/A e key path element_list N/A -1 N/A id_request N/A N/A datastore_pb PutRequest N/A txid N/A N/A N/A N/A put_request transaction handle N/A txdata N/A N/A self __transactions N/A txid N/A N/A N/A txdata thread_id N/A N/A thread get_ident Transactions are single-threaded. N/A new_ents N/A N/A ent new_ents N/A N/A e N/A N/A id_request add_entity N/A N/A N/A N/A N/A e mutable_key CopyFrom N/A N/A ent key N/A N/A N/A e mutable_entity_group N/A id_response N/A N/A datastore_pb PutResponse N/A N/A txdata is_xg N/A N/A rpc_name GetIDsXG N/A N/A rpc_name GetIDs N/A N/A N/A N/A super RemoteDatastoreStub self MakeSyncCall remote_datastore rpc_name id_request id_response N/A N/A N/A N/A id_request entity_size N/A N/A id_response key_size N/A N/A key ent N/A zip N/A N/A id_response key_list new_ents N/A N/A N/A N/A N/A N/A ent mutable_key CopyFrom key N/A N/A N/A N/A N/A N/A N/A ent mutable_entity_group add_element CopyFrom N/A N/A N/A N/A key path element 0 N/A entity entities N/A N/A N/A N/A txdata entities N/A N/A N/A N/A N/A entity key Encode N/A N/A N/A entity key entity N/A N/A N/A N/A N/A put_response add_key CopyFrom N/A N/A entity key N/A N/A N/A N/A N/A super RemoteDatastoreStub self MakeSyncCall datastore_v3 Put put_request put_response N/A _Dynamic_Delete N/A N/A self delete_request response N/A N/A N/A N/A N/A delete_request has_transaction N/A N/A txid N/A N/A N/A N/A delete_request transaction handle N/A txdata N/A N/A self __transactions N/A txid N/A N/A N/A txdata thread_id N/A N/A thread get_ident Transactions are single-threaded. N/A key N/A N/A delete_request key_list N/A N/A N/A N/A txdata entities N/A N/A N/A key Encode N/A key None N/A N/A N/A N/A N/A super RemoteDatastoreStub self MakeSyncCall datastore_v3 Delete delete_request response N/A _Dynamic_BeginTransaction N/A N/A self request transaction N/A N/A N/A N/A N/A N/A self __local_tx_lock acquire N/A N/A N/A txid N/A self __next_local_tx N/A N/A N/A self __transactions N/A txid N/A TransactionData N/A N/A thread get_ident N/A N/A request allow_multiple_eg N/A N/A self __next_local_tx 1 N/A N/A N/A N/A N/A self __local_tx_lock release N/A N/A N/A transaction set_handle txid N/A N/A N/A transaction set_app N/A N/A request app N/A _Dynamic_Commit N/A N/A self transaction transaction_response N/A N/A N/A txid N/A N/A transaction handle N/A N/A txid N/A self __transactions N/A N/A N/A N/A apiproxy_errors ApplicationError N/A N/A datastore_pb Error BAD_REQUEST N/A Transaction %d not found. N/A txid N/A txdata N/A N/A self __transactions N/A txid N/A N/A N/A txdata thread_id N/A N/A thread get_ident Transactions are single-threaded. N/A N/A N/A self __transactions N/A txid N/A tx N/A N/A remote_api_pb TransactionRequest N/A N/A N/A tx set_allow_multiple_eg N/A txdata is_xg N/A N/A key txhash N/A N/A N/A txdata preconditions values N/A N/A precond N/A N/A tx add_precondition N/A N/A N/A N/A N/A precond mutable_key CopyFrom key N/A txhash N/A N/A N/A N/A precond set_hash txhash N/A puts N/A N/A tx mutable_puts N/A deletes N/A N/A tx mutable_deletes N/A N/A key entity N/A N/A N/A txdata entities values N/A N/A entity N/A N/A N/A N/A N/A N/A puts add_entity CopyFrom entity N/A N/A N/A N/A N/A N/A deletes add_key CopyFrom key N/A N/A N/A N/A super RemoteDatastoreStub self MakeSyncCall remote_datastore Transaction tx N/A N/A datastore_pb PutResponse N/A _Dynamic_Rollback N/A N/A self transaction transaction_response N/A N/A N/A txid N/A N/A transaction handle N/A N/A N/A N/A self __local_tx_lock acquire N/A N/A N/A N/A txid N/A self __transactions N/A N/A N/A N/A apiproxy_errors ApplicationError N/A N/A datastore_pb Error BAD_REQUEST N/A Transaction %d not found. N/A txid N/A txdata N/A N/A self __transactions N/A txid N/A N/A N/A txdata thread_id N/A N/A thread get_ident Transactions are single-threaded. N/A N/A N/A self __transactions N/A txid N/A N/A N/A N/A N/A self __local_tx_lock release N/A _Dynamic_CreateIndex N/A N/A self index id_response N/A N/A N/A N/A N/A apiproxy_errors CapabilityDisabledError The remote datastore does not support index manipulation. N/A _Dynamic_UpdateIndex N/A N/A self index void N/A N/A N/A N/A N/A apiproxy_errors CapabilityDisabledError The remote datastore does not support index manipulation. N/A _Dynamic_DeleteIndex N/A N/A self index void N/A N/A N/A N/A N/A apiproxy_errors CapabilityDisabledError The remote datastore does not support index manipulation. N/A N/A N/A ALL_SERVICES N/A set N/A remote_api_services SERVICE_PB_MAP GetRemoteAppIdFromServer N/A N/A server path remote_token N/A None N/A N/A Return the app id from a connection to an existing server.

  Args:
    server: An appengine_rpc.AbstractRpcServer
    path: The path to the remote_api handler for your app
      (for example, '/_ah/remote_api').
    remote_token: Token to validate that the response was to this request.
  Returns:
    App ID as reported by the remote server.
  Raises:
    ConfigurationError: The server returned an invalid response.
   N/A N/A remote_token N/A N/A N/A N/A random seed N/A remote_token N/A N/A str N/A N/A random random N/A 2 N/A remote_token N/A str remote_token N/A urlargs N/A rtok remote_token N/A response N/A N/A server Send path payload None urlargs N/A N/A N/A N/A response startswith { N/A N/A N/A ConfigurationError N/A Invalid response received from server: %s response N/A app_info N/A N/A yaml load response N/A N/A N/A app_info N/A rtok app_info N/A app_id app_info N/A N/A N/A ConfigurationError Error parsing app_id lookup response N/A N/A N/A str N/A app_info N/A rtok remote_token N/A N/A N/A ConfigurationError N/A Token validation failed during app_id lookup. (sent %s, got %s) N/A N/A repr remote_token N/A repr N/A app_info N/A rtok N/A N/A app_info N/A app_id N/A ConfigureRemoteApiFromServer N/A N/A server path app_id services default_auth_domain use_remote_datastore N/A None None True N/A N/A Does necessary setup to allow easy remote access to App Engine APIs.

  Args:
    server: An AbstractRpcServer
    path: The path to the remote_api handler for your app
      (for example, '/_ah/remote_api').
    app_id: The app_id of your app, as declared in app.yaml.
    services: A list of services to set up stubs for. If specified, only those
      services are configured; by default all supported services are configured.
    default_auth_domain: The authentication domain to use by default.
    use_remote_datastore: Whether to use RemoteDatastoreStub instead of passing
      through datastore requests. RemoteDatastoreStub batches transactional
      datastore requests since, in production, datastore requires are scoped to
      a single request.

  Raises:
    urllib2.HTTPError: if app_id is not provided and there is an error while
      retrieving it.
    ConfigurationError: if there is a error configuring the Remote API.
   N/A N/A services None N/A N/A services N/A set ALL_SERVICES N/A N/A services N/A set services N/A unsupported N/A N/A services difference ALL_SERVICES N/A unsupported N/A N/A N/A ConfigurationError N/A Unsupported service(s): %s N/A N/A N/A ,  join unsupported N/A N/A N/A os environ N/A APPLICATION_ID app_id N/A N/A N/A N/A os environ setdefault AUTH_DOMAIN N/A default_auth_domain gmail.com N/A N/A apiproxy_stub_map apiproxy N/A N/A apiproxy_stub_map APIProxyStubMap N/A N/A N/A datastore_v3 services use_remote_datastore N/A N/A N/A N/A services remove datastore_v3 N/A datastore_stub N/A RemoteDatastoreStub server path N/A N/A N/A N/A apiproxy_stub_map apiproxy RegisterStub datastore_v3 datastore_stub N/A stub N/A RemoteStub server path N/A service services N/A N/A N/A N/A N/A apiproxy_stub_map apiproxy RegisterStub service stub N/A GetRemoteAppId N/A N/A servername path auth_func rpc_server_factory rtok secure save_cookies N/A N/A appengine_rpc HttpRpcServer None False False N/A N/A Get the remote appid as reported at servername/path.

  This will also return an AbstractRpcServer server, which can be used with
  ConfigureRemoteApiFromServer.

  Args:
    servername: The hostname your app is deployed on.
    path: The path to the remote_api handler for your app
      (for example, '/_ah/remote_api').
    auth_func: A function that takes no arguments and returns a
      (username, password) tuple. This will be called if your application
      requires authentication to access the remote_api handler (it should!)
      and you do not already have a valid auth cookie.
      <app_id>.appspot.com.
    rpc_server_factory: A factory to construct the rpc server for the datastore.
    rtok: The validation token to sent with app_id lookups. If None, a random
      token is used.
    secure: Use SSL when communicating with the server.
    save_cookies: Forwarded to rpc_server_factory function.

  Returns:
    (app_id, server): The application ID and an AbstractRpcServer.
   N/A server N/A rpc_server_factory servername auth_func N/A GetUserAgent N/A GetSourceName save_cookies save_cookies debug_data False secure secure N/A app_id N/A GetRemoteAppIdFromServer server path rtok N/A N/A app_id server N/A N/A _OAUTH_SCOPES N/A https://www.googleapis.com/auth/appengine.apis https://www.googleapis.com/auth/userinfo.email ConfigureRemoteApiForOAuth N/A N/A servername path secure service_account key_file_path oauth2_parameters save_cookies auth_tries rpc_server_factory app_id N/A True None None None False 3 None None N/A N/A Does necessary setup to allow easy remote access to App Engine APIs.

  This function uses OAuth2 with Application Default Credentials
  to communicate with App Engine APIs.

  For more information on Application Default Credentials, see:
  https://developers.google.com/accounts/docs/application-default-credentials

  Args:
    servername: The hostname your app is deployed on.
    path: The path to the remote_api handler for your app
      (for example, '/_ah/remote_api').
    secure: If true, will use SSL to communicate with server. Unlike
      ConfigureRemoteApi, this is true by default.
    service_account: The email address of the service account to use for
      making OAuth requests. If none, the application default will be used
      instead.
    key_file_path: The path to a .p12 file containing the private key for
      service_account. Must be set if service_account is provided.
    oauth2_parameters: None, or an
      appengine_rpc_httplib2.HttpRpcServerOAuth2.OAuth2Parameters object
      representing the OAuth2 parameters for this connection.
    save_cookies: If true, save OAuth2 information in a file.
    auth_tries: Number of attempts to make to authenticate.
    rpc_server_factory: Factory to make RPC server instances.
    app_id: The app_id of your app, as declared in app.yaml, or None.

  Returns:
    server, a server which may be useful for calling the application directly.

  Raises:
    urllib2.HTTPError: if there is an error while retrieving the app id.
    ConfigurationError: if there is a error configuring the DatstoreFileStub.
    ImportError: if the oauth2client or appengine_rpc_httplib2
      module is not available.
    ValueError: if only one of service_account and key_file_path is provided.
   N/A N/A N/A bool service_account N/A bool key_file_path N/A N/A N/A ValueError Must provide both service_account and key_file_path. N/A N/A oauth2client client N/A N/A N/A ImportError N/A e N/A N/A N/A ImportError N/A Use of OAuth credentials requires the oauth2client module: %s e N/A N/A google.appengine.tools appengine_rpc_httplib2 N/A N/A N/A ImportError N/A e N/A N/A N/A ImportError N/A Use of OAuth credentials requires the appengine_rpc_httplib2 module. %s e N/A rpc_server_factory N/A rpc_server_factory N/A appengine_rpc_httplib2 HttpRpcServerOAuth2 N/A N/A oauth2_parameters N/A N/A key_file_path N/A N/A N/A N/A client HAS_CRYPTO N/A N/A N/A ImportError Use of a key file to access the Remote API requires an encryption library. Please install either PyOpenSSL or PyCrypto 2.6 or later. N/A N/A open key_file_path rb key_file N/A N/A key N/A N/A key_file read N/A credentials N/A N/A client SignedJwtAssertionCredentials service_account key _OAUTH_SCOPES N/A N/A credentials N/A N/A N/A client GoogleCredentials get_application_default N/A credentials N/A N/A credentials create_scoped _OAUTH_SCOPES N/A oauth2_parameters N/A N/A N/A appengine_rpc_httplib2 HttpRpcServerOAuth2 OAuth2Parameters access_token None client_id None client_secret None scope _OAUTH_SCOPES refresh_token None credential_file None credentials credentials N/A N/A ConfigureRemoteApi app_id app_id path path auth_func oauth2_parameters servername servername secure secure save_cookies save_cookies auth_tries auth_tries rpc_server_factory rpc_server_factory N/A ConfigureRemoteApi N/A N/A app_id path auth_func servername rpc_server_factory rtok secure services default_auth_domain save_cookies auth_tries use_remote_datastore N/A None N/A appengine_rpc HttpRpcServer None False None None False 3 True N/A N/A Does necessary setup to allow easy remote access to App Engine APIs.

  Either servername must be provided or app_id must not be None.  If app_id
  is None and a servername is provided, this function will send a request
  to the server to retrieve the app_id.

  Note that if the app_id is specified, the internal appid must be used;
  this may include a partition and a domain. It is often easier to let
  remote_api_stub retrieve the app_id automatically.

  Args:
    app_id: The app_id of your app, as declared in app.yaml, or None.
    path: The path to the remote_api handler for your app
      (for example, '/_ah/remote_api').
    auth_func: If rpc_server_factory=appengine_rpc.HttpRpcServer, auth_func is
      a function that takes no arguments and returns a
      (username, password) tuple. This will be called if your application
      requires authentication to access the remote_api handler (it should!)
      and you do not already have a valid auth cookie.
      If rpc_server_factory=appengine_rpc_httplib2.HttpRpcServerOAuth2,
      auth_func is appengine_rpc_httplib2.HttpRpcServerOAuth2.OAuth2Parameters.
    servername: The hostname your app is deployed on. Defaults to
      <app_id>.appspot.com.
    rpc_server_factory: A factory to construct the rpc server for the datastore.
    rtok: The validation token to sent with app_id lookups. If None, a random
      token is used.
    secure: Use SSL when communicating with the server.
    services: A list of services to set up stubs for. If specified, only those
      services are configured; by default all supported services are configured.
    default_auth_domain: The authentication domain to use by default.
    save_cookies: Forwarded to rpc_server_factory function.
    auth_tries: Number of attempts to make to authenticate.
    use_remote_datastore: Whether to use RemoteDatastoreStub instead of passing
      through datastore requests. RemoteDatastoreStub batches transactional
      datastore requests since, in production, datastore requires are scoped to
      a single request.

  Returns:
    server, the server created by rpc_server_factory, which may be useful for
      calling the application directly.

  Raises:
    urllib2.HTTPError: if app_id is not provided and there is an error while
      retrieving it.
    ConfigurationError: if there is a error configuring the DatstoreFileStub.
   N/A N/A N/A servername N/A app_id N/A N/A N/A ConfigurationError app_id or servername required N/A N/A servername N/A N/A servername N/A %s.appspot.com N/A app_id N/A server N/A rpc_server_factory servername auth_func N/A GetUserAgent N/A GetSourceName save_cookies save_cookies auth_tries auth_tries debug_data False secure secure N/A N/A app_id N/A N/A app_id N/A GetRemoteAppIdFromServer server path rtok N/A N/A ConfigureRemoteApiFromServer server path app_id services default_auth_domain use_remote_datastore N/A server N/A MaybeInvokeAuthentication N/A N/A N/A N/A N/A Sends an empty request through to the configured end-point.

  If authentication is necessary, this will cause the rpc_server to invoke
  interactive authentication.
   N/A datastore_stub N/A N/A N/A apiproxy_stub_map apiproxy GetStub datastore_v3 N/A N/A isinstance datastore_stub RemoteStub N/A N/A N/A N/A N/A datastore_stub _server Send N/A datastore_stub _path payload None N/A N/A N/A ConfigurationError remote_api is not configured. N/A N/A ConfigureRemoteDatastore ConfigureRemoteApi