VOOZH about

URL: https://pypi.org/project/requests/

⇱ requests Β· PyPI


Skip to main content

requests 2.34.2

pip install requests

Latest release

Released:

Python HTTP for Humans.

Navigation

Unverified details

These details have not been verified by PyPI
Project links
Meta
  • License: Apache Software License (Apache-2.0)
  • Author: Kenneth Reitz
  • Maintainer: Ian Stapleton Cordasco
  • Requires: Python >=3.10
  • Provides-Extra: security , socks , use-chardet-on-py3

Project description

Requests

πŸ‘ Version
πŸ‘ Supported Versions
πŸ‘ Downloads
πŸ‘ Contributors
πŸ‘ Documentation

Requests is a simple, yet elegant, HTTP library.

>>> importrequests
>>> r = requests.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass'))
>>> r.status_code
200
>>> r.headers['content-type']
'application/json; charset=utf8'
>>> r.encoding
'utf-8'
>>> r.text
'{"authenticated": true, ...'
>>> r.json()
{'authenticated': True, ...}

Requests 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 & POST data β€” but nowadays, just use the json method!

Requests is one of the most downloaded Python packages today, pulling in around 300M downloads / week β€” according to GitHub, Requests is currently depended upon by 4,000,000+ repositories.

Installing Requests and Supported Versions

Requests is available on PyPI:

$ python-mpipinstallrequests

Requests officially supports Python 3.10+.

Supported Features & Best–Practices

Requests is ready for the demands of building robust and reliable HTTP–speaking applications, for the needs of today.

  • Keep-Alive & Connection Pooling
  • International Domains and URLs
  • Sessions with Cookie Persistence
  • Browser-style TLS/SSL Verification
  • Basic & Digest Authentication
  • Familiar dict–like Cookies
  • Automatic Content Decompression and Decoding
  • Multi-part File Uploads
  • SOCKS Proxy Support
  • Connection Timeouts
  • Streaming Downloads
  • Automatic honoring of .netrc
  • Chunked HTTP Requests

Cloning the repository

When cloning the Requests repository, you may need to add the -c fetch.fsck.badTimezone=ignore flag to avoid an error about a bad commit timestamp (see this issue for more background):

gitclone-cfetch.fsck.badTimezone=ignorehttps://github.com/psf/requests.git

You can also apply this setting to your global Git config:

gitconfig--globalfetch.fsck.badTimezoneignore

πŸ‘ Kenneth Reitz
πŸ‘ Python Software Foundation

Project details

Unverified details

These details have not been verified by PyPI
Project links
Meta
  • License: Apache Software License (Apache-2.0)
  • Author: Kenneth Reitz
  • Maintainer: Ian Stapleton Cordasco
  • Requires: Python >=3.10
  • Provides-Extra: security , socks , use-chardet-on-py3

Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

requests-2.34.2.tar.gz (142.9 kB view details)

Uploaded Source

Built Distribution

Filter files by name, interpreter, ABI, and platform.

If you're not sure about the file name format, learn more about wheel file names.

Copy a direct link to the current filters

requests-2.34.2-py3-none-any.whl (73.1 kB view details)

Uploaded Python 3

File details

Details for the file requests-2.34.2.tar.gz.

File metadata

  • Download URL: requests-2.34.2.tar.gz
  • Upload date:
  • Size: 142.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for requests-2.34.2.tar.gz
Algorithm Hash digest
SHA256 f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9ed
MD5 611e438d0803e962500225f9807a475e
BLAKE2b-256 acc3e2a2b89f2d3e2179abd6d00ebd70bff6273f37fb3e0cc209f48b39d00cbf

See more details on using hashes here.

Provenance

The following attestation bundles were made for requests-2.34.2.tar.gz:

Publisher: publish.yml on psf/requests

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file requests-2.34.2-py3-none-any.whl.

File metadata

  • Download URL: requests-2.34.2-py3-none-any.whl
  • Upload date:
  • Size: 73.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for requests-2.34.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0
MD5 cc4287951c320ff794e5e183c7a91f85
BLAKE2b-256 a0f4c67b0b3f1b9245e8d266f0f112c500d50e5b4e83cb6f3b71b6528104182a

See more details on using hashes here.

Provenance

The following attestation bundles were made for requests-2.34.2-py3-none-any.whl:

Publisher: publish.yml on psf/requests

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

πŸ‘ Image
AWS Cloud computing and Security Sponsor πŸ‘ Image
Datadog Monitoring πŸ‘ Image
Depot Continuous Integration πŸ‘ Image
Fastly CDN πŸ‘ Image
Google Download Analytics πŸ‘ Image
Pingdom Monitoring πŸ‘ Image
Sentry Error logging πŸ‘ Image
StatusPage Status page