diff --git a/py_grpc/.gitignore b/py_grpc/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..4da280b660540db5bf09ef1a4163c27b248a435c
--- /dev/null
+++ b/py_grpc/.gitignore
@@ -0,0 +1,9 @@
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+/build/
+/dist/
+/tinode_grpc/GIT_VERSION
+*.egg-info/
\ No newline at end of file
diff --git a/py_grpc/README.md b/py_grpc/README.md
index a26e08b9e6d98241ac9ad2b3ef8ad1a36c101dc9..c47c63bf55690050d63709b0a8841a8c9ea67190 100644
--- a/py_grpc/README.md
+++ b/py_grpc/README.md
@@ -19,6 +19,6 @@ pip install tinode_grpc
 
 Don't modify included files directly. If you want to make changes, you have to install protobuffers tool chain and gRPC then generate the Python bindings from [`pbx/model.proto`](https://github.com/tinode/chat/tree/master/pbx/model.proto) (your path to `model.proto` may be different):
 ```
-python -m grpc_tools.protoc -I../pbx --python_out=. --grpc_python_out=. ../pbx/model.proto
+python -m grpc_tools.protoc -I../pbx --python_out=. --pyi_out=. --grpc_python_out=. ../pbx/model.proto
 ```
 The generated `model_pb2_grpc.py` imports `model_pb2.py` as a module instead of a package which is incompatible with python3 packaging system. Use `../pbx/py_fix.py` to apply a fix. This is only needed if you want to repackage the generated files.
diff --git a/py_grpc/setup.py b/py_grpc/setup.py
index 59d3fb05ee6c7833b0ee5a4ef3be796a7b857d18..30c6abaa03f1d0aa95934fa95ee0e3ae224a6dfa 100644
--- a/py_grpc/setup.py
+++ b/py_grpc/setup.py
@@ -23,7 +23,7 @@ setuptools.setup(
     license="Apache 2.0",
     keywords="chat messaging messenger im tinode",
     package_data={
-        "": ["GIT_VERSION"],
+        "": ["GIT_VERSION", "*.pyi"],
     },
     classifiers=[
         "Programming Language :: Python :: 2",