curlify
curlify copied to clipboard
A library to convert python requests request object to curl command.
``` DEPRECATION: curlify is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce...
I use curlify in requests hook so I can get any requests as a curl command. works excellent except for when posts have binary data in body: curlify==2.2.1 ``` mycurl=curlify.to_curl(response.request,...
Can we have a flag that can allow us to prettify the curl command? This helps in sharing the curl command with others in a readable way, especially when the...
Hello! Found a security issue in your package in pypi: https://pypi.org/project/curlify/ Affected versions of package: - 2.2.0 (Jul 21, 2019) There's an unmet dependency on module `shlex` if you will...
I made a fix to make it works with posting CSV files, but have no success with Jpeg file.
A way to handle binary file without any file size limits
Add support for httpx As httpx strives for close compatibility with requests few changes needed to be made in curlify - .lower() on headers (headers in http are case insensitive...
By default returned string contains all headers including auto-generated ['accept', 'accept-encoding', 'connection', 'user-agent', 'content-length']. But these headers are not necessary to execute request by curl in terminal, and sometimes they...
If you use a custom http scheme (like `http-custom://aaa.bbb.ccc/path`) and use your custom `HTTPConnectionPool` to parse it to generate a http connection, `to_curl` will give you inappropriate result: ```python3 resp...
Adds `tox.ini` file. Use like this: `tox` Tox is set to run at python 2.7 and 3.7 Rename `curlify_test` -> `test_curlify` so it's detected by pytest Add Pipfile/Pipfile.lock with tox,...