{"id":13501873,"url":"https://github.com/ofw/curlify","last_synced_at":"2025-12-12T01:02:36.935Z","repository":{"id":38107127,"uuid":"65730888","full_name":"ofw/curlify","owner":"ofw","description":"A library to convert python requests request object to curl command.","archived":false,"fork":false,"pushed_at":"2023-02-22T22:54:46.000Z","size":27,"stargazers_count":399,"open_issues_count":15,"forks_count":31,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-29T21:07:53.696Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ofw.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-15T12:32:29.000Z","updated_at":"2025-03-23T12:31:44.000Z","dependencies_parsed_at":"2024-06-18T13:38:17.123Z","dependency_job_id":"300de86d-26e2-4078-bb4d-0224932c6b9c","html_url":"https://github.com/ofw/curlify","commit_stats":{"total_commits":34,"total_committers":6,"mean_commits":5.666666666666667,"dds":"0.38235294117647056","last_synced_commit":"b914625b12f9b05c39f305b47ebd0d1f061af24d"},"previous_names":["oeegor/curlify"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofw%2Fcurlify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofw%2Fcurlify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofw%2Fcurlify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ofw%2Fcurlify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ofw","download_url":"https://codeload.github.com/ofw/curlify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406091,"owners_count":20933803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T22:01:53.872Z","updated_at":"2025-12-12T01:02:36.890Z","avatar_url":"https://github.com/ofw.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Curlify - convert python requests request object to cURL command\n\n## Installation\n```sh\npip install curlify\n```\n\n## Changes\n\n### v.2.2.0\n   * Fixed shell quotes. Fixed posting CSV file. Thanks to @leNEKO\n\n### v.2.1.1\n   * Add `--insecure` flag if `verify` parameter is not `True`\n\n### v.2.1.0\n   * Fixed body rendering when using `json` param to request function.\n\n### v.2.0.1\n   * Added `compressed` parameter to `to_curl` function, if it is needed to add `--compressed` option to generated cURL command.\n\n### v.2.0\n   * Skip `-d` option if request body is empty https://github.com/ofw/curlify/issues/6\n   * Minor changes to header sorting\n\n### v.1.2\n   * Order of headers is deterministic (thanks to @tomviner)\n\n## Example\n\n```py\nimport curlify\nimport requests\n\nresponse = requests.get(\"http://google.ru\")\nprint(curlify.to_curl(response.request))\n# curl -X 'GET' -H 'Accept: */*' -H 'Accept-Encoding: gzip, deflate' -H 'Connection: keep-alive' -H 'User-Agent: python-requests/2.18.4' 'http://www.google.ru/'\n\nprint(curlify.to_curl(response.request, compressed=True))\n# curl -X 'GET' -H 'Accept: */*' -H 'Accept-Encoding: gzip, deflate' -H 'Connection: keep-alive' -H 'User-Agent: python-requests/2.18.4' --compressed 'http://www.google.ru/'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofw%2Fcurlify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fofw%2Fcurlify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofw%2Fcurlify/lists"}