HTTP/2-based RPC framework
Project description
gRPC Python
===========
Package for gRPC Python.
Installation
------------
gRPC Python is available for Linux, Mac OS X, and Windows running Python 2.7.
>From PyPI
~~~~~~~~~
If you are installing locally...
::
$ pip install grpcio
Else system wide (on Ubuntu)...
::
$ sudo pip install grpcio
If you're on Windows make sure that you installed the :code:`pip.exe` component
when you installed Python (if not go back and install it!) then invoke:
::
$ pip.exe install grpcio
Windows users may need to invoke :code:`pip.exe` from a command line ran as
administrator.
n.b. On Windows and on Mac OS X one *must* have a recent release of :code:`pip`
to retrieve the proper wheel from PyPI. Be sure to upgrade to the latest
version!
>From Source
~~~~~~~~~~~
Building from source requires that you have the Python headers (usually a
package named :code:`python-dev`).
::
$ export REPO_ROOT=grpc # REPO_ROOT can be any directory of your choice
$ git clone -b $(curl -L http://grpc.io/release) https://github.com/grpc/grpc $REPO_ROOT
$ cd $REPO_ROOT
$ git submodule update --init
# For the next two commands do `sudo pip install` if you get permission-denied errors
$ pip install -rrequirements.txt
$ GRPC_PYTHON_BUILD_WITH_CYTHON=1 pip install .
You cannot currently install Python from source on Windows. Things might work
out for you in MSYS2 (follow the Linux instructions), but it isn't officially
supported at the moment.
Troubleshooting
~~~~~~~~~~~~~~~
Help, I ...
* **... see a** :code:`pkg_resources.VersionConflict` **when I try to install
grpc**
This is likely because :code:`pip` doesn't own the offending dependency,
which in turn is likely because your operating system's package manager owns
it. You'll need to force the installation of the dependency:
:code:`pip install --ignore-installed $OFFENDING_DEPENDENCY`
For example, if you get an error like the following:
::
Traceback (most recent call last):
File "<string>", line 17, in <module>
...
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 509, in find
raise VersionConflict(dist, req)
pkg_resources.VersionConflict: (six 1.8.0 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.10'))
You can fix it by doing:
::
sudo pip install --ignore-installed six
* **... see the following error on some platforms**
::
/tmp/pip-build-U8pSsr/cython/Cython/Plex/Scanners.c:4:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
You can fix it by installing `python-dev` package. i.e
::
sudo apt-get install python-dev
===========
Package for gRPC Python.
Installation
------------
gRPC Python is available for Linux, Mac OS X, and Windows running Python 2.7.
>From PyPI
~~~~~~~~~
If you are installing locally...
::
$ pip install grpcio
Else system wide (on Ubuntu)...
::
$ sudo pip install grpcio
If you're on Windows make sure that you installed the :code:`pip.exe` component
when you installed Python (if not go back and install it!) then invoke:
::
$ pip.exe install grpcio
Windows users may need to invoke :code:`pip.exe` from a command line ran as
administrator.
n.b. On Windows and on Mac OS X one *must* have a recent release of :code:`pip`
to retrieve the proper wheel from PyPI. Be sure to upgrade to the latest
version!
>From Source
~~~~~~~~~~~
Building from source requires that you have the Python headers (usually a
package named :code:`python-dev`).
::
$ export REPO_ROOT=grpc # REPO_ROOT can be any directory of your choice
$ git clone -b $(curl -L http://grpc.io/release) https://github.com/grpc/grpc $REPO_ROOT
$ cd $REPO_ROOT
$ git submodule update --init
# For the next two commands do `sudo pip install` if you get permission-denied errors
$ pip install -rrequirements.txt
$ GRPC_PYTHON_BUILD_WITH_CYTHON=1 pip install .
You cannot currently install Python from source on Windows. Things might work
out for you in MSYS2 (follow the Linux instructions), but it isn't officially
supported at the moment.
Troubleshooting
~~~~~~~~~~~~~~~
Help, I ...
* **... see a** :code:`pkg_resources.VersionConflict` **when I try to install
grpc**
This is likely because :code:`pip` doesn't own the offending dependency,
which in turn is likely because your operating system's package manager owns
it. You'll need to force the installation of the dependency:
:code:`pip install --ignore-installed $OFFENDING_DEPENDENCY`
For example, if you get an error like the following:
::
Traceback (most recent call last):
File "<string>", line 17, in <module>
...
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 509, in find
raise VersionConflict(dist, req)
pkg_resources.VersionConflict: (six 1.8.0 (/usr/lib/python2.7/dist-packages), Requirement.parse('six>=1.10'))
You can fix it by doing:
::
sudo pip install --ignore-installed six
* **... see the following error on some platforms**
::
/tmp/pip-build-U8pSsr/cython/Cython/Plex/Scanners.c:4:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
You can fix it by installing `python-dev` package. i.e
::
sudo apt-get install python-dev
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
grpcio-1.2.0.tar.gz
(7.2 MB
view hashes)
Built Distributions
Close
Hashes for grpcio-1.2.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f4fb9f2035ac5a6aaa69ab25dd139fedff6aa635be447ec3310582d7068015d |
|
MD5 | 3e50d76b9eface9dabed37f893a850a4 |
|
BLAKE2b-256 | 7536993061ced855e727178879ed6c46f269e9fe757a95682a3c58f2b3a3bb05 |
Close
Hashes for grpcio-1.2.0-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf3b4f7354892158710a32c7b5720cd7f1433910c6bede3fb53378765a69cf17 |
|
MD5 | 36c329675645e5578e656a401ae5c3a8 |
|
BLAKE2b-256 | 377237210b2789d0a9a8b201561f143cfb22cf3fe72835ead3b34c0e4116ea2b |
Close
Hashes for grpcio-1.2.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df8b612e10f95e5c29c1cf35527f5d55a16de6bd8568323d0fba863e6470d765 |
|
MD5 | 5e3556b8b8f5c3b7711f3a38b7a898f6 |
|
BLAKE2b-256 | ff22e56fb441f8db43e394ff5d689ed7375ba1500044b4dd6721ea2a30161f3f |
Close
Hashes for grpcio-1.2.0-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7001b0af4d45f5b64e367863d997f66f314b3bb4b337525a0cb4582528a09ff3 |
|
MD5 | c04b425e7ba4c502639cbcc7fedc52fb |
|
BLAKE2b-256 | 59407e290a5341e5f6f3277612a192714eac7a3880dc21b8749457ac3adf6ca7 |
Close
Hashes for grpcio-1.2.0-cp36-cp36m-macosx_10_7_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 056808d22053bb295da614600a2f3f843a511e58f7d0beaa750c6aef95be1907 |
|
MD5 | 679ad2e8b2f8f1b3e89fa7674f10f9fd |
|
BLAKE2b-256 | cc5beba35c6db7f873b3813a11eca6fdc2482021bac3fc940e270c1b5dc24e9f |
Close
Hashes for grpcio-1.2.0-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f31845c1e5f0a72ed986a361c5e93c3920ff67aa29bc91eb5486ca9b9ad3373 |
|
MD5 | 1d31fc991325a45049b5a85f4adc11b1 |
|
BLAKE2b-256 | 67c0c1b4038a81459a1cfb58a8e0848915a1da65c8bbdb9cbf2d70036d589917 |
Close
Hashes for grpcio-1.2.0-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d9ba33d4842544c7d3dfc41d6cac44587f81450951428e46ff1f7e68ab0e1a4 |
|
MD5 | ba49ea5dc443c21c0441fb153dd33c6a |
|
BLAKE2b-256 | 150be7a2265176d1a06d170ecea9acf1f470ea22ea3636dd1e16622232e82ac3 |
Close
Hashes for grpcio-1.2.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a960b0be0ce9033faf840e0f15f60dbac6679e35c052d82255da7d8c3c59fe0 |
|
MD5 | 105c5b9ae076bb81489b1b6bd05f1656 |
|
BLAKE2b-256 | 25ab1ec83c4b4ae8773fc13a8726717e5feedaff5f1a4a1b1c36f5f7cb370f8d |
Close
Hashes for grpcio-1.2.0-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c37b6ec8a470c6b26ea4a9d853346aea7f1a56978b1c885cd13def7aaefaeb17 |
|
MD5 | a394a8f6b4425ee93e6001f121b688bf |
|
BLAKE2b-256 | abe48a65c756de669e2dc55e38178b4d9506207bb19591910ac457bca18b57d6 |
Close
Hashes for grpcio-1.2.0-cp35-cp35m-macosx_10_7_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1097930e73758de90261a698224a5338b6fe08b7ee0a29f1174979903fe660e |
|
MD5 | 4c64dd1b8d830b07e9c39a752bc21b79 |
|
BLAKE2b-256 | b5766efd14c294da84b05ef31fdb795685323cd544cbd42b2b25f01cfbd9143d |
Close
Hashes for grpcio-1.2.0-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b02921d9e64aefca8ac561709ed34755187dbaf844621f787da9c1c8508214c |
|
MD5 | 5d79059b2fc0a44572c69546df971130 |
|
BLAKE2b-256 | efcf7373d6e2ed9c1c82396dfe0c08c65d02c57c4f2b66df054dd78cc359876d |
Close
Hashes for grpcio-1.2.0-cp34-cp34m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6e6b238d8e224f991217f98ddfec8a6de28303fceeb20febcdb945c52494aa1 |
|
MD5 | 05f0c1fd4e5d9c17b90919ceb738104c |
|
BLAKE2b-256 | bd641b3da2e11ae68d77fa2bc04b6a16399caed79230cbfb961adf8653f8fa59 |
Close
Hashes for grpcio-1.2.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f67261dc0804a7373358e7ba574d9f74eb317b59d86e89ae7365952f1d7abe44 |
|
MD5 | 521a1de62dedb37ce8af8d58a21fff0a |
|
BLAKE2b-256 | fca441e4c1fef595e6f2f3b0e7afa97e214a78d6ca76616f8846cfa933fae299 |
Close
Hashes for grpcio-1.2.0-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbbae1399eedc2fdd7b024a3d031c65c09fad7334a0ecaf54f50d185103cffef |
|
MD5 | 227daddc2d45ebc813498288e0f5fb6d |
|
BLAKE2b-256 | 1aed0689ae92b479bf81bbb0941344a7b8ceeb678b98f877f98d7706a2b7ce6f |
Close
Hashes for grpcio-1.2.0-cp34-cp34m-macosx_10_7_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f9d7f51e4c735d9a759cbf9015669570754100ed82db48289baa9b2fe3a2c93 |
|
MD5 | 0eabf3a1b6b61a12574cf349dd646325 |
|
BLAKE2b-256 | 619671cfed027d7506bbd9a69470b8260525b99850e08d9bff1ffed5e6a04813 |
Close
Hashes for grpcio-1.2.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27d747aafa2e30f608f263c0ea5a8879c16d016872f7b693a197a6be31a2ef6e |
|
MD5 | 6ee16c1d6e42c59b11dc2a1ea26ef4c1 |
|
BLAKE2b-256 | 7b9e48503ea51ef3b9413ec4b1428e79e9b6bca72477ccd4da906a3ec745de9e |
Close
Hashes for grpcio-1.2.0-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23050490eec328b0f7c85275a9f3a21f37fa14bc05567b9efc1b2333bbc1c9c6 |
|
MD5 | b2ce10ac76cd2720b3045fcfa3d00e38 |
|
BLAKE2b-256 | 622adcc1599d79259fbb1208022973df45046e77eb1bb6ff9845c476ce2db953 |
Close
Hashes for grpcio-1.2.0-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d2e65b25629d30c034e08748a082bf29496bba5fb9d5cb561a8e1f71e2724a3 |
|
MD5 | e10eb67dd14f02948dfc3638924be444 |
|
BLAKE2b-256 | 3ae60d2b774ac575eeb9c4c79fb72367c9340539533c2189e5f1e7ac2dd6c1bd |
Close
Hashes for grpcio-1.2.0-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 312ce09baa919d29bd9fe16635357210c712b5839c2b44022c156d4444bc4393 |
|
MD5 | 82f4f0b202f8ca9ef22cf479fb5e8a3a |
|
BLAKE2b-256 | 0be575551da373922a7a7e517fe1c7ead297ed15adaab9bbc0a06d2c3123ebc4 |
Close
Hashes for grpcio-1.2.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62f69591e6420b174c42e50b2a5e0017b33631ef671bbd7faf14ada4f05d1df2 |
|
MD5 | cfeaba8c2c20925adb1b0fe143b00e30 |
|
BLAKE2b-256 | 2250faeddd34e2d23ef3b0af4c9a5579cca7e9f933bac3239db8eda41aff881d |
Close
Hashes for grpcio-1.2.0-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5386f03d10a8f4321a066f766266d16d21ad3ce26800583a8f2a55261eff8753 |
|
MD5 | 970fa9ed404d70afd9a1e82464fd0afd |
|
BLAKE2b-256 | d64eb4200442bc40006ac4c78ab1bdf4b58dcc09875dd68e84fb5d8ddd5c9a5f |
Close
Hashes for grpcio-1.2.0-cp27-cp27m-macosx_10_10_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d4c485c962de29504908e54858b721ccbe2813f829efc0949757c469f0157bd |
|
MD5 | 96297c8cba2dc9d33dc7c4c59edb3152 |
|
BLAKE2b-256 | f64a316d624a8a12c1e8084893074ff1b93bb479b3414604da80cbdd26693f32 |