{"id":14990066,"url":"https://github.com/hopetree/py2curl","last_synced_at":"2025-04-12T02:03:49.723Z","repository":{"id":62578426,"uuid":"296540323","full_name":"Hopetree/py2curl","owner":"Hopetree","description":"python requests to curl","archived":false,"fork":false,"pushed_at":"2020-09-22T06:20:08.000Z","size":11,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T02:03:43.294Z","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/Hopetree.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}},"created_at":"2020-09-18T07:01:23.000Z","updated_at":"2023-06-29T14:08:09.000Z","dependencies_parsed_at":"2022-11-03T21:01:29.702Z","dependency_job_id":null,"html_url":"https://github.com/Hopetree/py2curl","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hopetree%2Fpy2curl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hopetree%2Fpy2curl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hopetree%2Fpy2curl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hopetree%2Fpy2curl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hopetree","download_url":"https://codeload.github.com/Hopetree/py2curl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505863,"owners_count":21115354,"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-09-24T14:19:24.592Z","updated_at":"2025-04-12T02:03:49.695Z","avatar_url":"https://github.com/Hopetree.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# py2curl\n\n将 python 的 requests 代码转换成 curl 命令\n\n## 安装\n\n```bash\npip install py2curl\n```\n\n## 使用\n\n```python\nimport requests\nimport py2curl\n\nreq = requests.get('https://tendcode.com')\nresult = py2curl.render(req.request)\nprint(result)\n### curl -k -v -X GET -H \"Accept: */*\" -H \"Accept-Encoding: gzip, deflate\" -H \"Connection: keep-alive\" -H \"User-Agent: python-requests/2.19.1\" https://tendcode.com/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhopetree%2Fpy2curl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhopetree%2Fpy2curl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhopetree%2Fpy2curl/lists"}