RafaelWO / unparallel

Create async web requests via Python in no time.
https://rafaelwo.github.io/unparallel/
MIT License
10 stars 0 forks source link

Feature: Custom HTTPX Client #186

Closed RafaelWO closed 5 months ago

RafaelWO commented 5 months ago

Description

This PR adds the feature of having full control over the HTTPX client. You can now pass an instance of httpx.AsyncClient to up().

auth = httpx.BasicAuth(username="username", password="secret")
async with httpx.AsyncClient(base_url=url, auth=auth) as client:
    results = await up(paths, client=client)

Related Issue

Type of Change

Checklist