• v0.1.0 df7e2c494f

    v0.1.0
    Some checks failed
    CI / test (push) Failing after 6s
    Stable

    7000pctAUTO released this 2026-01-30 12:39:38 +00:00 | 0 commits to main since this release

    Initial 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-code
    

    Usage

    # 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 python
    

    Supported 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