Skip to main content

HTTP/2-based RPC framework

Project description

compat_check_pypi

Package for gRPC Python.

Installation

gRPC Python is available for Linux, macOS, and Windows.

Installing 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 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 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 pip to retrieve the proper wheel from PyPI. Be sure to upgrade to the latest version!

Installing From Source

Building from source requires that you have the Python headers (usually a package named python-dev).

$ export REPO_ROOT=grpc  # REPO_ROOT can be any directory of your choice
$ git clone -b RELEASE_TAG_HERE https://github.com/grpc/grpc $REPO_ROOT
$ cd $REPO_ROOT
$ git submodule update --init

# To include systemd socket-activation feature in the build,
# first install the `libsystemd-dev` package, then :
$ export GRPC_PYTHON_BUILD_WITH_SYSTEMD=1

# For the next two commands do `sudo pip install` if you get permission-denied errors
$ pip install -r requirements.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 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

Versioning

gRPC Python is developed in a monorepo shared with implementations of gRPC in other programming languages. While the minor versions are released in lock-step with other languages in the repo (e.g. 1.63.0 is guaranteed to exist for all languages), patch versions may be specific to only a single language. For example, if 1.63.1 is a C++-specific patch, 1.63.1 may not be uploaded to PyPi. As a result, it is __not__ a good assumption that the latest patch for a given minor version on Github is also the latest patch for that same minor version on PyPi.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

grpcio_fips-1.70.0-1-cp310-cp310-win_amd64.whl (6.2 MB view details)

Uploaded CPython 3.10 Windows x86-64

grpcio_fips-1.70.0-1-cp38-cp38-win_amd64.whl (6.9 MB view details)

Uploaded CPython 3.8 Windows x86-64

grpcio_fips-1.70.0-0-cp310-cp310-win_amd64.whl (3.8 MB view details)

Uploaded CPython 3.10 Windows x86-64

grpcio_fips-1.70.0-0-cp38-cp38-win_amd64.whl (4.5 MB view details)

Uploaded CPython 3.8 Windows x86-64

File details

Details for the file grpcio_fips-1.70.0-1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for grpcio_fips-1.70.0-1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2c8d088208099a66395e67e8de4a17ef74dca889a3f1f5054c1635a8b0216013
MD5 fd4ee9ef8833663bd35c0e33b017b7ab
BLAKE2b-256 964a6468caad0b25531b224e01c132b0b49bc496df4a5cb409ed326808201eed

See more details on using hashes here.

File details

Details for the file grpcio_fips-1.70.0-1-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for grpcio_fips-1.70.0-1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c3dae3e898f8b6c40cfd40f27d883111c6f0659e09298599583dda69c754f938
MD5 564b5d6fff91057c21e3831e7331a572
BLAKE2b-256 2abc401ca78937d079ea9cc07e8c63391ae25f78a07249e69debf7225a390fcb

See more details on using hashes here.

File details

Details for the file grpcio_fips-1.70.0-0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for grpcio_fips-1.70.0-0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 db3f6524e68302bfd5ccdc6dc6d3404af5e51cd1a3eb997693a0ceb0dd936eb2
MD5 34629494743273f8649df2c764ea808a
BLAKE2b-256 8aee89b041e3ef2b08768e39a5bf594235f21feae35c544235334cf457f7ba4a

See more details on using hashes here.

File details

Details for the file grpcio_fips-1.70.0-0-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for grpcio_fips-1.70.0-0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c6161c9ced1a959a99dae2c3bf4f7f9d2f26b966bf8be081438352b5bd591f31
MD5 ae8b6118c346f692c26094e33e6010d4
BLAKE2b-256 ffa52c28ad92d65131c468da9830804ed3182882f2a2c621e50572a0f216a4bd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page