Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Python] Proxy support in generated Python module #4639
Currently, the generated Python module does not support proxy usage. Is this something in the works? I've cobbled together some modifications to the code but am unsure of the best way to specify the configuration. My current setup uses an environment variable that is automatically detected and used at runtime. Using the requests library would also streamline this greatly.
2.1.0 but this appears to be the case in
Suggest a Fix
Apart from using requests, I have a patch (locally, not yet submitted as a PR) to detect the environment variable
@krmaxwell thanks for reporting the issue and proposing a fix.
For PHP, we've added the proxy-related properties to the configuration class: https://github.com/swagger-api/swagger-codegen/blob/master/samples/client/petstore/php/SwaggerClient-php/lib/Configuration.php#L144-L178
For Python, I think we can do something similar.