3 ms·
err... what server framework isn't supported? and how likely is it to be supported by gRPC? The list of supported languages and frameworks in Swagger Codegen is
by Illniyar 8y ago
err... what server framework isn't supported? and how likely is it to be supported by gRPC? The list of supported languages and frameworks in Swagger Codegen is huge.
- philwelch 8y agoIn my particular case, I want to use aiohttp on Python, which swagger codegen supports client generation for but not yet server generation (but see https://github.com/swagger-api/swagger-codegen/issues/7451 https://github.com/swagger-api/swagger-codegen/issues/7451). Admittedly, gRPC doesn't support asyncio either (https://github.com/grpc/grpc/issues/6046 https://github.com/grpc/grpc/issues/6046), but gRPC has its own server frameworks already, and is not as well suited for the kinds of applications where you'd want a Python server anyway. But Swagger Codegen is.
- wing328hk 8y agoWe've made some enhancements [1](e.g. OpenAPI 3.0 support) to the Python Flask generator in OpenAPI Generator. For aiohttp support in the Python Flask generator, I don't think anyone is working on that. Please let us know if you've time to make the contribution by opening an issue to start with and we can work with you to make it happen. (OpenAPI Generator is a fork of Swagger Codegen. For the reasons behind the fork, please refer to the Q&A [2]) [1] https://github.com/OpenAPITools/openapi-generator/pulls?q=is%3Apr+label%3A%22Server%3A+Python%22+is%3Aclosed https://github.com/OpenAPITools/openapi-generator/pulls?q=is... [2] https://github.com/OpenAPITools/openapi-generator/blob/master/docs/qna.md https://github.com/OpenAPITools/openapi-generator/blob/maste...
- philwelch 8y agoAs far as I know, aiohttp is an alternative to Flask, unless there are newer versions of Flask that somehow integrate it.
- wing328hk 8y agoThanks for the clarification. You're right. I've created https://github.com/OpenAPITools/openapi-generator/issues/1322 https://github.com/OpenAPITools/openapi-generator/issues/132... for tracking.