curlify2
Library to convert python requests and httpx object to curl command.
Decision gist · record as of 2026-08-14
Yes, if you regularly need to inspect or replay HTTP requests from Python. The zero-dependency install and permissive MIT license make it low-risk. However, the last release was 2023-06-09; verify that it handles the request and httpx versions in your environment before relying on it for production logging.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with no runtime dependencies.
- Last release was 2023-06-09, over two years old; repository remains active but maintenance is infrequent.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal obligations.
last release 2023-06-09 (1162 days) · last repo commit 2026-01-08 · 40 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 91,010 downloads/mo, #13,550 on PyPI
Alternatives
Verify before relying
pip install curlify2
from curlify2 import Curlify
curl_str = Curlify(request_object).to_curl()
print(curl_str)- Whether generated curl commands are always executable as-is or require manual adjustment for certain request types
- Support status for requests and httpx versions released after 2023-06-09
- Whether the library works correctly with Python 3.10 and 3.11 in current environments
What it is and what it does
Curlify2 takes an HTTP request object and generates the equivalent curl command as a string. This is useful when you need to reproduce an HTTP interaction outside Python—for instance, to share a request with a colleague, test it in a shell, or debug network behavior. The library accepts a request object, processes its method, headers, and body, and outputs a properly formatted curl invocation.
The package has no runtime dependencies beyond Python itself, making it lightweight to add to any project. It supports Python 3.7, 3.8, 3.9, 3.10, and 3.11. The library is described as an enhancement of an earlier curlify project, indicating it addresses limitations in that earlier work.
Use it for
- Debug HTTP requests by converting them to curl commands for manual testing in a terminal
- Log HTTP interactions in a format that can be replayed or shared with other developers
- Export requests made by your application for documentation or troubleshooting purposes
- Inspect request details in curl format before sending or after receiving responses
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you regularly need to inspect or replay HTTP requests from Python.
The zero-dependency install and permissive MIT license make it low-risk. However, the last release was 2023-06-09; verify that it handles the request and httpx versions in your environment before relying on it for production logging.
Install
curlify2 on PyPI
Before you install
Low friction install with no runtime dependencies. Last release was 2023-06-09, over two years old; repository remains active but maintenance is infrequent.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal obligations.
Quickstart
pip install curlify2
from curlify2 import Curlify
curl_str = Curlify(request_object).to_curl()
print(curl_str)
Verify before relying
- Whether generated curl commands are always executable as-is or require manual adjustment for certain request types
- Support status for requests and httpx versions released after 2023-06-09
- Whether the library works correctly with Python 3.10 and 3.11 in current environments
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.7,<4.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 1,162 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 91,010 / month, #13,550 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: curlify2-2.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “httpx to curl command”
- curlify2Converts Python requests and httpx HTTP request objects into…
- uncurlConverts curl command-line requests into equivalent Python code using…
- curlifyConverts a Python requests request object into an equivalent cURL…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also curlify · httpie · uncurl · httplib2 · respx · httpx · httpx-ntlm · requests-toolbelt · httpx2 · netapp-ontap