httpx
requests
httpx | requests | |
---|---|---|
60 | 92 | |
13,809 | 52,623 | |
1.4% | 0.4% | |
8.3 | 7.6 | |
18 days ago | about 1 month ago | |
Python | Python | |
BSD 3-clause "New" or "Revised" License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
httpx
-
How to scrape Bluesky with Python
Using the createSession, deleteSession endpoints and httpx, we can create a session for API interaction.
-
Ruff: Python linter and code formatter written in Rust
I've mostly ditched requests in favour of httpx these days. https://www.python-httpx.org
-
Asynchronous HTTP Requests in Python with HTTPX and asyncio
Now that your environment is set up, youâre going to need to install the HTTPX library for making requests, both asynchronous and synchronous which we will compare. Install this with the following command after activating your virtual environment:
-
Video data IO through ffmpeg subprocess
Now time to code the implementation, as I wanted to both read from and write to ffmpeg concurrently, so this is going to be an asyncio application. The http client library we are using this time is httpx, which has a method to fetch download in smaller batches:
-
HTTPX: Dump requests library in a junkyard đ
The concept of a Client in httpx is analogous to a Session in requests. However, httpx.Client is more powerful and efficient. You can read the article from the httpx documentation, to learn more about httpx.Client.
-
Current problems and mistakes of web scraping in Python and tricks to solve them!
Let's look at a simple code example. This will work for requests, httpx, and aiohttp with a clean installation and no extensions.
- Httpx â next-generation HTTP client for Python
-
A Retrospective on Requests
For reference, it's a butterfly, not a moth.
Source: https://github.com/encode/httpx/issues/834
-
Show HN: Twitter API Wrapper for Python â No API Keys Needed
Very cool, first I'm hearing of httpx https://www.python-httpx.org/
I think most people would start with trying out requests or something for this kind of work, I'm guessing that didn't work out? You've got a star from me.
-
Harlequin: SQL IDE for Your Terminal
To access 10 different commands at the same time, that is tricky but definitely doable.
First thing that comes to mind, you can use aliases.
To keep it simple, lets use 3 examples instead of 10: harlequin (this project), pgcli (https://www.pgcli.com/) and httpx (https://www.python-httpx.org/)
Setup a main home for all your venvs:
cd ~
requests
-
Ruff: Python linter and code formatter written in Rust
[2] https://github.com/psf/requests/pull/6667
-
Working with APIs in Python: A Practical Guide
requests is one of the most downloaded Python packages with around 30M downloads every week according to pypi. It enables you to send HTTP requests easily in Python. requests is a tested and trusted Python package, used by many established brands like IBM. Find the source code here. Some of the âbelovedâ features of requests are:
-
The Pythonic Emptiness
Keep in mind that truthiness comes from __bool__ and is overridable, so separate from Python itself, a lot of library authors have made questionable decisions here. A perennial contender is https://github.com/psf/requests/issues/2002.
- Python Requests is getting an interesting alternative
- Vanilla Python Packaging
-
Revived the promise made six years ago for Requests 3
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.
-
Ask HN: Is Python async/await some kind of joke?
- Ubiquitous ârequestsâ library used in most docs examples, no async support https://github.com/psf/requests
-
10 Github repositories to achieve Python mastery
Explore here.
-
urllib3 v2.0.0 is now generally available!
It's Lukasa (his name is Cory, there's Ĺukasz in PSF though, but that's a different person). Looking at him, he made significant contributions to the requests repo: https://github.com/psf/requests/graphs/contributors
- I built a chatbot that lets you talk to any Github repository
What are some alternatives?
Niquests - âSafest, Fastest, Easiest, and Most advancedâ Python HTTP Client. Production Ready! Drop-in replacement for Requests. HTTP/1.1, HTTP/2, and HTTP/3 supported. With WebSocket, and SSE! Be free of Requests bondage now.
httplib2 - Small, fast HTTP client library for Python. Features persistent connections, cache, and Google App Engine support. Originally written by Joe Gregorio, now supported by community.
AIOHTTP - Asynchronous HTTP client/server framework for asyncio and Python
urllib3 - urllib3 is a user-friendly HTTP client library for Python
requests-html - Pythonic HTML Parsing for Humansâ˘
grequests - Requests + Gevent = <3