{"id":19312259,"url":"https://github.com/adaiasmagdiel/httpxfetch","last_synced_at":"2026-04-18T04:02:10.466Z","repository":{"id":217975406,"uuid":"745253689","full_name":"AdaiasMagdiel/httpxfetch","owner":"AdaiasMagdiel","description":"A Python wrapper for the JavaScript fetch function, designed to streamline the process of reverse engineering APIs.","archived":false,"fork":false,"pushed_at":"2024-01-19T02:04:34.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-21T01:09:14.804Z","etag":null,"topics":["fetch-api","httpx","python","reverse-engineering","wrapper"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/httpxfetch/","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/AdaiasMagdiel.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":"2024-01-19T00:01:11.000Z","updated_at":"2024-12-31T00:10:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"4280126f-051a-4cc1-90bd-d0ada61f8ac1","html_url":"https://github.com/AdaiasMagdiel/httpxfetch","commit_stats":null,"previous_names":["adaiasmagdiel/httpxfetch"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AdaiasMagdiel/httpxfetch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdaiasMagdiel%2Fhttpxfetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdaiasMagdiel%2Fhttpxfetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdaiasMagdiel%2Fhttpxfetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdaiasMagdiel%2Fhttpxfetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdaiasMagdiel","download_url":"https://codeload.github.com/AdaiasMagdiel/httpxfetch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdaiasMagdiel%2Fhttpxfetch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31955919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["fetch-api","httpx","python","reverse-engineering","wrapper"],"created_at":"2024-11-10T00:33:52.743Z","updated_at":"2026-04-18T04:02:10.448Z","avatar_url":"https://github.com/AdaiasMagdiel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# httpxfetch\n\n![GitHub](https://img.shields.io/github/license/AdaiasMagdiel/httpxfetch)\n![PyPI](https://img.shields.io/pypi/v/httpxfetch)\n\n`httpxfetch` is a Python wrapper for the JavaScript `fetch` function, designed to streamline the process of reverse engineering APIs. The primary goal of this project is to simplify testing and data inspection by allowing users to copy the `fetch` requests generated by browser developer tools, paste them into their Python code, and execute them seamlessly.\n\n## Installation\n\nYou can install `httpxfetch` using pip:\n\n```bash\npip install httpxfetch\n```\n\n## Quick Start\n\n```python\nfrom httpxfetch import fetch\n\n# Example: Making a GET request\nresponse = fetch('https://api.example.com/data')\nprint(response.status_code)\nprint(response.json())\n```\n\n## Features\n\n- **Simplified Testing:** Copy and paste `fetch` requests from browser developer tools into your Python code for easy testing and data exploration.\n\n- **Wrapper for HTTPX:** Utilizes the powerful `httpx` library to perform HTTP requests in Python.\n\n- **JSON Handling:** Automatically converts the request body to a JSON string using the `JSON.stringify` equivalent function.\n\n## Usage\n\n```python\nfrom httpxfetch import fetch, JSON\n\n# Example: Making a POST request with JSON payload\nurl = 'https://api.example.com/data'\noptions = {\n    'method': 'post',\n    'headers': {'Content-Type': 'application/json'},\n    'body': JSON.stringify({'key': 'value'}),\n}\n\nresponse = fetch(url, options)\nprint(response.status_code)\nprint(response.json())\n```\n\n## Return Type\n\nThe `fetch` function returns an instance of the `httpx.Response` class. All methods available in the `httpx.Response` class can be applied to the result of the `fetch` function.\n\n## Disclaimer\n\nThe project intentionally includes some redundant steps, such as converting the `fetch` body to a string before loading it as a dictionary. This is done to minimize the effort required, providing a convenient function to simulate `JSON.stringify` for ease of use.\n\n## Contributing\n\nContributions are welcome! Feel free to open issues, submit pull requests, or provide suggestions to improve the project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadaiasmagdiel%2Fhttpxfetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadaiasmagdiel%2Fhttpxfetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadaiasmagdiel%2Fhttpxfetch/lists"}