{"id":13501998,"url":"https://github.com/twisted/treq","last_synced_at":"2025-05-13T22:08:39.599Z","repository":{"id":3328885,"uuid":"4372437","full_name":"twisted/treq","owner":"twisted","description":"Python requests like API built on top of Twisted's HTTP client.","archived":false,"fork":false,"pushed_at":"2025-02-16T08:32:34.000Z","size":1030,"stargazers_count":592,"open_issues_count":57,"forks_count":140,"subscribers_count":27,"default_branch":"trunk","last_synced_at":"2025-04-29T21:39:27.703Z","etag":null,"topics":["http","python","twisted"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twisted.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-05-18T18:57:21.000Z","updated_at":"2025-04-23T01:38:43.000Z","dependencies_parsed_at":"2023-01-13T12:26:20.856Z","dependency_job_id":"75994584-3329-4d24-8d7f-43222ca16957","html_url":"https://github.com/twisted/treq","commit_stats":{"total_commits":748,"total_committers":54,"mean_commits":"13.851851851851851","dds":0.6270053475935828,"last_synced_commit":"0cf19207f46fb30fa18bc4e3505099743773e5a7"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twisted%2Ftreq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twisted%2Ftreq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twisted%2Ftreq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twisted%2Ftreq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twisted","download_url":"https://codeload.github.com/twisted/treq/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253625855,"owners_count":21938209,"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":["http","python","twisted"],"created_at":"2024-07-31T22:01:57.879Z","updated_at":"2025-05-13T22:08:34.590Z","avatar_url":"https://github.com/twisted.png","language":"Python","readme":"treq: High-level Twisted HTTP Client API\n========================================\n\n.. |pypi| image:: https://img.shields.io/pypi/v/treq.svg\n    :alt: PyPI\n    :target: https://pypi.org/project/treq/\n\n.. |calver| image:: https://img.shields.io/badge/calver-YY.MM.MICRO-22bfda.svg\n    :alt: calver: YY.MM.MICRO\n    :target: https://calver.org/\n\n.. |coverage| image:: https://coveralls.io/repos/github/twisted/treq/badge.svg\n    :alt: Coverage\n    :target: https://coveralls.io/github/twisted/treq\n\n.. |documentation| image:: https://readthedocs.org/projects/treq/badge/\n    :alt: Documentation\n    :target: https://treq.readthedocs.org\n\n|pypi|\n|calver|\n|coverage|\n|documentation|\n\n``treq`` is an HTTP library inspired by\n`requests \u003chttps://requests.readthedocs.io/\u003e`_ but written on top of\n`Twisted \u003chttps://www.twistedmatrix.com\u003e`_'s\n`Agents \u003chttps://twistedmatrix.com/documents/current/api/twisted.web.client.Agent.html\u003e`_.\n\nIt provides a simple, higher level API for making HTTP requests when\nusing Twisted.\n\n.. code-block:: python\n\n    \u003e\u003e\u003e import treq\n\n    \u003e\u003e\u003e async def main(reactor):\n    ...     response = await treq.get(\"https://github.com\")\n    ...     print(response.code)\n    ...     body = await response.text()\n    ...     print(\"\u003c!DOCTYPE html\u003e\" in body)\n\n    \u003e\u003e\u003e from twisted.internet.task import react\n    \u003e\u003e\u003e react(main)\n    200\n    True\n\nFor more info `read the docs \u003chttps://treq.readthedocs.org\u003e`_.\n\nContributing\n------------\n\n``treq`` development is hosted on `GitHub \u003chttps://github.com/twisted/treq\u003e`_.\n\nWe welcome contributions: feel free to fork and send contributions over.\nSee `CONTRIBUTING.rst \u003chttps://github.com/twisted/treq/blob/master/CONTRIBUTING.rst\u003e`_ for more info.\n\nCode of Conduct\n---------------\n\nRefer to the `Twisted code of conduct \u003chttps://github.com/twisted/twisted/blob/trunk/code_of_conduct.md\u003e`_.\n\nCopyright and License\n---------------------\n\n``treq`` is made available under the MIT license.\nSee `LICENSE \u003c./LICENSE\u003e`_ for legal details and copyright notices.\n\n\n","funding_links":[],"categories":["HTTP","资源列表","Python","HTTP Clients","HTTP客户端","HTTP Clients [🔝](#readme)","Awesome Python"],"sub_categories":["HTTP"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwisted%2Ftreq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwisted%2Ftreq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwisted%2Ftreq/lists"}