--- id: uncurl version: "0.0.11" license: unclear license_treatment: unclear maintenance: aging --- # uncurl — A library to convert curl requests to python-requests. License: unclear · Maintenance: aging · Downloads: 330.9K/mo ## What it is and what it does Uncurl is a parser that translates curl command-line syntax into Python code that calls the Requests library. It's designed to bridge the gap between browser developer tools (which offer "Copy as cURL") and Python HTTP clients, letting you quickly recreate browser requests in Python without manually rewriting headers, cookies, and parameters. The package provides both a command-line interface (reading from clipboard or arguments) and a programmatic API. You can either get a ready-to-use Python code string via `uncurl.parse()`, or extract structured components (URL, headers, cookies) as Python objects via `uncurl.parse_context()`. It has no runtime dependencies and installs as a pure Python wheel. Use it for: - Quickly convert a curl command copied from Chrome DevTools network tab into runnable Python code for API testing or scripting. - Extract structured request components (headers, cookies, URL) from a curl command for use in custom HTTP client code. - Automate translation of curl-based documentation examples into Python equivalents for integration into Python projects. - Debug HTTP requests by converting browser-captured curl commands into Python for inspection and modification. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Converts curl command-line requests into equivalent Python code using the Requests library, useful for translating browser network inspector captures into Python scripts. Yes, with caution on maintenance. The package is simple, has no dependencies, and solves a real workflow problem—translating curl to Python requests. However, it has not been updated since 2021 and shows no recent activity. Install it if your use case is straightforward curl-to-requests conversion and you're comfortable with a dormant dependency. Verify the license before production use. ## Install pip install uncurl uv add uncurl poetry add uncurl ## Installing uncurl Before you install: Low install friction with no runtime dependencies. However, the package is aging: last release was in 2021, over four years old, and the repository shows no recent commits despite being archived as false. Maintenance status is unclear. License in practice: License treatment is unclear—no SPDX identifier or raw license text is available in the package metadata. Verify the actual license before use in proprietary or restricted contexts. Quickstart: pip install uncurl import uncurl # Parse curl command to Python code string code = uncurl.parse("curl 'https://example.com' -H 'Accept: application/json'") print(code) # Or extract structured components context = uncurl.parse_context("curl 'https://example.com' -H 'Accept: application/json'") print(context.url, context.headers) Verify before relying: - Actual license terms and compatibility (license_treatment is 'unclear') - Python version support (requires_python is unspecified) - Whether the package handles modern curl syntax and options beyond the documented examples ## Package facts - License: not declared (unclear) - Python support: unspecified - Install friction: low - Maintenance: aging - Downloads: 330.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags curl to python requests, convert curl commands, curl parser python, chrome network to python, curl command translator, curl-conversion, http-client, developer-tools [View on SkillFed](https://skillfed.io/packages/uncurl) · [View on PyPI](https://pypi.org/project/uncurl/)