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: Support different URLs per request #108

Closed RafaelWO closed 10 months ago

RafaelWO commented 10 months ago

Description

This PR enables users to create requests to different URLs in one call to up(). This is done by

This is a breaking change! 💣

While you still can use Unparallel to make requests to one service

base_url = "https://httpbin.org"
paths = [f"/get?i={i}" for i in range(5)]
results = await up(paths, base_url=base_url)

you can now make requests to various URLs

urls = [
    "https://httpbin.org/get?i=42",
    "https://petstore.swagger.io/v2/pet/findByStatus?status=available",
    "https://api.coindesk.com/v1/bpi/currentprice.json"
]
results = await up(urls)

Additionally, this PR includes a fix for the docs CI to also run on tags.

Related Issue

Closes #99

Type of Change

Checklist