{"id":16544278,"url":"https://github.com/florimondmanca/httpxprof","last_synced_at":"2025-09-20T20:32:30.417Z","repository":{"id":101317146,"uuid":"209874526","full_name":"florimondmanca/httpxprof","owner":"florimondmanca","description":"A tool for profiling HTTPX using cProfile and SnakeViz","archived":false,"fork":false,"pushed_at":"2020-08-04T06:40:49.000Z","size":142,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T05:47:04.835Z","etag":null,"topics":["httpx","profiling","python","tool"],"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/florimondmanca.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":"2019-09-20T20:20:47.000Z","updated_at":"2024-02-17T12:24:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"763284a6-f47d-4d02-9101-80aef15de9d5","html_url":"https://github.com/florimondmanca/httpxprof","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florimondmanca%2Fhttpxprof","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florimondmanca%2Fhttpxprof/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florimondmanca%2Fhttpxprof/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florimondmanca%2Fhttpxprof/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/florimondmanca","download_url":"https://codeload.github.com/florimondmanca/httpxprof/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233687911,"owners_count":18714416,"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":["httpx","profiling","python","tool"],"created_at":"2024-10-11T19:01:48.973Z","updated_at":"2025-09-20T20:32:25.136Z","avatar_url":"https://github.com/florimondmanca.png","language":"Python","readme":"# httpxprof\n\nA tool for profiling [HTTPX](https://github.com/encode/httpx) using cProfile and [SnakeViz](https://jiffyclub.github.io/snakeviz/). No maintenance intended.\n\n![](assets/example.png)\n\n## Installation\n\n- Install the version of HTTPX you'd like to profile against.\n- Install this tool using pip:\n\n```bash\npip install -e git+https://github.com/florimondmanca/httpxprof#egg=httpxprof\n```\n\n## Usage\n\n```bash\n# Run one of the built-in profiling cases:\nhttpxprof run async_client\n\n# View results:\nhttpxprof view async_client\n```\n\nYou can also:\n\n- Run your profiling cases by passing Python scripts — useful to profile other HTTP client libraries.\n- Profile against an HTTPS server using the `--https` option.\n\n```python\n# aiohttp_single.py\nimport aiohttp\nimport ssl\n\nimport httpxprof\n\n\nasync def main(config: httpxprof.Config) -\u003e None:\n    ssl_context = ssl.create_default_context(cafile=config.client_cert())\n    async with aiohttp.ClientSession() as session:\n        for _ in config.requests():\n            async with session.get(config.url, ssl=ssl_context):\n                pass\n```\n\n```bash\nhttpxprof run --https aiohttp_session.py\nhttpxprof view aiohttp_session.py\n```\n\nYou can ask for `--help` on `httpxprof` and any of the subcommands.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorimondmanca%2Fhttpxprof","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflorimondmanca%2Fhttpxprof","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorimondmanca%2Fhttpxprof/lists"}