How can I convert Python code to curl for API requests? or What's the best way to convert Python code

16 Replies, 1088 Views

For those who love CLI tools, `reqsh` (https://github.com/curlpipe/reqsh) can convert python code to curl (and vice versa).

It’s niche but powerful. Supports auth, multipart, everything.

Install via:
```bash
pip install reqsh
```

Then just pipe your Python request code into it.

Fair warning: Docs are sparse, but it *does* work.

Messages In This Thread



Users browsing this thread: 1 Guest(s)