Julien Boeuf 36fab90026 Merge branch 'master' of github.com:grpc/grpc into ssl_force_client_auth há 10 anos atrás
..
interop 864b97b1d8 Upport python version há 10 anos atrás
src 36fab90026 Merge branch 'master' of github.com:grpc/grpc into ssl_force_client_auth há 10 anos atrás
README.md 05aafbc9d9 Update README.md há 10 anos atrás
requirements.txt 0e107a7f02 Disabling cython for now. há 10 anos atrás

README.md

gRPC Python

The Python facility of gRPC.

Status

Alpha : Ready for early adopters

PREREQUISITES

  • Python 2.7, virtualenv, pip
  • homebrew on Mac OS X, linuxbrew on Linux. These simplify the installation of the gRPC C core.

INSTALLATION

On Mac OS X, install homebrew. On Linux, install linuxbrew. Run the following command to install gRPC Python.

$ curl -fsSL https://goo.gl/getgrpc | bash -s python

This will download and run the gRPC install script, then install the latest version of the gRPC Python package. It also installs the Protocol Buffers compiler (protoc) and the gRPC protoc plugin for python.

EXAMPLES

Please read our online documentation for a Quick Start and a detailed example

BUILDING FROM SOURCE

  • Clone this repository
  • Build the gRPC core from the root of the gRPC Git repository

    $ make shared_c static_c
    
  • Use build_python.sh to build the Python code and install it into a virtual environment

    $ tools/run_tests/build_python.sh
    

TESTING

  • Use run_python.sh to run gRPC as it was installed into the virtual environment

    $ tools/run_tests/run_python.sh
    

PACKAGING

  • Install packaging dependencies

    $ pip install setuptools twine
    
  • Push to PyPI

    $ ../../tools/distrib/python/submit.py