Skip to main content

urllib3.future is a powerful HTTP 1.1, 2, and 3 client

Project description

urllib3

PyPI Version Python Versions
urllib3.future is as BoringSSL is to OpenSSL but to urllib3 (except support is available!)

⚡ urllib3.future is a powerful, user-friendly HTTP client for Python.
⚡ urllib3.future goes beyond supported features while remaining compatible.
⚡ urllib3.future brings many critical features that are missing from the Python standard libraries:

  • Thread safety.
  • Connection pooling.
  • Client-side SSL/TLS verification.
  • File uploads with multipart encoding.
  • Helpers for retrying requests and dealing with HTTP redirects.
  • Support for gzip, deflate, brotli, and zstd encoding.
  • HTTP/1.1, HTTP/2 and HTTP/3 support.
  • Proxy support for HTTP and SOCKS.
  • Multiplexed connection.
  • 93% test coverage.

urllib3.future is powerful and easy to use:

>>> import urllib3
>>> resp = urllib3.request("GET", "https://httpbin.org/robots.txt")
>>> resp.status
200
>>> resp.data
b"User-agent: *\nDisallow: /deny\n"
>>> resp.version
20

Installing

urllib3.future can be installed with pip:

$ python -m pip install urllib3.future

You either do

import urllib3

Or...

import urllib3_future

Doing import urllib3_future is the safest option for you as there is a significant number of projects that require urllib3.

Notes

  • It's a fork

⚠️ Installing urllib3.future shadows the actual urllib3 package (depending on installation order). The semver will always be like MAJOR.MINOR.9PP like 2.0.941, the patch node is always greater or equal to 900.

Support for bugs or improvements is served in this repository. We regularly sync this fork with the main branch of urllib3/urllib3 against bugfixes and security patches if applicable.

  • OS Package Managers

Fellow OS package maintainers, you cannot just build and ship this package to your package registry. As it override urllib3 and due to its current criticality, you'll have to set:

URLLIB3_NO_OVERRIDE=true python -m build. Set URLLIB3_NO_OVERRIDE variable with "true" in it.

It will prevent the override.

Compatibility with downstream

You should always install the downstream project prior to this fork.

e.g. I want requests to be use this package.

python -m pip install requests
python -m pip install urllib3.future

We suggest using the package Niquests as a drop-in replacement for Requests. It leverages urllib3.future capabilities.

Documentation

urllib3.future has usage and reference documentation at urllib3future.readthedocs.io.

Contributing

urllib3.future happily accepts contributions.

Security Disclosures

To report a security vulnerability, please use the GitHub advisory disclosure form.

Sponsorship

If your company benefits from this library, please consider sponsoring its development.

Project details


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

urllib3_future-2.3.901.tar.gz (712.5 kB view details)

Uploaded Source

Built Distribution

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

urllib3_future-2.3.901-py3-none-any.whl (281.5 kB view details)

Uploaded Python 3

File details

Details for the file urllib3_future-2.3.901.tar.gz.

File metadata

  • Download URL: urllib3_future-2.3.901.tar.gz
  • Upload date:
  • Size: 712.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for urllib3_future-2.3.901.tar.gz
Algorithm Hash digest
SHA256 f5c90fa93885a7735389a73d8795c2cc07a7f0e00c10e716b66902c5f143b428
MD5 3e4838c514f846a25649cd09f6695e96
BLAKE2b-256 bd32deeecbf168ec9edbb10abe2e6bb1a413468711fcab1812d5d8b1491b9e46

See more details on using hashes here.

File details

Details for the file urllib3_future-2.3.901-py3-none-any.whl.

File metadata

File hashes

Hashes for urllib3_future-2.3.901-py3-none-any.whl
Algorithm Hash digest
SHA256 cdd95ac3c0dab76d5aa7980cd839e538d24382451b7b0f327fe5d010cb35353c
MD5 4b603f1eba463b28ef693f1fd5480348
BLAKE2b-256 f7dac2d9a0e2739a838af841bf4c1897b272de6e9caf013e993328cb2a6d2dfb

See more details on using hashes here.

Supported by

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