Skip to content

zhexuany/curl-to-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

curl-to-Py Built with Spacemacs

curl-to-Py is a tool to instantly convert curl commands to Python code in the browser. It does not guarantee high-fidelity conversions, but it's good enough for most API docs that have curl samples.

Status

This project is working now. You can paly around with it via the website below. If you find any bug or you have some advice, please file an issue.

Try it

Check it out! It works inside your browser.

FAQ

Does any curl command work?

Any curl command should work, but only certain flags are understood and converted into Go code. The rest of the flags will be ignored.

Which kinds of curl commands are understood?

Mostly simple HTTP commands (headers, basic auth, body, etc).

Will you consider supporting this-or-that flag?

Yes, if you convice that falg is very important. Or you can do it yourself.

Credits

curl-to-Py is inspired by curl-to-Go.

About

Convert curl commands to Python code in your browser

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published