{"id":15654315,"url":"https://github.com/marcuxyz/curlify2","last_synced_at":"2025-04-15T22:49:22.263Z","repository":{"id":38961993,"uuid":"308638660","full_name":"marcuxyz/curlify2","owner":"marcuxyz","description":"The library convert python 'requests' and 'httpx' object in curl command. Curlify2 is a enhancement of curlify.","archived":false,"fork":false,"pushed_at":"2024-07-07T03:53:27.000Z","size":152,"stargazers_count":37,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T22:49:15.734Z","etag":null,"topics":["curl","python","python-requests","requests"],"latest_commit_sha":null,"homepage":"","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/marcuxyz.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-10-30T13:28:35.000Z","updated_at":"2025-04-15T17:31:49.000Z","dependencies_parsed_at":"2023-10-03T17:35:40.238Z","dependency_job_id":"82d6f2d9-1ea8-4d46-a032-03e932434273","html_url":"https://github.com/marcuxyz/curlify2","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"fc0fd402f77dea7c8c28840eeaa2886dc287f040"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuxyz%2Fcurlify2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuxyz%2Fcurlify2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuxyz%2Fcurlify2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuxyz%2Fcurlify2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcuxyz","download_url":"https://codeload.github.com/marcuxyz/curlify2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249167433,"owners_count":21223505,"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":["curl","python","python-requests","requests"],"created_at":"2024-10-03T12:50:39.556Z","updated_at":"2025-04-15T22:49:22.221Z","avatar_url":"https://github.com/marcuxyz.png","language":"Python","readme":"The library convert python 'requests' and 'httpx' object in curl command. Curlify2 is a enhancement of [curlify]('https://github.com/ofw/curlify').\n\n\n## Installation\n\nTo install the library use pip or poetry command, see:\n\n```bash\n$ pip install curlify2\n```\n\nor poetry:\n\n```bash\n$ poetry add curlify2\n```\n\n## Usage\n\nusing **requests** module:\n\n```python\nfrom curlify2 import Curlify\nimport requests\n\nURL = \"https://run.mocky.io/v3/b0f4ffd8-6696-4f90-8bab-4a3bcad9ef3f\"\n\nrequest = requests.get(URL)\nresponse = Curlify(request.request)\n\nprint(response.to_curl()) # curl -X GET -H \"User-Agent: python-requests/2.24.0\" -H \"Accept-Encoding: gzip, deflate\" -H \"Accept: */*\" -H \"Connection: keep-alive\" -d 'None' https://run.mocky.io/v3/b0f4ffd8-6696-4f90-8bab-4a3bcad9ef3f\n```\n\nusing **httpx** module:\n\n```python\nfrom curlify2 import Curlify\nimport httpx\n\nURL = \"https://run.mocky.io/v3/b0f4ffd8-6696-4f90-8bab-4a3bcad9ef3f\"\n\nrequest = httpx.get(URL)\nresponse = Curlify(request.request)\n\nprint(response.to_curl()) # curl -X GET -H \"User-Agent: python-requests/2.24.0\" -H \"Accept-Encoding: gzip, deflate\" -H \"Accept: */*\" -H \"Connection: keep-alive\" -d 'None' https://run.mocky.io/v3/b0f4ffd8-6696-4f90-8bab-4a3bcad9ef3f\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcuxyz%2Fcurlify2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcuxyz%2Fcurlify2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcuxyz%2Fcurlify2/lists"}