[google-appengine] Terminal python application accessing a Backend?

2014-05-09 Thread Icaro Alzuru

Hello everybody,

   I have an Android application with a Backend deployed in App Engine. 
>From the Endpoints in Android I can update the Datastore and do what I need.
   My problem is that I need to create a Terminal (Linux) application to 
access the data in the Datastore, the Terminal application can be written 
in Java or Python, but I would prefer Python. 
   I suppose that I need to create an endpoint for the python app, but I do 
not know how to do it. When I review the documentation of endpointscfg.py, 
it talks about Javascript, Android, and IOS; moreover, always shows 
examples with web pages, but I do not want to create any web page, this is 
only a script to reading and writing some data in datastore.
   Could you give me an advice about what to do? If you can give me a 
little example it would be perfect.
   Thank you very much,

   Icaro Alzuru

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Terminal python application accessing a Backend?

2014-05-09 Thread Vinny P
On Sat, Apr 26, 2014 at 7:42 PM, Icaro Alzuru  wrote:

>I have an Android application with a Backend deployed in App Engine.
> From the Endpoints in Android I can update the Datastore and do what I need.
>My problem is that I need to create a Terminal (Linux) application to
> access the data in the Datastore, the Terminal application can be written
> in Java or Python, but I would prefer Python.
>I suppose that I need to create an endpoint for the python app, but I
> do not know how to do it. When I review the documentation of
> endpointscfg.py, it talks about Javascript, Android, and IOS; moreover,
> always shows examples with web pages, but I do not want to create any web
> page, this is only a script to reading and writing some data in datastore.
>Could you give me an advice about what to do? If you can give me a
> little example it would be perfect.
>



App Engine Endpoints transfers all data as JSON objects, so conceptually
you could have your terminal app speak HTTP/JSON directly to the endpoint
paths.

But the easiest way would be for your Linux application to wrap the
bulkloader (
https://developers.google.com/appengine/docs/python/tools/uploadingdata ),
which can download and upload directly to the datastore.


-
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.