-
released this
2026-01-30 12:39:38 +00:00 | 0 commits to main since this releaseInitial Release
This is the first release of curl-to-code-cli, a CLI tool that converts curl commands into idiomatic code across multiple programming languages.
Features
- Convert curl commands to Python (requests), JavaScript (fetch), Go (net/http), Rust (reqwest), and PHP (cURL)
- Interactive mode for multiple conversions
- Syntax highlighting for better readability
- Comprehensive curl option support including headers, authentication, JSON data, and cookies
Installation
pip install curl-to-codeUsage
# Convert to Python (default) curl-to-code "curl https://api.example.com/users" # Convert to JavaScript curl-to-code "curl https://api.example.com/users" --lang javascript # Interactive mode curl-to-code interactive --lang pythonSupported Languages
- Python (requests)
- JavaScript (fetch)
- Go (net/http)
- Rust (reqwest)
- PHP (cURL)
Supported curl Options
-X,--request: HTTP method-H,--header: Custom headers-d,--data: Request body-u,--user: Basic authentication-b,--cookie: Cookies-A,--user-agent: User-Agent-L: Follow redirects--connect-timeout: Timeout
Downloads