gRPC/Protobuf message and service stubs for Fatehan
Project description
fatehan
gRPC/Protobuf message & service stubs.
Install
pip install fatehan-pypb
GRPC Usage
import grpc
from services import api_pb2, api_pb2_grpc
channel = grpc.insecure_channel("localhost:50051")
stub = api_pb2_grpc.ApiService(channel)
resp = stub.DeviceIndex(api_pb2.DeviceRequest(page=1, page_size=25))
print(resp)
Compile
python -m grpc_tools.protoc \
-I ../protocols \
--python_out=. \
--grpc_python_out=. \
--pyi_out=. \
$(find ../protocols -name "*.proto" -print)
Build And Test Locally
python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
Try a local install
python -m venv .venv && . .venv/bin/activate
pip install dist/fatehan-0.2.0-py3-none-any.whl
python -c "from devices import devices_pb2; print('ok', bool(devices_pb2))"
Publish
python -m twine upload dist/*
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
fatehan_pypb-0.2.0.tar.gz
(127.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
fatehan_pypb-0.2.0-py3-none-any.whl
(151.6 kB
view details)
File details
Details for the file fatehan_pypb-0.2.0.tar.gz.
File metadata
- Download URL: fatehan_pypb-0.2.0.tar.gz
- Upload date:
- Size: 127.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
926a67f7f2dd60fc1ee9cacbdf8f816e61cd0bb9a44fc5c115225db89b3c197c
|
|
| MD5 |
ebc638655b4fe74c371eeb121d1ec9b8
|
|
| BLAKE2b-256 |
3d0c81bff9f3490975e744c86fdc24668c3683955346a11c580e6f48f9d034ed
|
File details
Details for the file fatehan_pypb-0.2.0-py3-none-any.whl.
File metadata
- Download URL: fatehan_pypb-0.2.0-py3-none-any.whl
- Upload date:
- Size: 151.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55e48b1ca9aeb1e9d4de4bf268e0d997f4d94f9d3dc839a9abcd3dead5a0a55d
|
|
| MD5 |
01860c370b369f51d007afb9dbee0e93
|
|
| BLAKE2b-256 |
70b5502c1cce2e2163b14b79a0c6f2bddfe0c322da2bea6aa84df912cad8a30c
|