# Status of the urllib3 port

**URL:** <https://trio.discourse.group/t/status-of-the-urllib3-port/83>\
**Category:** Show off your work\
**Created:** [February 12, 2019, 10:27am UTC](https://trio.discourse.group/t/status-of-the-urllib3-port/83 "2019-02-12T10:27:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pquentin](https://yyz2.discourse-cdn.com/free1/user_avatar/trio.discourse.group/pquentin/32/57_2.png) [@pquentin](https://trio.discourse.group/u/pquentin)\
**Post date:** [February 12, 2019, 10:27am UTC](https://trio.discourse.group/t/status-of-the-urllib3-port/83/1 "2019-02-12T10:27:46Z")

</div>

Various responses to the [priorities/roadmap post](https://trio.discourse.group/t/priorities-roadmap/34) mentioned that the urllib3/requests port was the library that missed the most in Trio.

I agree! That’s why I started working on it in January 2018, basically by trying to turn @njs’s ideas into code and then asking him for reviews (with help of a few other contributors). We’re now in February 2019. As it’s only my priority every few months, the progress is irregular: while we did improve things a lot, there is still a lot of work left!

The working repository is [https://github.com/python-trio/urllib3](https://github.com/python-trio/urllib3). The current task is to ensure that all existing tests pass, so that we get back to 100% coverage. **We’re at 93% right now**. Here’s my elaborate process:

1. pick a xfailing or skipped test
2. try to make it pass
3. send the modification for review
4. rinse and repeat

As a result, I’m afraid there are no identified good first bugs: I can’t tell before working on a test how easy it will be! But I’d be happy to help if anyone want to try doing this.

Maybe a good first task would be to read [https://github.com/python-trio/urllib3/issues/1](https://github.com/python-trio/urllib3/issues/1), try running the tests using tox, and document/improve the process for the next contributors? Again, I’d be happy to help.

---

<div class="post-metadata">

**Author:** ![pquentin](https://yyz2.discourse-cdn.com/free1/user_avatar/trio.discourse.group/pquentin/32/57_2.png) [@pquentin](https://trio.discourse.group/u/pquentin)\
**Post date:** [June 20, 2022, 5:42am UTC](https://trio.discourse.group/t/status-of-the-urllib3-port/83/2 "2022-06-20T05:42:12Z")

</div>

We got to 100% coverage, then found a way to run all tests with Trio, asyncio and AnyIO, started migrating some of them with great success and then I lost motivation. 🙂 One big issue was that I could not merge urllib3 changes fast enough and was months behind the urllib3 main branch.

The focus is now to work on urllib3 itself and making it very slowly more async-friendly. The 2.0 version will pave the way for using h11 optionally for example.
