{"id":29399260,"url":"https://github.com/nlecoy/curlparser","last_synced_at":"2025-07-10T13:08:58.141Z","repository":{"id":57417785,"uuid":"372209049","full_name":"nlecoy/curlparser","owner":"nlecoy","description":"Parse cURL commands returning object representing the request.","archived":false,"fork":false,"pushed_at":"2022-11-18T04:19:04.000Z","size":47,"stargazers_count":6,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T22:18:10.821Z","etag":null,"topics":["curl","parser"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nlecoy.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":"2021-05-30T12:30:33.000Z","updated_at":"2024-12-06T01:32:51.000Z","dependencies_parsed_at":"2022-08-31T15:22:34.893Z","dependency_job_id":null,"html_url":"https://github.com/nlecoy/curlparser","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nlecoy/curlparser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlecoy%2Fcurlparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlecoy%2Fcurlparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlecoy%2Fcurlparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlecoy%2Fcurlparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nlecoy","download_url":"https://codeload.github.com/nlecoy/curlparser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlecoy%2Fcurlparser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264465906,"owners_count":23612586,"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","parser"],"created_at":"2025-07-10T13:01:50.765Z","updated_at":"2025-07-10T13:08:53.220Z","avatar_url":"https://github.com/nlecoy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cURL Parser\n\n\u003ca href=\"https://github.com/nlecoy/curlparser/actions?query=workflow%3ATests\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://github.com/nlecoy/curlparser/workflows/Tests/badge.svg\" alt=\"Tests\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://codecov.io/gh/nlecoy/curlparser\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/nlecoy/curlparser/branch/main/graph/badge.svg?token=qSvHcn7TGz\" alt=\"Coverage\"\u003e\n\u003c/a\u003e\n\u003ca href=\"\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/l/curlparser.svg\" alt=\"Pypi\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/curlparser\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/v/curlparser?color=%2334D058\u0026label=pypi%20package\" alt=\"Package version\"\u003e\n\u003c/a\u003e\n\nParse cURL commands returning object representing the request.\n\n## How to install?\n\n`curlparser` is available on PyPi:\n\n### Using pip\n\n```shell\n$ pip install curlparser\n```\n### Using poetry\n\n```shell\n$ poetry add curlparser\n```\n\n### Using pipenv\n\n```shell\n$ pipenv install curlparser\n```\n\n## How to use?\n\n```python\n\u003e\u003e\u003e import curlparser\n\n\u003e\u003e\u003e result = curlparser.parse(\n    \"\"\"\n    curl \\\n      --header 'Content-Type: application/json' \\\n      --request PUT \\\n      --user nlecoy:my_password \\\n      --data '{\"username\":\"xyz\", \"password\":\"xyz\"}' \\\n      https://api.github.com/repos/nlecoy/curlparser\n    \"\"\"\n)\n\n\u003e\u003e\u003e result.url\n'https://api.github.com/repos/nlecoy/curlparser'\n\n\u003e\u003e\u003e result.auth\n('nlecoy', 'my_password')\n\n\u003e\u003e\u003e result.json\n{'username': 'xyz', 'password': 'xyz'}\n```\n\n## Available parameters\n\n`curlparser`'s parse method will return a `ParsedCommand` object containing the following fields:\n\n- method\n- url\n- auth\n- cookies\n- data\n- json\n- header\n- verify\n\n## License\n\ncURL Parser is distributed under the Apache 2.0. See [LICENSE](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlecoy%2Fcurlparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnlecoy%2Fcurlparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlecoy%2Fcurlparser/lists"}