grpcio examples for python 2.7

290 views
Skip to first unread message

muata...@gmail.com

unread,
Sep 14, 2016, 12:49:09 PM9/14/16
to grpc.io
Good evening. I can't find any documentation to start grpc server use python 2.7. Any examples.
In examples i found, to start grpc server use concurence, that only available in py3.

Thanks for the answer

Nathaniel Manista

unread,
Sep 15, 2016, 12:23:10 AM9/15/16
to muata...@gmail.com, grpc.io
On Wed, Sep 14, 2016 at 9:49 AM, <muata...@gmail.com> wrote:
Good evening.

Good evening from California!

I can't find any documentation to start grpc server use python 2.7. Any examples.

All of our examples are supported to work with Python 2.7 and 3.4.

In examples i found, to start grpc server use concurence, that only available in py3.


Thanks for the answer

Thanks for the question. Would you be able to share with us why it is that you are working with Python 2.7 rather than some version of Python 3? There are many legitimate reasons, but we'd like to hear yours.
-Nathaniel

muata...@gmail.com

unread,
Sep 15, 2016, 12:50:45 AM9/15/16
to grpc.io, muata...@gmail.com
I work with python 3.5 and 2.7. We has two part of system. One part use python 2.7 and other - use 3.5.  We start move first system on 3.5, but we can't do it fast. Now we need to connect this part of the system and we check grpcio.

P.S. Thank you for your answer and sorry for my endlish :)


четверг, 15 сентября 2016 г., 7:23:10 UTC+3 пользователь Nathaniel Manista написал:

Nathaniel Manista

unread,
Sep 15, 2016, 12:54:05 AM9/15/16
to muata...@gmail.com, grpc.io
On Wed, Sep 14, 2016 at 9:50 PM, <muata...@gmail.com> wrote:
I work with python 3.5 and 2.7. We has two part of system. One part use python 2.7 and other - use 3.5.  We start move first system on 3.5, but we can't do it fast. Now we need to connect this part of the system and we check grpcio.

gRPC Python sounds like a great fit for your use - please let us know here or in our issue tracker what problems you encounter.
-Nathaniel

muata...@gmail.com

unread,
Sep 15, 2016, 1:10:57 AM9/15/16
to grpc.io, muata...@gmail.com
>>> gRPC Python sounds like a great fit for your use.
I think the same.

And another small question. A can't find mechanizm in documentation how can i create user-define type. I need something like decimal, but in "Scalar Value Types" i can get only python float type. A search in this group, but can find only this post. Maybe you have a small manual how can i create special type for my project?

четверг, 15 сентября 2016 г., 7:54:05 UTC+3 пользователь Nathaniel Manista написал:

Nathaniel Manista

unread,
Sep 15, 2016, 11:42:05 AM9/15/16
to Виталий Андросенко, Protocol Buffers, grpc.io
On Wed, Sep 14, 2016 at 10:10 PM, <muata...@gmail.com> wrote:
>>> gRPC Python sounds like a great fit for your use.
I think the same.

And another small question. A can't find mechanizm in documentation how can i create user-define type. I need something like decimal, but in "Scalar Value Types" i can get only python float type. A search in this group, but can find only this post. Maybe you have a small manual how can i create special type for my project?

This is more of a "how do I design my Protocol Buffers messages" question than a gRPC question; I certainly don't know the answer. Proto party people, your thoughts?
-Nathaniel

Nathaniel Manista

unread,
Sep 15, 2016, 11:48:58 AM9/15/16
to Виталий Андросенко, Protocol Buffers, grpc.io
+prot...@googlegroups.com once more with feeling

Feng Xiao

unread,
Sep 15, 2016, 4:14:28 PM9/15/16
to Nathaniel Manista, Виталий Андросенко, Protocol Buffers, grpc.io
Protobuf does not support defining custom field types. You need to represent your data using some existing protobuf field types and probably also write some helper functions to do translation between the proto type and the actual type you want to store.

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

Reply all
Reply to author
Forward
0 new messages