-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add python client generation to /example #27
base: main
Are you sure you want to change the base?
Add python client generation to /example #27
Conversation
This statement seems pretty generic. I'm throwing in int for now, but should we look at breaking this into a few different cases (int, double, float)?
|
We may need to name the generated file differently for python, as you can't import python files with periods in the name. for example, I cannot import the following but I can import This is likely because it's parsing for .py. |
@sethcenterbar What was the status on this in the end? Did you get it working? |
Hey @matryer, I think it was working. I'm pretty sure I was looking for feedback here. Honestly, I'd have to open this back up and poke around. If you're happy with the basic implementation, I'll take some time this week to finish it up.
|
parser/parser.go
Outdated
case "int", "int16", "int32", "int64", | ||
"uint", "uint16", "uint32", "uint64", | ||
"float32", "float64": | ||
ftype.JSType = "number" | ||
ftype.SwiftType = "Double" | ||
ftype.PythonType = "int" |
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.
will this type also handle floating point numbers?
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.
Good catch. I believe that should be a float. Will update.
1. Add python client to /example
2. [WIP] Generate python classes from def.Objects
Requires: