postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.86k stars 840 forks source link

Batch extract requests into desired language (python) #6215

Open Anakin-Hao opened 5 years ago

Anakin-Hao commented 5 years ago

Is your feature request related to a problem? Please describe. I have many collections of requests written in postman. We want to extract them as python requests so that we can hook into other tools like locust.io.

Describe the solution you'd like An export / extract UI similar to how collection of postman requests are exported. Can start by extracting each request into its own function with code generated using "Generate code snippets" feature. Or, a python module that can run exported postman scripts. E.g. this repo (broken) https://github.com/k3rn3l-p4n1c/postpython

Describe alternatives you've considered Now I can manually click each request and use the "Generate code snippets" feature to extract them. But, we have thousands of requests to click through.

Additional context We have no plan to move away from postman. We want to use postman as it is: a very intuitive tool to to write / implement REST scripts. In fact, a tool with such a useful "language neutral" feature would attract more users.

Anakin-Hao commented 4 years ago

Any plan to implement this feature? It's nearly a year now. @numaanashraf

umeshp7 commented 3 years ago

@Anakin-Hao

We have been working on a feature to generate SDK from the entire collection that gives you the ability to use the requests in your code in a more consumable way. Currently this is only in NodeJS (request) but we are looking to add support for more languages soon. Would love to hear feedback on this.

Find the blog here - https://blog.postman.com/how-and-why-we-created-an-sdk-generator-for-postman-collections/ Repository - https://github.com/postmanlabs/postman-collection-code-generators

Let us know if something like this would also help for python.