niquests 3.21.2


pip install niquests

  Latest version

Released: Sep 23, 2026


Meta
Author: Kenneth Reitz
Maintainer: Ahmed R. TAHRI
Requires Python: >=3.7

Classifiers

Development Status
  • 5 - Production/Stable

Environment
  • Web Environment
  • WebAssembly
  • WebAssembly :: Emscripten
  • WebAssembly :: WASI

Intended Audience
  • Developers

License
  • OSI Approved :: Apache Software License

Natural Language
  • English

Operating System
  • OS Independent

Programming Language
  • Python
  • Python :: 3
  • Python :: 3 :: Only
  • Python :: 3.7
  • Python :: 3.8
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14
  • Python :: 3.15
  • Python :: Free Threading :: 4 - Resilient
  • Python :: Implementation :: CPython
  • Python :: Implementation :: PyPy

Topic
  • Internet :: WWW/HTTP
  • Software Development :: Libraries
Niquests Logo

Niquests is a simple, yet elegant, HTTP library. It is a drop-in replacement for Requests, which is under feature freeze. ✨ Were you used to betamax, requests-mock, responses, ...? See how they still work! We got you covered.

Live Benchmark

Target: https://httpbingo.org/get
Conditions: All default parameters, one shared session, everything simultaneously.
HTTP/2 when supported.
Niquests Benchmark
>>> import niquests
>>> r = niquests.get('https://httpbingo.org/get', params={'hello': 'world'}, timeout=10)
>>> r.raise_for_status()
>>> r.status_code
200
>>> r.headers['content-type']
'application/json; charset=utf-8'
>>> r.json()['args']
{'hello': ['world']}

The same request using async/await:

import asyncio

import niquests


async def main() -> None:
    async with niquests.AsyncSession() as session:
        r = await session.get(
            'https://httpbingo.org/get', params={'hello': 'world'}, timeout=10
        )
        r.raise_for_status()
        print(r.json()['args'])  # {'hello': ['world']}


asyncio.run(main())

Use params= for query parameters, data= for form fields, and json= for JSON request bodies. Call response.json() to decode a JSON response.

PyPI Downloads Supported Versions OpenSSF Best Practices

This project does not require any compilation toolchain. The HTTP/3 support is not enforced and installed if your platform can support it natively (e.g. pre-built wheel available).

✨ Installing Niquests and Supported Versions

Niquests is available on PyPI:

$ python -m pip install niquests

Niquests officially supports Python or PyPy 3.7+. Even WASI or Pyodide!

🚀 Supported Features & Best–Practices

Niquests is ready for the demands of building scalable, robust and reliable HTTP–speaking applications.

Need something more? Create an issue, we actively listen.

📝 Why did we pursue this?

For many years now, Requests has been frozen. Being left in a vegetative state and not evolving, this blocked millions of developers from using more advanced features.

We don't have to reinvent the wheel all over again, HTTP client Requests is well established and really pleasant in its usage. We believe that Requests has the most inclusive and developer friendly interfaces. We intend to keep it that way. As long as we can, long live Niquests!

How about a nice refresher with a mere CTRL+H import requests to import niquests as requests ?

💼 For Enterprise

Professional support for Niquests is available as part of the Tidelift Subscription. Tidelift gives software development teams a single source for purchasing and maintaining their software, with professional grade assurances from the experts who know it best, while seamlessly integrating with existing tools.

You may also be interested in unlocking specific advantages (like access to a private issue tracker) by looking at our GitHub sponsor tiers.


Niquests is a highly improved HTTP client that is based (forked) on Requests. The previous project original author is Kenneth Reitz and actually left the maintenance of Requests years ago.

3.21.2 Sep 23, 2026
3.21.1 Aug 28, 2026
3.21.0 Jul 29, 2026
3.20.1 Jul 09, 2026
3.20.0 Jun 26, 2026
3.19.1 Jun 08, 2026
3.19.0 Jun 01, 2026
3.18.8 May 10, 2026
3.18.7 Apr 28, 2026
3.18.6 Apr 13, 2026
3.18.5 Apr 10, 2026
3.18.4 Apr 02, 2026
3.18.3 Mar 30, 2026
3.18.2 Mar 12, 2026
3.18.1 Mar 09, 2026
3.18.0 Mar 09, 2026
3.17.0 Jan 16, 2026
3.16.1 Dec 23, 2025
3.16.0 Dec 23, 2025
3.15.2 Aug 16, 2025
3.15.1 Aug 13, 2025
3.15.0 Aug 11, 2025
3.14.1 May 19, 2025
3.14.0 Mar 30, 2025
3.13.1 Mar 09, 2025
3.13.0 Feb 06, 2025
3.12.3 Jan 28, 2025
3.12.2 Jan 22, 2025
3.12.1 Jan 03, 2025
3.12.0 Jan 01, 2025
3.11.4 Dec 23, 2024
3.11.3 Dec 13, 2024
3.11.2 Nov 29, 2024
3.11.1 Nov 22, 2024
3.11.0 Nov 20, 2024
3.10.3 Nov 13, 2024
3.10.2 Oct 25, 2024
3.10.1 Oct 22, 2024
3.10.0 Oct 21, 2024
3.9.1 Oct 13, 2024
3.9.0 Oct 08, 2024
3.8.0 Sep 24, 2024
3.7.2 Jul 09, 2024
3.7.1 Jul 07, 2024
3.7.0 Jun 24, 2024
3.6.7 Jun 19, 2024
3.6.6 May 27, 2024
3.6.5 May 22, 2024
3.6.4 May 16, 2024
3.6.3 May 06, 2024
3.6.2 May 02, 2024
3.6.1 Apr 22, 2024
3.6.0 Apr 20, 2024
3.5.5 Mar 25, 2024
3.5.4 Mar 17, 2024
3.5.3 Mar 07, 2024
3.5.2 Mar 05, 2024
3.5.1 Mar 04, 2024
3.5.0 Feb 29, 2024
3.4.7 Feb 21, 2024
3.4.6 Feb 21, 2024
3.4.5 Feb 02, 2024
3.4.4 Jan 19, 2024
3.4.3 Jan 16, 2024
3.4.2 Jan 11, 2024
3.4.1 Jan 07, 2024
3.4.0 Jan 01, 2024
3.3.4 Dec 03, 2023
3.3.3 Nov 26, 2023
3.3.2 Nov 19, 2023
3.3.1 Nov 18, 2023
3.3.0 Nov 18, 2023
3.2.4 Nov 15, 2023
3.2.3 Nov 11, 2023
3.2.2 Nov 08, 2023
3.2.1 Nov 06, 2023
3.2.0 Nov 05, 2023
3.1.4 Oct 23, 2023
3.1.3 Oct 19, 2023
3.1.2 Oct 16, 2023
3.1.1 Oct 11, 2023
3.1.0 Oct 10, 2023
3.0.2 Oct 01, 2023
3.0.1 Sep 26, 2023
3.0.0 Sep 24, 2023
3.0.0b1 Sep 22, 2023
3.0.0b0 Sep 21, 2023
2.32.1 Sep 12, 2023
2.32.0 Aug 29, 2023

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
charset-normalizer (<4,>=2)
urllib3-future (<3,>=2.13.903)
wassima (<3,>=1.0.1)