I am a beginning programmer trying to retrieve information about
Android apps using the unofficial Android API: 
http://code.google.com/p/android-market-api/

I've taken the market.proto file from the link above and complied it
to a .py file. My understanding was that this would produce a Python
library of sorts that would let me interact with the Android Market
servers to get information. As I said, I'm a beginner with web
programming in general, so I've taken a look at how various other
Python API libraries work -- for instance, this Twitter library,
static.unto.net/python-twitter/0.5/doc/twitter.html , includes a
Twitter module that I can import and interact with -- or at least
that's my understanding.

However, I'm puzzled with the .py file that the ProtoBuf compiler
returned to me -- it's unlike anything I've seen before, and I'm not
quite sure how to use it to interact with the Android servers: that
is, if I'm even able to. The .py file, entitled market_pb2.py, is very
long, 1627 lines. It contains things like

    _APPSREQUEST_VIEWTYPE = descriptor.EnumDescriptor(
      name='ViewType',
      full_name='AppRequest.ViewType',
      filename=None

It also has about 50 lines that resemble this:

    _RESPONSECONTEXT.fields_by_name['result'].enum_type =
_RESPONSECONTEXT.RESULTTYPE

as well as classes at the bottom that look like this:

    class AppsRequest(message.Message):
      __metaclass__ = reflection.GeneratedProtocolMessageType
      DESCRIPTOR = _APPSREQUEST

      # @@protoc_insertion_point(class_scope:AppsRequest)

Any help/pushes in the right direction would be greatly, greatly
appreciated! Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to