-
Notifications
You must be signed in to change notification settings - Fork 4
Protobuf metadata #94
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
Conversation
|
Hm, |
|
Does it make sense to include metadata as a part of results? Basically the same thing as in RelationalAI/rai-sdk-javascript#44 |
I believe it's printed correctly because no json serialization performed here |
are we using python2 or python3? The spec says that |
The SDK uses python 3, python 2 was deprecated on January 1, 2020 😢 |
| @@ -0,0 +1,45 @@ | |||
| # -*- coding: utf-8 -*- | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a little surprised that this file is coming out as _pb2 when the proto file has syntax = "proto3" in it 🤔 any idea why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I was also surprised the first time I generated the proto files but it seems like syntax = "proto3" has nothing to do with _pb2
grpc/grpc#15444 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the link, makes sense!
railib/api.py
Outdated
| txn.name = name.group(1).decode() | ||
| filename = re.match(b'.*filename="(.+?)"', disposition) | ||
| if not(filename is None): | ||
| txn.filename = name.group(1).decode() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bummer that requests-toolbelt doesn't parse this for us, but this seems like a good workaround…
Maybe we could call this variable txn_file or something instead of txn?
@denisgursky since I did also some code refactoring in this PR I think it would be better to address this change in a separate PR (probably when working on |
|
if no other updates are required, I'll merge by the end of the day thank you 🙏 |
|
In the future, please separate out code formatting changes into their own PR. It makes it next to impossible to review the actual changes. |
Yeah sorry for that 🙏 , didn't notice that this PR is getting really complicated to review, maybe a quick guideline on how to review this PR could help:
Please ignore the other changes since they are mainly related to code formatting |
|
Installing from source and trying to run the examples gives me: I need to run: Then everything works. Do we need to add that to the README or do you need to update |
|
Thanks @larf311 just updated the README file, it was missing the dependencies installation |
|
If no other updates are required, I'll merge this PR by the end of the day |
This PR adds support to: