Questions tagged [protorpc]

Google ProtoRPC is a collection of libraries for decoratively describing messages and services for exchanging information over the web and a set of standards and accompanying library for making RPC via HTTP using various underlying message protocols. The ProtoRPC Python implementation is built in to Google App Engine.

Google ProtoRPC is made of two primary components.

The first component is a collection of libraries for decoratively describing messages and services for exchanging information over the web. Message and service description is done in-language in way analogous to using a Protocol Buffer .proto file. The implementation of this component will be specific for each supported language.

The second component is a set of standards and accompanying library for making RPC via HTTP using various underlying message protocols. This standard allows for the transmission of multiple underlying protocol formats and supplies implementations for JSON, URL encoded forms and Protocol Buffers. The standard includes service and message type discover-ability so that it is easy for developers to export their services and a form based interface so that it is not necessary to build a client in order to experiment with the service.

A primary goal of this project is to make it very easy for developers to get started defining services for their web based applications but allow them to evolve to become highly scalable implementations over time.

The ProtoRPC Python implementation is built in to Google App Engine.

53 questions
91
votes
2 answers

Protobuf RPC Service method without parameters

I'm trying to describe an RPC service using Google's Protocol Buffers service WhoamiService { rpc WhoAreYou() returns (Whoami) {} } message Whoami { optional bytes request_id = 1; optional string hostname = 2; optional string message =…
Michael Robinson
  • 1,985
  • 2
  • 21
  • 31
84
votes
20 answers

Visual Studio Code pylint: Unable to import 'protorpc'

I'm using pylint in Visual Studio Code to develop a Google App Engine (GAE) Cloud Endpoint API in Python. I'm unable to resolve a lint error. I don't know what's causing the error, but at a guess, pylint cannot find the protorpc library? The…
Jack
  • 10,313
  • 15
  • 75
  • 118
30
votes
1 answer

Endpoints API - protorpc validation error

I'm getting some weird errors from protorpc when I use endpoints. In this code: class Application(EndpointsModel): _message_fields_schema = ('id', 'name') created = ndb.DateTimeProperty(auto_now_add=True) name = ndb.StringProperty() …
5
votes
2 answers

Converting proto buffer to ProtoRPC

In a Python script, mylibrary.py, I use Protocol Buffers to model data using the following approach: Defining message formats in a .proto file. Use the protocol buffer compiler. Use the Python protocol buffer API to write and read messages in the…
Jack
  • 10,313
  • 15
  • 75
  • 118
3
votes
1 answer

Does GAE ProtoRPC support json data field for request

I am doing development on python and GAE, When I try to use ProtoRPC for web service, I cannot find a way to let my request contain a json format data in message. example like this: request format: {"owner_id":"some…
Ton
  • 199
  • 8
3
votes
1 answer

Support for query parameters in Dart for Google Endpoints?

I have a Dart application that's getting data from a custom Google endpoint. I'm using discoveryapis_generator to generate the client library. I would like to issue a query like the following: import endpoints_api.dart as EndpointsApi; api = new…
Tom Russell
  • 1,015
  • 2
  • 10
  • 29
3
votes
0 answers

Calling Google Protocol RPC API in Browser via JavaScript

I'm trying to access a Google Protocol RPC API with jQuery like this: jQuery.ajax({ url: some_url, type: "POST", data : some_params, contentType: "application/json; charset=utf-8", dataType : "json", success :…
3
votes
1 answer

When to use. ProtoRPC or REST

I primarily deal with REST json APIs at my work. So I am familiar with them. But for my own project I am trying out app engine as I believe it is a great fit. I had already started writing my logic in python (using ferris), and in reading more on…
skift
  • 1,027
  • 2
  • 16
  • 27
3
votes
4 answers

protoRPC: returning dict

How does one return a dict like object through protoRPC ? I tried using the FieldList to no avail. I only see the following field definitions: 'IntegerField', 'FloatField', 'BooleanField', 'BytesField', …
jldupont
  • 93,734
  • 56
  • 203
  • 318
2
votes
2 answers

ProtoRPC setup basic hello world doesn't work

i setup the ProtoRPC hello app and it doesn't work i'm using this to post to it $.ajax({url: "http://wordninjabackend.appspot.com/hello", type: 'POST', contentType: 'application/json', data: "{ my_name: Bob }", dataType: 'json', success:…
Roger Large
  • 105
  • 12
2
votes
2 answers

Webservice in GAE, call from a C# client

I have created a webapplication on Google App Engine that gets and sets data in datastore, using Python API and it's working fine. Now I want to access to that data from a client application, written in C# so I was thinking of creating a webservice…
zov
  • 4,092
  • 1
  • 16
  • 19
2
votes
3 answers

Make JSON-RPC jQuery plugin work with GAE ProtoRPC

I am trying to make these two libraries work together. But I am not sure they can connect out of the box. Before using JSON-RPC plugin I did it successfully with standard $.ajax functionality. Could you please give me some short example of how a…
Sergei Basharov
  • 51,276
  • 73
  • 200
  • 335
2
votes
0 answers

Google API Explorer on local host - 404 Not Found

I am running a webapp locally using dev_appserver.py My app is running properly on localhost:8080 When I try to access the Api endpoints explorer @ localhost:8080/_ah/api/explorer , I get 404 Error Console log: INFO 2017-11-07 05:59:24,864…
2
votes
2 answers

Google App Engine Python - Protorpc && Taskqueue

How to use Task Queue (Push Queue) with Protorpc. I have a landing page form that do multiple actions when sending it: Save the fields in the DataStore Send an email to the form's sender Send the fields to a third party application (let's say a…
2
votes
0 answers

GAE Endpoints ProtoRPC log request and response

For debug needs, I'm interested in being able to print the Headers, Request and Response of my Endpoints API. Obviously, I can print the request and the response explicitly in each Endpoints method that I write, but I want something more…
1
2 3 4