{"id":21031980,"url":"https://github.com/navid2zp/tractus","last_synced_at":"2025-05-15T12:31:27.266Z","repository":{"id":62585097,"uuid":"336082174","full_name":"Navid2zp/tractus","owner":"Navid2zp","description":"Trace HTTP requests and gather performance metrics.","archived":false,"fork":false,"pushed_at":"2021-03-08T22:24:20.000Z","size":31,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T12:10:34.094Z","etag":null,"topics":["benchmarking","network","python","trace","tracer"],"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/Navid2zp.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-02-04T21:04:55.000Z","updated_at":"2025-03-15T11:00:51.000Z","dependencies_parsed_at":"2022-11-03T21:38:26.249Z","dependency_job_id":null,"html_url":"https://github.com/Navid2zp/tractus","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Navid2zp%2Ftractus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Navid2zp%2Ftractus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Navid2zp%2Ftractus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Navid2zp%2Ftractus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Navid2zp","download_url":"https://codeload.github.com/Navid2zp/tractus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254341131,"owners_count":22054984,"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":["benchmarking","network","python","trace","tracer"],"created_at":"2024-11-19T12:39:26.399Z","updated_at":"2025-05-15T12:31:26.522Z","avatar_url":"https://github.com/Navid2zp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tractus\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/navid2zp/tractus?style=flat-square\" /\u003e\n  \u003cimg alt=\"Github Workflow\" src=\"https://img.shields.io/github/workflow/status/navid2zp/tractus/tractus/main?style=flat-square\" /\u003e\n  \u003cimg alt=\"Python verions\" src=\"https://img.shields.io/pypi/pyversions/tractus?style=flat-square\" /\u003e\n  \u003cimg alt=\"Format\" src=\"https://img.shields.io/pypi/format/tractus?style=flat-square\" /\u003e\n  \u003cimg alt=\"Implementation\" src=\"https://img.shields.io/pypi/implementation/tractus?style=flat-square\" /\u003e\n  \u003cimg alt=\"Version\" src=\"https://img.shields.io/pypi/v/tractus?style=flat-square\" /\u003e\n  \u003cimg alt=\"Quality\" src=\"https://img.shields.io/lgtm/grade/python/github/Navid2zp/tractus?style=flat-square\" /\u003e\n\u003c/p\u003e\n\nTrace HTTP requests and gather performance metrics.\n\n### Install\n\n```\npip install tractus\n```\n\n### Usage\n\n```python\n\nfrom tractus import Tracer\n\nresult = Tracer('https://google.com').trace()\n\nprint(f'Host IP: {result.ip}')\nprint(f'Status code: {result.status_code}')\nprint(f'DNS time: {result.dns} ms')\nprint(f'Handshake time: {result.handshake} ms')\nprint(f'First byte time: {result.first_byte} ms')\nprint(f'Full body time: {result.full_data} ms')\nprint(f'Body length: {result.data_length} bytes')\nprint(f'Headers length: {result.headers_length} bytes')\n\n```\n\n#### Helpers:\n```python\n# Get result as json\nresult.as_json()\n# Get result as dict\nresult.as_dict()\n```\n\nLicense\n----\nMIT\n\n#### Name\nhttps://en.wiktionary.org/wiki/tractus\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavid2zp%2Ftractus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnavid2zp%2Ftractus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavid2zp%2Ftractus/lists"}