{"id":26451804,"url":"https://github.com/requests/requests","last_synced_at":"2025-03-18T17:01:54.545Z","repository":{"id":37249171,"uuid":"1362490","full_name":"psf/requests","owner":"psf","description":"A simple, yet elegant, HTTP library.","archived":false,"fork":false,"pushed_at":"2025-02-20T18:43:14.000Z","size":13185,"stargazers_count":52588,"open_issues_count":272,"forks_count":9398,"subscribers_count":1325,"default_branch":"main","last_synced_at":"2025-03-10T02:24:56.771Z","etag":null,"topics":["client","cookies","forhumans","http","humans","python","python-requests","requests"],"latest_commit_sha":null,"homepage":"https://requests.readthedocs.io/en/latest/","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/psf.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://www.python.org/psf/sponsorship/"]}},"created_at":"2011-02-13T18:38:17.000Z","updated_at":"2025-03-09T22:32:49.000Z","dependencies_parsed_at":"2023-10-11T21:39:39.354Z","dependency_job_id":"77c84ef8-25fa-47bb-9c63-9688ea612b0f","html_url":"https://github.com/psf/requests","commit_stats":{"total_commits":4733,"total_committers":742,"mean_commits":6.378706199460916,"dds":0.6843439678850624,"last_synced_commit":"23540c93cac97c763fe59e843a08fa2825aa80fd"},"previous_names":["requests/requests"],"tags_count":154,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psf%2Frequests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psf%2Frequests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psf%2Frequests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psf%2Frequests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psf","download_url":"https://codeload.github.com/psf/requests/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244267376,"owners_count":20425835,"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":["client","cookies","forhumans","http","humans","python","python-requests","requests"],"created_at":"2025-03-18T17:01:02.245Z","updated_at":"2025-03-18T17:01:54.538Z","avatar_url":"https://github.com/psf.png","language":"Python","readme":"# Requests\n\n**Requests** is a simple, yet elegant, HTTP library.\n\n```python\n\u003e\u003e\u003e import requests\n\u003e\u003e\u003e r = requests.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass'))\n\u003e\u003e\u003e r.status_code\n200\n\u003e\u003e\u003e r.headers['content-type']\n'application/json; charset=utf8'\n\u003e\u003e\u003e r.encoding\n'utf-8'\n\u003e\u003e\u003e r.text\n'{\"authenticated\": true, ...'\n\u003e\u003e\u003e r.json()\n{'authenticated': True, ...}\n```\n\nRequests allows you to send HTTP/1.1 requests extremely easily. There’s no need to manually add query strings to your URLs, or to form-encode your `PUT` \u0026 `POST` data — but nowadays, just use the `json` method!\n\nRequests is one of the most downloaded Python packages today, pulling in around `30M downloads / week`— according to GitHub, Requests is currently [depended upon](https://github.com/psf/requests/network/dependents?package_id=UGFja2FnZS01NzA4OTExNg%3D%3D) by `1,000,000+` repositories. You may certainly put your trust in this code.\n\n[![Downloads](https://static.pepy.tech/badge/requests/month)](https://pepy.tech/project/requests)\n[![Supported Versions](https://img.shields.io/pypi/pyversions/requests.svg)](https://pypi.org/project/requests)\n[![Contributors](https://img.shields.io/github/contributors/psf/requests.svg)](https://github.com/psf/requests/graphs/contributors)\n\n## Installing Requests and Supported Versions\n\nRequests is available on PyPI:\n\n```console\n$ python -m pip install requests\n```\n\nRequests officially supports Python 3.8+.\n\n## Supported Features \u0026 Best–Practices\n\nRequests is ready for the demands of building robust and reliable HTTP–speaking applications, for the needs of today.\n\n- Keep-Alive \u0026 Connection Pooling\n- International Domains and URLs\n- Sessions with Cookie Persistence\n- Browser-style TLS/SSL Verification\n- Basic \u0026 Digest Authentication\n- Familiar `dict`–like Cookies\n- Automatic Content Decompression and Decoding\n- Multi-part File Uploads\n- SOCKS Proxy Support\n- Connection Timeouts\n- Streaming Downloads\n- Automatic honoring of `.netrc`\n- Chunked HTTP Requests\n\n## API Reference and User Guide available on [Read the Docs](https://requests.readthedocs.io)\n\n[![Read the Docs](https://raw.githubusercontent.com/psf/requests/main/ext/ss.png)](https://requests.readthedocs.io)\n\n## Cloning the repository\n\nWhen cloning the Requests repository, you may need to add the `-c\nfetch.fsck.badTimezone=ignore` flag to avoid an error about a bad commit (see\n[this issue](https://github.com/psf/requests/issues/2690) for more background):\n\n```shell\ngit clone -c fetch.fsck.badTimezone=ignore https://github.com/psf/requests.git\n```\n\nYou can also apply this setting to your global Git config:\n\n```shell\ngit config --global fetch.fsck.badTimezone ignore\n```\n\n---\n\n[![Kenneth Reitz](https://raw.githubusercontent.com/psf/requests/main/ext/kr.png)](https://kennethreitz.org) [![Python Software Foundation](https://raw.githubusercontent.com/psf/requests/main/ext/psf.png)](https://www.python.org/psf)\n","funding_links":["https://www.python.org/psf/sponsorship/"],"categories":["Python","Http","有趣的项目","Uncategorized"],"sub_categories":["mongodb","Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frequests%2Frequests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frequests%2Frequests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frequests%2Frequests/lists"}