Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: codegen python classes from protos for schema extraction #3301

Merged
merged 4 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/frontend/console/src/protos/**/* linguist-generated=true
go.sum linguist-generated=true
go.work.sum linguist-generated=true
/python-runtime/ftl/src/ftl/protos/**/* linguist-generated=true
4 changes: 4 additions & 0 deletions backend/protos/buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ plugins:
- plugin: connect-es
out: ../../frontend/console/src/protos
opt: target=ts
- plugin: python
out: ../../python-runtime/ftl/src/ftl/protos
opt:
- pyi_out=../../python-runtime/ftl/src/ftl/protos
4 changes: 3 additions & 1 deletion python-runtime/ftl/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ authors = [
{ name = "Moe Jangda", email = "[email protected]" }
]
requires-python = ">=3.12"
dependencies = []
dependencies = [
"protobuf>=5.28.3",
]

[build-system]
requires = ["hatchling"]
Expand Down
82 changes: 82 additions & 0 deletions python-runtime/ftl/src/ftl/protos/xyz/block/ftl/v1/admin_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

160 changes: 160 additions & 0 deletions python-runtime/ftl/src/ftl/protos/xyz/block/ftl/v1/admin_pb2.pyi

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading