- This module opens the Postman Collection json and parse it and return the cURL Pass the collection path to main function, and it returns a list of curls.
- At first create an instance of Postman_Parser class :
postman = Postman_Parser()
- Postman_Parser class has method called postman_to_curl .
curls = postman.postman_to_curl("your postman collection address")
- Pass the complete Postman collection address on your machine and this method returns a list of curl commands.
print(curls)