Add python client generation to /example#27
Add python client generation to /example#27sethcenterbar wants to merge 8 commits intopacedotdev:mainfrom
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
| "float32", "float64": | ||
| ftype.JSType = "number" | ||
| ftype.SwiftType = "Double" | ||
| ftype.PythonType = "int" |
There was a problem hiding this comment.
will this type also handle floating point numbers?
There was a problem hiding this comment.
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: