Module Expr Str Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str keyword ListLoad Str keyword Str keyword Str keyword NameLoad Assign NameStore Num Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr attr keyword NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr attr keyword NameLoad keyword Dict attr orelse Expr Call AttributeLoad NameLoad attr NameLoad Raise decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr attr keyword NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body Assign NameStore Dict Str Str Call AttributeLoad NameLoad attr Dict Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr attr keyword NameLoad keyword NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad Raise decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr UnaryOpUSub AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str ListLoad Dict Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body If CompareNotEq AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign AttributeStore AttributeLoad NameLoad attr attr Num Return Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad keyword NameLoad
N/A N/A Cloud Pub/Sub sample application. N/A base64 N/A json N/A logging N/A re N/A urllib apiclient errors google.appengine.api memcache google.appengine.ext ndb N/A jinja2 N/A webapp2 N/A constants N/A pubsub_utils N/A JINJA2 N/A N/A jinja2 Environment loader N/A N/A jinja2 FileSystemLoader templates extensions N/A jinja2.ext.autoescape variable_start_string (( variable_end_string )) autoescape True N/A MAX_ITEM 20 N/A MESSAGE_CACHE_KEY messages_key PubSubMessage N/A N/A ndb Model N/A N/A A model stores pubsub message and the time when it arrived. N/A message N/A N/A ndb StringProperty N/A created_at N/A N/A ndb DateTimeProperty auto_now_add True N/A InitHandler N/A N/A webapp2 RequestHandler N/A N/A Initializes the Pub/Sub resources. __init__ N/A N/A self request response N/A None None N/A N/A Calls the constructor of the super and does the local setup. N/A N/A N/A N/A super InitHandler self __init__ request response N/A N/A self client N/A N/A pubsub_utils get_client N/A N/A N/A self _setup_topic N/A N/A N/A self _setup_subscription N/A _setup_topic N/A N/A self N/A N/A N/A Creates a topic if it does not exist. N/A topic_name N/A N/A pubsub_utils get_full_topic_name N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A self client projects topics get topic topic_name execute N/A N/A N/A N/A errors HttpError N/A e N/A N/A N/A N/A N/A e resp status 404 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A self client projects topics create name topic_name body N/A execute N/A N/A N/A N/A logging exception e N/A N/A _setup_subscription N/A N/A self N/A N/A N/A Creates a subscription if it does not exist. N/A subscription_name N/A N/A pubsub_utils get_full_subscription_name N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A self client projects subscriptions get subscription subscription_name execute N/A N/A N/A N/A errors HttpError N/A e N/A N/A N/A N/A N/A e resp status 404 N/A N/A body N/A topic pushConfig N/A N/A pubsub_utils get_full_topic_name N/A pushEndpoint N/A N/A pubsub_utils get_app_endpoint_url N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A self client projects subscriptions create name subscription_name body body execute N/A N/A N/A N/A logging exception e N/A N/A get N/A N/A self N/A N/A N/A Shows an HTML form. N/A template N/A N/A JINJA2 get_template pubsub.html N/A endpoint_url N/A N/A re sub token=[^&]* token=REDACTED N/A N/A pubsub_utils get_app_endpoint_url N/A context N/A project topic subscription subscriptionEndpoint N/A N/A pubsub_utils get_project_id N/A N/A pubsub_utils get_app_topic_name N/A N/A pubsub_utils get_app_subscription_name endpoint_url N/A N/A N/A N/A self response write N/A N/A template render context N/A N/A FetchMessages N/A N/A webapp2 RequestHandler N/A N/A A handler returns messages. get N/A N/A self N/A N/A N/A Returns recent messages as a json. N/A messages N/A N/A memcache get MESSAGE_CACHE_KEY N/A N/A messages N/A N/A messages N/A N/A N/A N/A N/A N/A PubSubMessage query order N/A N/A PubSubMessage created_at fetch MAX_ITEM N/A N/A N/A memcache add MESSAGE_CACHE_KEY messages N/A N/A N/A N/A self response headers N/A Content-Type application/json; charset=UTF-8 N/A N/A N/A N/A self response write N/A N/A json dumps N/A N/A message message N/A message messages N/A N/A SendMessage N/A N/A webapp2 RequestHandler N/A N/A A handler publishes the given message. post N/A N/A self N/A N/A N/A Publishes the message via the Pub/Sub API. N/A client N/A N/A pubsub_utils get_client N/A message N/A N/A N/A self request get message N/A message N/A N/A topic_name N/A N/A pubsub_utils get_full_topic_name N/A body N/A messages N/A N/A data N/A N/A base64 b64encode N/A N/A message encode utf-8 N/A N/A N/A N/A N/A N/A N/A N/A N/A client projects topics publish topic topic_name body body execute N/A N/A N/A self response status 204 N/A N/A ReceiveMessage N/A N/A webapp2 RequestHandler N/A N/A A handler for push subscription endpoint.. post N/A N/A self N/A N/A N/A N/A N/A constants SUBSCRIPTION_UNIQUE_TOKEN N/A N/A N/A self request get token N/A N/A N/A N/A self response status 404 N/A N/A N/A N/A logging debug N/A N/A Post body: {} format N/A N/A self request body N/A message N/A N/A json loads N/A N/A N/A N/A urllib unquote N/A N/A self request body rstrip = N/A message_body N/A N/A base64 b64decode N/A str N/A N/A message N/A message N/A data N/A pubsub_message N/A PubSubMessage message message_body N/A N/A N/A pubsub_message put N/A N/A N/A memcache delete MESSAGE_CACHE_KEY N/A N/A N/A self response status 200 N/A N/A N/A APPLICATION N/A N/A webapp2 WSGIApplication N/A N/A / InitHandler N/A /fetch_messages FetchMessages N/A /send_message SendMessage N/A /_ah/push-handlers/receive_message ReceiveMessage debug True