able-petabyte-69664
10/06/2024, 7:03 AMprotobuf_sources(
name="embedding",
python_source_root="src/python",
grpc=True
)
Here is the content of the requirements.txt:
alembic
asyncpg
cryptography
fastapi
grpcio
grpcio-reflection
grpcio-testing
grpcio-tools
httpx
hupper
nats-py
pyjwt
pydantic
pydantic-settings
pytest
python-dotenv
RAGatouille
requests
sqlalchemy[asyncio]
uvicorn
protobuf
What is the goal statement for generating Python code from the .proto file using GRPC? According to https://www.pantsbuild.org/stable/docs/python/integrations/protobuf-and-grpc#protobuf-and-source-roots it is also not clear to me how code is generated.
Best regardsbored-engineer-36738
11/08/2024, 7:36 PMambitious-guitar-68762
05/28/2025, 5:32 PMpants export-codegen ::
command that exported the *_pb2.py
and *_pb2_grpc.py
files at dist/codegen
path. But, I am unable to get them available at the path of their respective .proto
files.ambitious-guitar-68762
05/29/2025, 4:29 PMdist/export/python/virtualenvs
pants export --resolve=<resolve> --export-py-generated-sources-in-resolve=<resolve>