Skip to content

victoralvess/grpc-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gRPC with Python

This project was created for learning purposes. Feel free to do whatever you want with it ;-).

What is RPC?

This is all you need to have a basic understanding of the concept.

But basically you have remote objects (like OOP objects) and you can call their methods from a client that is running in another machine (or another physical or logical boundary) as if they were instanciated locally.

What is gRPC?

It is an implementation of RPC. If you want to know more, here's the link.

Why would I use it?

Because it's cool (?). And maybe it can be useful for you if you need to integrate multiple systems.

And learning is cool too (!).

How do I run it?

First, install the dependencies.

Please consider using a virtual environment for that.

$ python3 -m pip install -r requirements.txt

Server

$ python3 app/server.py

And now it's up and running!

Client

$ python3 app/client.py <operation> <a> <b>

<operation> := sum
<a> := INT | FLOAT
<b> := INT | FLOAT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages