Swagger-codegen: Swagger-Codegen 3.0.0-SNAPSHOT doesn't support python by default, but I could not find the place to add python

Created on 4 Jul 2018  Â·  23Comments  Â·  Source: swagger-api/swagger-codegen

code branch : 3.0.0
build the latest version with the command : ./run-in-docker.sh mvn package

try the command : java -jar swagger-codegen-cli.jar langs , and see the result

Available languages: [dynamic-html, html, html2, java, jaxrs-cxf-client, jaxrs-cxf, inflector, jaxrs-cxf-cdi, jaxrs-spec, jaxrs-jersey, jaxrs-di, jaxrs-resteasy-eap, jaxrs-resteasy, spring, kotlin-client, kotlin-server, php, swift3, swift4, typescript-angular]

Looks like the source code using the "ServiceLoader" to load the CodegenConfig , but I could not see any 'META-INF/services/' in the src , I don't know how to add python support

All 23 comments

Hello @markshao,

All the files you need to add python support are located at swagger-codegen-generators repo.

If you are willing to add this language you can follow this guide. And i can help you with any doubt/support you required, specially for templates changes, which are explained here

@HugoMario
First, thanks for your comment.

Looks like I need to do some code migration from swagger-codegen to swagger-codegen-generator project for the Python support ?

@markshao
That's right, but that migration is basically a copy/paste. Python language is already updated with OAS 3 classes in swagger-codegen 3.0.0 branch

actually i can make the migration and ping you to check the changes, since i´m not a python developer (yet) it would be good to have some help.

it's my pleasure if you can help migrate the python generator , I can help check the python generator when you finished. We have a client project base on the OAS 3 python

@cognifloyd is it possbile share us a code branch that we can try to compile it in local?

I started trying to figure out what code needed to go where, and then I found that OpenAPITools already has OpenAPI 3.0 support for python, so that's what I'm using now.

Hi all, when should Python be supported in 3.0.0? Thank you.

we're planning to do that this month, maybe next week, i'll let you guys know here.

Hey there - Any update on python/flask support for swagger-codegen-cli 3.x?

Hey there - Any update on python/flask support for swagger-codegen-cli 3.x?

same question here

Hey there - Any update on python support for swagger-codegen-cli 3.x?

Hi- Any update on python support for swagger-codegen-cli 3.x?

Is there any update on the state of Python support in swagger-codegen-cli?

Guys, if it's an option openapi-generator supports Python

Thanks for the tip, we just found this and are investigating!

On Fri, Jan 11, 2019 at 11:53 AM Marcin Szymański notifications@github.com
wrote:

Guys, if it's an option openapi-generator supports Python

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/swagger-api/swagger-codegen/issues/8384#issuecomment-453582883,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AH5tLCquytQFg2uE-r3Zj66Io8VmoShdks5vCMGBgaJpZM4VB5L5
.

I've got experimental Python support almost working here; however, I need some support to get it working. Any advice would be appreciated.

The openapi-generator gives wrong code for my schema, and has similar issues to what's going wrong with my PR (oneOf issues).

hey @andrew-matteson , i can help you with that, i'm just a bit of lack of time. Once i have a chance i'll ping you.

hey @andrew-matteson, a python generator has been added. Can you please check it and let me know if works as expected? if it doesn't, please let me know and i'll work on a fix asap

hey guys, python generator has been added by https://github.com/swagger-api/swagger-codegen-generators/pull/292 . so going to close it but let me know if you find something wrong and i'll work on it asap.

Excellent! Thanks for the note. I'll take a look ASAP.

On Fri, Feb 8, 2019 at 7:56 PM HugoMario notifications@github.com wrote:

hey guys, python generator has been added by
swagger-api/swagger-codegen-generators#292
https://github.com/swagger-api/swagger-codegen-generators/pull/292 . so
going to close it but let me know if you find something wrong and i'll work
on it asap.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/swagger-api/swagger-codegen/issues/8384#issuecomment-461996088,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AH5tLEBut_HPf4DMlljp_XC3zOUlUJrzks5vLhysgaJpZM4VB5L5
.

@markshao i know it's been a while. but if you are still willing to check this it will be appreciated.

Was this page helpful?
0 / 5 - 0 ratings